Save This Page
Home » hibernate-distribution-3.3.1.GA-dist » org.hibernate » persister » entity » [javadoc | source]
org.hibernate.persister.entity
public class: SingleTableEntityPersister [javadoc | source]
java.lang.Object
   org.hibernate.persister.entity.AbstractEntityPersister
      org.hibernate.persister.entity.SingleTableEntityPersister

All Implemented Interfaces:
    SQLLoadable, OuterJoinLoadable, UniqueKeyLoadable, ClassMetadata, PostInsertIdentityPersister, Lockable, LazyPropertyInitializer, Queryable

The default implementation of the EntityPersister interface. Implements the "table-per-class-hierarchy" or "roll-up" mapping strategy for an entity class and its inheritence hierarchy. This is implemented as a single table holding all classes in the hierarchy with a discrimator column used to determine which concrete class is referenced.
Fields inherited from org.hibernate.persister.entity.AbstractEntityPersister:
ENTITY_CLASS,  rowIdName,  insertCallable,  updateCallable,  deleteCallable,  customSQLInsert,  customSQLUpdate,  customSQLDelete,  insertResultCheckStyles,  updateResultCheckStyles,  deleteResultCheckStyles,  propertyMapping
Constructor:
 public SingleTableEntityPersister(PersistentClass persistentClass,
    EntityRegionAccessStrategy cacheAccessStrategy,
    SessionFactoryImplementor factory,
    Mapping mapping) throws HibernateException 
Method from org.hibernate.persister.entity.SingleTableEntityPersister Summary:
addDiscriminatorToInsert,   addDiscriminatorToSelect,   filterFragment,   fromTableFragment,   getConstraintOrderedTableNameClosure,   getContraintOrderedTableKeyColumnClosure,   getDiscriminatorAlias,   getDiscriminatorColumnName,   getDiscriminatorFormula,   getDiscriminatorFormulaTemplate,   getDiscriminatorSQLValue,   getDiscriminatorType,   getKeyColumns,   getPropertySpaces,   getPropertyTableName,   getPropertyTableNumbers,   getPropertyTableNumbersInSelect,   getSequentialSelect,   getSubclassClosure,   getSubclassColumnTableNumberClosure,   getSubclassForDiscriminatorValue,   getSubclassFormulaTableNumberClosure,   getSubclassPropertyTableName,   getSubclassPropertyTableNumber,   getSubclassTableKeyColumns,   getSubclassTableName,   getSubclassTableSpan,   getTableName,   getTableName,   getTableSpan,   hasSequentialSelect,   isClassOrSuperclassTable,   isDiscriminatorFormula,   isInverseSubclassTable,   isInverseTable,   isMultiTable,   isNullableSubclassTable,   isNullableTable,   isPropertyOfTable,   isSubclassPropertyDeferred,   isSubclassTableLazy,   isSubclassTableSequentialSelect,   isTableCascadeDeleteEnabled,   oneToManyFilterFragment,   postInstantiate
Methods from org.hibernate.persister.entity.AbstractEntityPersister:
addDiscriminatorToInsert,   addDiscriminatorToSelect,   afterInitialize,   afterReassociate,   canExtractIdOutOfEntity,   check,   concretePropertySelectFragment,   concretePropertySelectFragment,   concretePropertySelectFragment,   concretePropertySelectFragmentSansLeadingComma,   consumesCollectionAlias,   consumesEntityAlias,   countSubclassProperties,   createEntityLoader,   createEntityLoader,   createFrom,   createJoin,   createJoin,   createProxy,   createQueryLoader,   createSelect,   createUniqueKeyLoaders,   createWhereByKey,   dehydrate,   dehydrate,   delete,   delete,   filterFragment,   filterFragment,   findDirty,   findModified,   forceVersionIncrement,   fromJoinFragment,   generateDeleteString,   generateFilterConditionAlias,   generateIdentityInsertString,   generateInsertGeneratedValuesSelectString,   generateInsertString,   generateInsertString,   generateInsertString,   generateLazySelectString,   generateLocker,   generateSelectVersionString,   generateSnapshotSelectString,   generateTableAlias,   generateUpdateGeneratedValuesSelectString,   generateUpdateString,   generateUpdateString,   getCacheAccessStrategy,   getCacheEntryStructure,   getCascadeStyle,   getClassMetadata,   getConcreteProxyClass,   getCurrentVersion,   getDatabaseSnapshot,   getDiscriminatorAlias,   getDiscriminatorAlias,   getDiscriminatorColumnName,   getDiscriminatorFormulaTemplate,   getEntityMetamodel,   getEntityName,   getEntityType,   getFactory,   getFetchMode,   getIdentifier,   getIdentifierAliases,   getIdentifierAliases,   getIdentifierColumnNames,   getIdentifierColumnSpan,   getIdentifierGenerator,   getIdentifierPropertyName,   getIdentifierType,   getIdentitySelectString,   getKeyColumnNames,   getKeyColumns,   getLazyProperties,   getMappedClass,   getMappedSuperclass,   getName,   getNaturalIdentifierProperties,   getNaturalIdentifierSnapshot,   getNonLazyPropertyUpdateability,   getPropertiesToInsert,   getPropertiesToUpdate,   getPropertyAliases,   getPropertyCascadeStyles,   getPropertyCheckability,   getPropertyColumnNames,   getPropertyColumnNames,   getPropertyColumnSpan,   getPropertyIndex,   getPropertyInsertGenerationInclusions,   getPropertyInsertability,   getPropertyLaziness,   getPropertyNames,   getPropertyNullability,   getPropertySpan,   getPropertySubclassNames,   getPropertyTableNumbers,   getPropertyTableNumbersInSelect,   getPropertyType,   getPropertyTypes,   getPropertyUpdateGenerationInclusions,   getPropertyUpdateability,   getPropertyUpdateability,   getPropertyValue,   getPropertyValue,   getPropertyValues,   getPropertyValuesToInsert,   getPropertyVersionability,   getQuerySpaces,   getRootEntityName,   getRootTableAlias,   getRootTableIdentifierColumnNames,   getRootTableKeyColumnNames,   getRootTableName,   getSQLDeleteStrings,   getSQLIdentityInsertString,   getSQLInsertStrings,   getSQLLazySelectString,   getSQLLazyUpdateByRowIdStrings,   getSQLLazyUpdateStrings,   getSQLSnapshotSelectString,   getSQLUpdateByRowIdStrings,   getSQLUpdateStrings,   getSQLWhereString,   getSelectByUniqueKeyString,   getSequentialSelect,   getSubclassColumnAliasClosure,   getSubclassColumnClosure,   getSubclassColumnLazyiness,   getSubclassColumnTableNumberClosure,   getSubclassEntityPersister,   getSubclassFormulaAliasClosure,   getSubclassFormulaClosure,   getSubclassFormulaLazyiness,   getSubclassFormulaTableNumberClosure,   getSubclassFormulaTemplateClosure,   getSubclassPropertyColumnAliases,   getSubclassPropertyColumnNameClosure,   getSubclassPropertyColumnNames,   getSubclassPropertyColumnNames,   getSubclassPropertyDeclarer,   getSubclassPropertyFormulaTemplateClosure,   getSubclassPropertyName,   getSubclassPropertyNameClosure,   getSubclassPropertySubclassNameClosure,   getSubclassPropertyTableNumber,   getSubclassPropertyTableNumber,   getSubclassPropertyType,   getSubclassPropertyTypeClosure,   getSubclassTableKeyColumns,   getSubclassTableName,   getSubclassTableSpan,   getTableName,   getTableSpan,   getTableUpdateNeeded,   getTemporaryIdTableDDL,   getTemporaryIdTableName,   getTuplizer,   getTuplizer,   getType,   getVersion,   getVersionColumnName,   getVersionComparator,   getVersionProperty,   getVersionSelectString,   getVersionType,   getVersionedTableName,   guessEntityMode,   hasCache,   hasCascades,   hasCollections,   hasEmbeddedCompositeIdentifier,   hasFormulaProperties,   hasIdentifierProperty,   hasInsertGeneratedProperties,   hasLazyProperties,   hasMutableProperties,   hasNaturalIdentifier,   hasProxy,   hasRowId,   hasSequentialSelect,   hasSubclasses,   hasSubselectLoadableCollections,   hasUninitializedLazyProperties,   hasUpdateGeneratedProperties,   hasWhere,   hydrate,   identifierSelectFragment,   implementsLifecycle,   implementsValidatable,   initLockers,   initPropertyPaths,   initSubclassPropertyAliasesMap,   initializeLazyProperty,   insert,   insert,   insert,   insert,   instantiate,   isAbstract,   isBatchLoadable,   isBatchable,   isCacheInvalidationRequired,   isClassOrSuperclassTable,   isCollection,   isDefinedOnSubclass,   isDeleteCallable,   isExplicitPolymorphism,   isIdentifierAssignedByInsert,   isInherited,   isInsertCallable,   isInstance,   isInstrumented,   isInverseSubclassTable,   isInverseTable,   isLazyPropertiesCacheable,   isMultiTable,   isMutable,   isNullableSubclassTable,   isNullableTable,   isPolymorphic,   isPropertyOfTable,   isSelectBeforeUpdateRequired,   isSubclassEntityName,   isSubclassPropertyDeferred,   isSubclassPropertyNullable,   isSubclassTableLazy,   isSubclassTableSequentialSelect,   isTableCascadeDeleteEnabled,   isTransient,   isUpdateCallable,   isVersionPropertyGenerated,   isVersionPropertyInsertable,   isVersioned,   load,   loadByUniqueKey,   lock,   logStaticSQL,   oneToManyFilterFragment,   optimisticLockMode,   postConstruct,   postInstantiate,   processInsertGeneratedProperties,   processUpdateGeneratedProperties,   propertySelectFragment,   renderSelect,   resetIdentifier,   selectFragment,   selectFragment,   setIdentifier,   setPropertyValue,   setPropertyValue,   setPropertyValues,   toColumns,   toColumns,   toColumns,   toString,   toType,   update,   update,   updateOrInsert,   useDynamicInsert,   useDynamicUpdate,   useGetGeneratedKeys,   useInsertSelectIdentity,   whereJoinFragment
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.hibernate.persister.entity.SingleTableEntityPersister Detail:
 protected  void addDiscriminatorToInsert(Insert insert) 
 protected  void addDiscriminatorToSelect(SelectFragment select,
    String name,
    String suffix) 
 public String filterFragment(String alias) throws MappingException 
 public String fromTableFragment(String name) 
 public String[] getConstraintOrderedTableNameClosure() 
 public String[][] getContraintOrderedTableKeyColumnClosure() 
 protected String getDiscriminatorAlias() 
 public String getDiscriminatorColumnName() 
 protected String getDiscriminatorFormula() 
 protected String getDiscriminatorFormulaTemplate() 
 public String getDiscriminatorSQLValue() 
 public Type getDiscriminatorType() 
 protected String[] getKeyColumns(int j) 
 public Serializable[] getPropertySpaces() 
 public String getPropertyTableName(String propertyName) 
 protected int[] getPropertyTableNumbers() 
 protected int[] getPropertyTableNumbersInSelect() 
 protected String getSequentialSelect(String entityName) 
 public String[] getSubclassClosure() 
 protected int[] getSubclassColumnTableNumberClosure() 
 public String getSubclassForDiscriminatorValue(Object value) 
 protected int[] getSubclassFormulaTableNumberClosure() 
 public String getSubclassPropertyTableName(int i) 
 protected int getSubclassPropertyTableNumber(int i) 
 protected String[] getSubclassTableKeyColumns(int j) 
 public String getSubclassTableName(int j) 
 public int getSubclassTableSpan() 
 public String getTableName() 
 protected String getTableName(int j) 
 public int getTableSpan() 
 public boolean hasSequentialSelect() 
 protected boolean isClassOrSuperclassTable(int j) 
 protected boolean isDiscriminatorFormula() 
 protected boolean isInverseSubclassTable(int j) 
 protected boolean isInverseTable(int j) 
 public boolean isMultiTable() 
 protected boolean isNullableSubclassTable(int j) 
 protected boolean isNullableTable(int j) 
 protected boolean isPropertyOfTable(int property,
    int j) 
 protected boolean isSubclassPropertyDeferred(String propertyName,
    String entityName) 
 protected boolean isSubclassTableLazy(int j) 
 protected boolean isSubclassTableSequentialSelect(int j) 
 protected boolean isTableCascadeDeleteEnabled(int j) 
 public String oneToManyFilterFragment(String alias) throws MappingException 
 public  void postInstantiate()