接口 Queryable
-
- 所有已知实现类:
AbstractEntityPersister,JoinedSubclassEntityPersister,SingleTableEntityPersister,UnionSubclassEntityPersister
public interface Queryable extends Loadable, PropertyMapping, Joinable
Extends the generic EntityPersister contract to add operations required by the Hibernate Query Language- 作者:
- Gavin King
-
-
嵌套类概要
嵌套类 修饰符和类型 接口 说明 static classQueryable.Declarer
-
字段概要
-
从接口继承的字段 org.hibernate.persister.entity.EntityPersister
ENTITY_ID
-
从接口继承的字段 org.hibernate.persister.entity.Loadable
ROWID_ALIAS
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 StringgenerateFilterConditionAlias(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 constraint violations.String[][]getContraintOrderedTableKeyColumnClosure()For each table specified ingetConstraintOrderedTableNameClosure(), get the columns that define the key between the various hierarchy classes.StringgetDiscriminatorSQLValue()Get the discriminator value for this particular concrete subclass, as a string that may be embedded in a select statementString[]getIdentifierColumnNames()Get the names of columns used to persist the identifierStringgetMappedSuperclass()Get the class that this class is mapped as a subclass of - not necessarily the direct superclassQueryable.DeclarergetSubclassPropertyDeclarer(String propertyPath)Determine whether the given property is declared by our mapped class, our super class, or one of our subclasses...String[][]getSubclassPropertyFormulaTemplateClosure()intgetSubclassPropertyTableNumber(String propertyPath)Given a property name, determine the number of the table which contains the column to which this property is mapped.StringgetSubclassTableName(int number)Get the name of the table with the given index from the internal array.DiscriminatorMetadatagetTypeDiscriminatorMetadata()Retrieve the information needed to properly deal with this entity's discriminator in a query.StringidentifierSelectFragment(String name, String suffix)Given a query alias and an identifying suffix, render the identifier select fragment.booleanisAbstract()Is this an abstract class?booleanisExplicitPolymorphism()Is this class explicit polymorphism only?booleanisMultiTable()Is the inheritance hierarchy described by this persister contained across multiple tables?booleanisVersionPropertyInsertable()Is the version property included in insert statements?StringpropertySelectFragment(String alias, String suffix, boolean allProperties)Given a query alias and an identifying suffix, render the property select fragment.SelectFragmentpropertySelectFragmentFragment(String alias, String suffix, boolean allProperties)-
从接口继承的方法 org.hibernate.persister.walking.spi.AttributeSource
getAttributes
-
从接口继承的方法 org.hibernate.persister.walking.spi.EntityDefinition
getEntityKeyDefinition, getEntityPersister
-
从接口继承的方法 org.hibernate.persister.entity.EntityPersister
afterInitialize, afterReassociate, buildCacheEntry, canExtractIdOutOfEntity, canIdentityInsertBeDelayed, canReadFromCache, canUseReferenceCacheEntries, canWriteToCache, createProxy, delete, findDirty, findModified, forceVersionIncrement, generateEntityDefinition, getBytecodeEnhancementMetadata, getCacheAccessStrategy, getCacheEntryStructure, getClassMetadata, getConcreteProxyClass, getCurrentVersion, getDatabaseSnapshot, getEntityEntryFactory, getEntityMetamodel, getEntityMode, getEntityName, getEntityTuplizer, getFactory, getFilterAliasGenerator, getIdByUniqueKey, getIdentifier, getIdentifier, getIdentifierGenerator, getIdentifierPropertyName, getIdentifierType, getInstrumentationMetadata, getMappedClass, getNaturalIdCacheAccessStrategy, getNaturalIdentifierProperties, getNaturalIdentifierSnapshot, getNavigableRole, getPropertyCascadeStyles, getPropertyCheckability, getPropertyInsertability, getPropertyInsertGenerationInclusions, getPropertyLaziness, getPropertyNames, getPropertyNullability, getPropertySpaces, getPropertyType, getPropertyTypes, getPropertyUpdateability, getPropertyUpdateGenerationInclusions, getPropertyValue, getPropertyValue, getPropertyValues, getPropertyValuesToInsert, getPropertyVersionability, getQuerySpaces, getRootEntityName, getSubclassEntityPersister, getVersion, getVersionProperty, getVersionType, hasCache, hasCascades, hasCollections, hasIdentifierProperty, hasInsertGeneratedProperties, hasLazyProperties, hasMutableProperties, hasNaturalIdCache, hasNaturalIdentifier, hasProxy, hasSubselectLoadableCollections, hasUninitializedLazyProperties, hasUpdateGeneratedProperties, implementsLifecycle, initializeEnhancedEntityUsedAsProxy, insert, insert, instantiate, isBatchLoadable, isCacheInvalidationRequired, isIdentifierAssignedByInsert, isInherited, isInstance, isInstrumented, isLazyPropertiesCacheable, isMutable, isSelectBeforeUpdateRequired, isSubclassEntityName, isTransient, isVersioned, isVersionPropertyGenerated, load, load, load, load, loadEntityIdByNaturalId, lock, lock, multiLoad, postInstantiate, processInsertGeneratedProperties, processUpdateGeneratedProperties, resetIdentifier, resolveAttributeIndexes, setIdentifier, setPropertyValue, setPropertyValues, update
-
从接口继承的方法 org.hibernate.persister.entity.Joinable
consumesCollectionAlias, consumesEntityAlias, filterFragment, filterFragment, fromJoinFragment, fromJoinFragment, fromJoinFragment, getKeyColumnNames, getName, getTableName, isCollection, oneToManyFilterFragment, oneToManyFilterFragment, selectFragment, whereJoinFragment, whereJoinFragment
-
从接口继承的方法 org.hibernate.persister.entity.Loadable
getDiscriminatorAlias, getDiscriminatorColumnName, getDiscriminatorType, getDiscriminatorValue, getIdentifierAliases, getPropertyAliases, getPropertyColumnNames, getSubclassForDiscriminatorValue, getTableAliasForColumn, hasRowId, hasSubclasses, hydrate, registerAffectingFetchProfile
-
从接口继承的方法 org.hibernate.persister.entity.PropertyMapping
getType, toColumns, toColumns, toType
-
-
-
-
方法详细资料
-
isAbstract
boolean isAbstract()
Is this an abstract class?- 指定者:
isAbstract在接口中Loadable
-
isExplicitPolymorphism
boolean isExplicitPolymorphism()
Is this class explicit polymorphism only?
-
getMappedSuperclass
String getMappedSuperclass()
Get the class that this class is mapped as a subclass of - not necessarily the direct superclass
-
getDiscriminatorSQLValue
String getDiscriminatorSQLValue()
Get the discriminator value for this particular concrete subclass, as a string that may be embedded in a select statement
-
identifierSelectFragment
String identifierSelectFragment(String name, String suffix)
Given a query alias and an identifying suffix, render the identifier select fragment.
-
propertySelectFragment
String propertySelectFragment(String alias, String suffix, boolean allProperties)
Given a query alias and an identifying suffix, render the property select fragment.
-
propertySelectFragmentFragment
SelectFragment propertySelectFragmentFragment(String alias, String suffix, boolean allProperties)
-
getIdentifierColumnNames
String[] getIdentifierColumnNames()
Get the names of columns used to persist the identifier- 指定者:
getIdentifierColumnNames在接口中Loadable
-
isMultiTable
boolean isMultiTable()
Is the inheritance hierarchy described by this persister contained across multiple tables?- 返回:
- True if the inheritance hierarchy is spread across multiple tables; false otherwise.
-
getConstraintOrderedTableNameClosure
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 constraint violations.- 返回:
- The ordered array of table names.
-
getContraintOrderedTableKeyColumnClosure
String[][] getContraintOrderedTableKeyColumnClosure()
For each table specified ingetConstraintOrderedTableNameClosure(), get the columns that define the key between the various hierarchy classes. The first dimension here corresponds to the table indexes returned ingetConstraintOrderedTableNameClosure(). The second dimension should have the same length across all the elements in the first dimension. If not, that would be a problem ;)
-
getSubclassPropertyTableNumber
int getSubclassPropertyTableNumber(String propertyPath)
Given a property name, determine the number of the table which contains the column to which this property is mapped. Note that this is not relative to the results fromgetConstraintOrderedTableNameClosure(). It is relative to the subclass table name closure maintained internal to the persister (yick!). It is also relative to the indexing used to resolvegetSubclassTableName(int)...- 参数:
propertyPath- The name of the property.- 返回:
- The number of the table to which the property is mapped.
-
getSubclassPropertyDeclarer
Queryable.Declarer getSubclassPropertyDeclarer(String propertyPath)
Determine whether the given property is declared by our mapped class, our super class, or one of our subclasses... Note: the method is called 'subclass property...' simply for consistency sake (e.g.getSubclassPropertyTableNumber(java.lang.String)- 参数:
propertyPath- The property name.- 返回:
- The property declarer
-
getSubclassTableName
String getSubclassTableName(int number)
Get the name of the table with the given index from the internal array.- 参数:
number- The index into the internal array.
-
isVersionPropertyInsertable
boolean isVersionPropertyInsertable()
Is the version property included in insert statements?
-
generateFilterConditionAlias
String generateFilterConditionAlias(String rootAlias)
The alias used for any filter conditions (mapped where-fragments or enabled-filters). This may or may not be different from the root alias depending upon the inheritance mapping strategy.- 参数:
rootAlias- The root alias- 返回:
- The alias used for "filter conditions" within the where clause.
-
getTypeDiscriminatorMetadata
DiscriminatorMetadata getTypeDiscriminatorMetadata()
Retrieve the information needed to properly deal with this entity's discriminator in a query.- 返回:
- The entity discriminator metadata
-
getSubclassPropertyFormulaTemplateClosure
String[][] getSubclassPropertyFormulaTemplateClosure()
-
-