|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Extends the generic EntityPersister contract to add operations required by the Hibernate Query Language
Nested Class Summary | |
static class |
Queryable.Declarer
|
Field Summary |
Fields inherited from interface org.hibernate.persister.entity.Loadable |
ROWID_ALIAS |
Fields inherited from interface org.hibernate.persister.entity.EntityPersister |
ENTITY_ID |
Method Summary | |
String |
generateFilterConditionAlias(String rootAlias)
The alias used for any filter conditions (mapped where-fragments or enabled-filters). |
String[] |
getConstraintOrderedTableNameClosure()
Get the names of all tables used in the hierarchy (up and down) ordered such that deletes in the given order would not cause contraint violations. |
String[][] |
getContraintOrderedTableKeyColumnClosure()
For each table specified in getConstraintOrderedTableNameClosure() , get
the columns that define the key between the various hierarchy classes. |
String |
getDiscriminatorSQLValue()
Get the discriminator value for this particular concrete subclass, as a string that may be embedded in a select statement |
String[] |
getIdentifierColumnNames()
Get the names of columns used to persist the identifier |
String |
getMappedSuperclass()
Get the class that this class is mapped as a subclass of - not necessarily the direct superclass |
Queryable.Declarer |
getSubclassPropertyDeclarer(String propertyPath)
Determine whether the given property is declared by our mapped class, our super class, or one of our subclasses... |
int |
getSubclassPropertyTableNumber(String propertyPath)
Given a property name, determine the number of the table which contains the column to which this property is mapped. |
String |
getSubclassTableName(int number)
Get the name of the table with the given index from the internal array. |
String |
getTemporaryIdTableDDL()
Get the appropriate DDL command for generating the temporary table to be used to (potentially) store id values when performing bulk update/deletes. |
String |
getTemporaryIdTableName()
Get the name of the temporary table to be used to (potentially) store id values when performing bulk update/deletes. |
String |
identifierSelectFragment(String name,
String suffix)
Given a query alias and an identifying suffix, render the intentifier select fragment. |
boolean |
isAbstract()
Is this an abstract class? |
boolean |
isExplicitPolymorphism()
Is this class explicit polymorphism only? |
boolean |
isMultiTable()
Is the inheritence hierarchy described by this persister contained across multiple tables? |
boolean |
isVersionPropertyInsertable()
Is the version property included in insert statements? |
String |
propertySelectFragment(String alias,
String suffix,
boolean allProperties)
Given a query alias and an identifying suffix, render the property select fragment. |
Methods inherited from interface org.hibernate.persister.entity.Loadable |
getDiscriminatorAlias, getDiscriminatorColumnName, getDiscriminatorType, getIdentifierAliases, getPropertyAliases, getPropertyColumnNames, getSubclassForDiscriminatorValue, hasRowId, hasSubclasses, hydrate |
Methods inherited from interface org.hibernate.cache.OptimisticCacheSource |
getVersionComparator |
Methods inherited from interface org.hibernate.persister.entity.PropertyMapping |
getType, toColumns, toColumns, toType |
Methods inherited from interface org.hibernate.persister.entity.Joinable |
consumesCollectionAlias, consumesEntityAlias, filterFragment, fromJoinFragment, getKeyColumnNames, getName, getTableName, isCollection, oneToManyFilterFragment, selectFragment, whereJoinFragment |
Method Detail |
public boolean isAbstract()
isAbstract
in interface Loadable
public boolean isExplicitPolymorphism()
public String getMappedSuperclass()
public String getDiscriminatorSQLValue()
public String identifierSelectFragment(String name, String suffix)
public String propertySelectFragment(String alias, String suffix, boolean allProperties)
public String[] getIdentifierColumnNames()
getIdentifierColumnNames
in interface Loadable
public boolean isMultiTable()
public String[] getConstraintOrderedTableNameClosure()
public String[][] getContraintOrderedTableKeyColumnClosure()
getConstraintOrderedTableNameClosure()
, get
the columns that define the key between the various hierarchy classes.
The first dimension here corresponds to the table indexes returned in
getConstraintOrderedTableNameClosure()
.
The second dimension should have the same length across all the elements in
the first dimension. If not, that'd be a problem ;)
public String getTemporaryIdTableName()
public String getTemporaryIdTableDDL()
public int getSubclassPropertyTableNumber(String propertyPath)
getConstraintOrderedTableNameClosure()
.
It is relative to the subclass table name closure maintained internal to the persister (yick!).
It is also relative to the indexing used to resolve getSubclassTableName(int)
...
propertyPath
- The name of the property.
public Queryable.Declarer getSubclassPropertyDeclarer(String propertyPath)
getSubclassPropertyTableNumber(java.lang.String)
propertyPath
- The property name.
public String getSubclassTableName(int number)
number
- The index into the internal array.
public boolean isVersionPropertyInsertable()
public String generateFilterConditionAlias(String rootAlias)
rootAlias
- The root alias
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |