com.caucho.amber.type
Class SubEntityType

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.SubEntityType

public class SubEntityType
extends EntityType

Represents an application persistent bean type


Field Summary
 
Fields inherited from class com.caucho.amber.type.EntityType
_defaultLoadGroupIndex, _dirtyIndex, _hasLoadCallback, _loadGroupIndex, _minDirtyIndex
 
Constructor Summary
SubEntityType(AmberPersistenceUnit amberPersistenceUnit, EntityType parent)
           
 
Method Summary
 int getDefaultLoadGroupIndex()
          Returns the current load group.
 int getDirtyIndex()
          Returns the dirty index, overriding the parent.
 AmberColumn getDiscriminator()
          Returns the discriminator.
 Id getId()
          Returns the id.
 int getLoadGroupIndex()
          Returns the load group index, overriding the parent.
 EntityType getParentType()
          Returns the parent class.
 EntityType getRootType()
          Returns the root type.
 boolean isParentMappedSuperclass()
          Returns true if the superclass is a MappedSuperclass.
 java.lang.String toString()
          Printable version of the entity.
 
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, getComponentGenerator, getComponentInterfaceName, getDiscriminatorValue, getEagerFieldNames, getExcludeDefaultListeners, getExcludeSuperclassListeners, getField, getFields, getFlushPriority, getForeignTypeName, getGenerator, getHasLoadCallback, getHome, getInstanceClass, getListeners, getLoadObject, getMappedSuperclassField, getMappedSuperclassFields, getMergedFields, getMinDirtyIndex, getObject, getProxyClass, getRootTableName, getSecondaryTable, getSecondaryTables, getSubClass, getTable, getVersionField, hasDependent, hasLoadGroup, init, initId, isAbstractClass, isDirtyIndexOwnedByType, isEJBProxy, isEntity, 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, 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
 
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

SubEntityType

public SubEntityType(AmberPersistenceUnit amberPersistenceUnit,
                     EntityType parent)
Method Detail

getId

public Id getId()
Returns the id.

Overrides:
getId in class EntityType

getRootType

public EntityType getRootType()
Returns the root type.

Overrides:
getRootType in class EntityType

getParentType

public EntityType getParentType()
Returns the parent class.

Overrides:
getParentType in class EntityType

isParentMappedSuperclass

public boolean isParentMappedSuperclass()
Returns true if the superclass is a MappedSuperclass.


getDiscriminator

public AmberColumn getDiscriminator()
Returns the discriminator.

Overrides:
getDiscriminator in class AmberBeanType

getLoadGroupIndex

public int getLoadGroupIndex()
Returns the load group index, overriding the parent.

Overrides:
getLoadGroupIndex in class EntityType

getDefaultLoadGroupIndex

public int getDefaultLoadGroupIndex()
Returns the current load group.

Overrides:
getDefaultLoadGroupIndex in class EntityType

getDirtyIndex

public int getDirtyIndex()
Returns the dirty index, overriding the parent.

Overrides:
getDirtyIndex in class EntityType

toString

public java.lang.String toString()
Printable version of the entity.

Overrides:
toString in class AbstractEnhancedType