com.caucho.amber.type
Class MappedSuperclassType

java.lang.Object
  extended by com.caucho.amber.type.AmberType
      extended by com.caucho.amber.type.AbstractEnhancedType
          extended by com.caucho.amber.type.AmberBeanType
              extended by com.caucho.amber.type.EntityType
                  extended by com.caucho.amber.type.MappedSuperclassType

public class MappedSuperclassType
extends EntityType

Represents a non-persistent class with abstract O/R mapping information.


Field Summary
 
Fields inherited from class com.caucho.amber.type.EntityType
_defaultLoadGroupIndex, _dirtyIndex, _hasLoadCallback, _loadGroupIndex, _minDirtyIndex
 
Constructor Summary
MappedSuperclassType(AmberPersistenceUnit amberPersistenceUnit)
           
 
Method Summary
 ClassComponent getComponentGenerator()
          Gets a component generator.
 java.lang.String getComponentInterfaceName()
          Returns the component interface name.
 java.lang.Class getInstanceClass()
          Gets the instance class.
 AmberTable getTable()
          Returns the table.
protected  void initId()
          id is not initialized for mapped superclass
 boolean isEntity()
          returns false since the mapped superclass can't be loaded
 
Methods inherited from class com.caucho.amber.type.EntityType
addField, addListener, addMappedSuperclassField, addSecondaryTable, addSubClass, createBean, createManyToOneCompletion, delete, findItem, generateAutoCreateSQL, generateCopyLoadObject, generateCopyUpdateObject, generateCreateSQL, generateDumpRelationships, generateFullLoadSelect, generateIdSelect, generateInsertColumns, generateInsertSet, generateKeyLoadSelect, generateLoad, generateLoadFromObject, generateLoadNative, generateLoadSelect, generateLoadSelect, generateLoadSelect, generateMergeFrom, generateNativeColumnNames, generatePostDelete, generatePostLoadSelect, generatePreDelete, generateSet, generateUpdateSQL, generateUpdateSQLComponent, generateUpdateSQLPrefix, generateUpdateSQLSuffix, getCacheTimeout, getColumns, getDefaultLoadGroupIndex, getDirtyIndex, getDiscriminatorValue, getEagerFieldNames, getExcludeDefaultListeners, getExcludeSuperclassListeners, getField, getFields, getFlushPriority, getForeignTypeName, getGenerator, getHasLoadCallback, getHome, getId, getListeners, getLoadGroupIndex, getLoadObject, getMappedSuperclassField, getMappedSuperclassFields, getMergedFields, getMinDirtyIndex, getObject, getParentType, getProxyClass, getRootTableName, getRootType, getSecondaryTable, getSecondaryTables, getSubClass, getVersionField, hasDependent, hasLoadGroup, init, isAbstractClass, isDirtyIndexOwnedByType, isEJBProxy, isIdentityGenerator, isJoinedSubClass, isLoadGroupOwnedByType, isReadOnly, isSequenceGenerator, nextDefaultLoadGroupIndex, nextDirtyIndex, nextGeneratorId, nextLoadGroupIndex, postLoad, postPersist, postRemove, postUpdate, prePersist, preRemove, preUpdate, setCacheTimeout, setDiscriminatorValue, setExcludeDefaultListeners, setExcludeSuperclassListeners, setGenerator, setHasDependent, setHasLoadCallback, setId, setJoinedSubClass, setParentType, setProxyClass, setReadOnly, setRootTableName, setTable, setVersionField, start, update, updateFlushPriority
 
Methods inherited from class com.caucho.amber.type.AmberBeanType
addCompletionField, addDependency, addDependency, containsCompletionField, generateCastFromObject, generateExpire, generateInvalidateForeign, generateLoad, generateLoadSelect, generatePrePersist, getCreateLoadMask, getDependencies, getDiscriminator, getField, getGetter, getGetter, getJavaTypeName, getSelfFields, getSetter, isEmbeddable, isFieldAccess, removeAllCompletionFields, setBeanClass, setDiscriminator, setFieldAccess, startConfigure
 
Methods inherited from class com.caucho.amber.type.AbstractEnhancedType
addCallback, addPostLoadCallback, addPostPersistCallback, addPostRemoveCallback, addPostUpdateCallback, addPrePersistCallback, addPreRemoveCallback, addPreUpdateCallback, addStubMethod, getBeanClass, getCallbacks, getClassName, getConfigException, getInstance, getInstanceClass, getInstanceClassName, getJavaBeanClass, getMethods, getName, getPersistenceUnit, getPostLoadCallbacks, getPostPersistCallbacks, getPostRemoveCallbacks, getPostUpdateCallbacks, getPrePersistCallbacks, getPreRemoveCallbacks, getPreUpdateCallbacks, isEnhanced, isGenerated, isIdClass, isInit, setConfigException, setEnhanced, setGenerated, setIdClass, setInstance, setInstanceClassLoader, setInstanceClassName, setName, toString
 
Methods inherited from class com.caucho.amber.type.AmberType
fromObject, generateCreateColumnSQL, generateEquals, generateIncrementVersion, generateIsNull, generateLoad, generateLoadForeign, generateLoadNative, generateNull, generateSetNull, generateSetVersion, getColumnCount, getForeignType, getObject, isAssignableTo, isAutoIncrement, isBoolean, isNumeric, setParameter, toObject, toObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MappedSuperclassType

public MappedSuperclassType(AmberPersistenceUnit amberPersistenceUnit)
Method Detail

isEntity

public boolean isEntity()
returns false since the mapped superclass can't be loaded

Overrides:
isEntity in class EntityType

getInstanceClass

public java.lang.Class getInstanceClass()
Gets the instance class.

Overrides:
getInstanceClass in class EntityType

getComponentInterfaceName

public java.lang.String getComponentInterfaceName()
Returns the component interface name.

Overrides:
getComponentInterfaceName in class EntityType

getComponentGenerator

public ClassComponent getComponentGenerator()
Gets a component generator.

Overrides:
getComponentGenerator in class EntityType

getTable

public AmberTable getTable()
Description copied from class: EntityType
Returns the table.

Overrides:
getTable in class EntityType

initId

protected void initId()
id is not initialized for mapped superclass

Overrides:
initId in class EntityType