接口 Loadable
-
- 所有超级接口:
AttributeSource,EntityDefinition,EntityPersister
- 所有已知子接口:
OuterJoinLoadable,Queryable,SQLLoadable,UniqueKeyLoadable
- 所有已知实现类:
AbstractEntityPersister,JoinedSubclassEntityPersister,SingleTableEntityPersister,UnionSubclassEntityPersister
public interface Loadable extends EntityPersister
Implemented by a EntityPersister that may be loaded using Loader.- 作者:
- Gavin King
- 另请参阅:
Loader
-
-
字段概要
字段 修饰符和类型 字段 说明 static StringROWID_ALIAS-
从接口继承的字段 org.hibernate.persister.entity.EntityPersister
ENTITY_ID
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 StringgetDiscriminatorAlias(String suffix)Get the result set aliases used for the identifier columns, given a suffixStringgetDiscriminatorColumnName()TypegetDiscriminatorType()Get the discriminator typeObjectgetDiscriminatorValue()Get the discriminator valueString[]getIdentifierAliases(String suffix)Get the result set aliases used for the identifier columns, given a suffixString[]getIdentifierColumnNames()Get the names of columns used to persist the identifierString[]getPropertyAliases(String suffix, int i)Get the result set aliases used for the property columns, given a suffix (properties of this class, only).String[]getPropertyColumnNames(int i)Get the result set column names mapped for this property (properties of this class, only).StringgetSubclassForDiscriminatorValue(Object value)Get the concrete subclass corresponding to the given discriminator valueStringgetTableAliasForColumn(String columnName, String rootAlias)Given a column name and the root table alias in use for the entity hierarchy, determine the proper table alias for the table in that hierarchy that contains said column.booleanhasRowId()Does the result set contain rowids?booleanhasSubclasses()Does this persistent class have subclasses?Object[]hydrate(ResultSet rs, Serializable id, Object object, Loadable rootLoadable, String[][] suffixedPropertyColumns, boolean allProperties, SharedSessionContractImplementor session)Retrieve property values from one row of a result setbooleanisAbstract()voidregisterAffectingFetchProfile(String fetchProfileName)Register the name of a fetch profile determined to have an affect on the underlying loadable in regards to the fact that the underlying load SQL needs to be adjust when the given fetch profile is enabled.-
从接口继承的方法 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
-
-
-
-
方法详细资料
-
hasSubclasses
boolean hasSubclasses()
Does this persistent class have subclasses?
-
getDiscriminatorType
Type getDiscriminatorType()
Get the discriminator type
-
getDiscriminatorValue
Object getDiscriminatorValue()
Get the discriminator value
-
getSubclassForDiscriminatorValue
String getSubclassForDiscriminatorValue(Object value)
Get the concrete subclass corresponding to the given discriminator value
-
getIdentifierColumnNames
String[] getIdentifierColumnNames()
Get the names of columns used to persist the identifier
-
getIdentifierAliases
String[] getIdentifierAliases(String suffix)
Get the result set aliases used for the identifier columns, given a suffix
-
getPropertyAliases
String[] getPropertyAliases(String suffix, int i)
Get the result set aliases used for the property columns, given a suffix (properties of this class, only).
-
getPropertyColumnNames
String[] getPropertyColumnNames(int i)
Get the result set column names mapped for this property (properties of this class, only).
-
getDiscriminatorAlias
String getDiscriminatorAlias(String suffix)
Get the result set aliases used for the identifier columns, given a suffix
-
getDiscriminatorColumnName
String getDiscriminatorColumnName()
- 返回:
- the column name for the discriminator as specified in the mapping.
-
hasRowId
boolean hasRowId()
Does the result set contain rowids?
-
hydrate
Object[] hydrate(ResultSet rs, Serializable id, Object object, Loadable rootLoadable, String[][] suffixedPropertyColumns, boolean allProperties, SharedSessionContractImplementor session) throws SQLException, HibernateException
Retrieve property values from one row of a result set
-
isAbstract
boolean isAbstract()
-
registerAffectingFetchProfile
void registerAffectingFetchProfile(String fetchProfileName)
Register the name of a fetch profile determined to have an affect on the underlying loadable in regards to the fact that the underlying load SQL needs to be adjust when the given fetch profile is enabled.- 参数:
fetchProfileName- The name of the profile affecting this.
-
getTableAliasForColumn
String getTableAliasForColumn(String columnName, String rootAlias)
Given a column name and the root table alias in use for the entity hierarchy, determine the proper table alias for the table in that hierarchy that contains said column. NOTE : Generally speaking the column is not validated to exist. Most implementations simply return the root alias; the exception isJoinedSubclassEntityPersister- 参数:
columnName- The column namerootAlias- The hierarchy root alias- 返回:
- The proper table alias for qualifying the given column.
-
-