Top Description Fields Methods
org.hibernate.persister.entity

public Interface Loadable

extends EntityPersister
Known Direct Subinterfaces
org.hibernate.persister.entity.OuterJoinLoadable, org.hibernate.persister.entity.Queryable, org.hibernate.persister.entity.SQLLoadable, org.hibernate.persister.entity.UniqueKeyLoadable
Imports
java.io.Serializable, java.sql.ResultSet, .SQLException, org.hibernate.HibernateException, org.hibernate.engine.spi.SharedSessionContractImplementor, org.hibernate.type.Type

Implemented by a EntityPersister that may be loaded using Loader.
Author
Gavin King
See Also
org.hibernate.loader.Loader

Field Summary

Modifier and TypeField and Description
public static final String
Inherited from org.hibernate.persister.entity.EntityPersister:
ENTITY_ID

Method Summary

Modifier and TypeMethod and Description
public String
getDiscriminatorAlias(String suffix)

Get the result set aliases used for the identifier columns, given a suffix

public String

Returns:

the column name for the discriminator as specified in the mapping.
getDiscriminatorColumnName
()

public Type
getDiscriminatorType()

Get the discriminator type

public Object
getDiscriminatorValue()

Get the discriminator value

public String[]
getIdentifierAliases(String suffix)

Get the result set aliases used for the identifier columns, given a suffix

public String[]
getIdentifierColumnNames()

Get the names of columns used to persist the identifier

public String[]
getPropertyAliases(String suffix, int i)

Get the result set aliases used for the property columns, given a suffix (properties of this class, only).

public String[]
getPropertyColumnNames(int i)

Get the result set column names mapped for this property (properties of this class, only).

public String
getSubclassForDiscriminatorValue(Object value)

Get the concrete subclass corresponding to the given discriminator value

public String

Returns:

The proper table alias for qualifying the given column.
getTableAliasForColumn
(String
The column name
columnName
,
String
The hierarchy root alias
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.

public boolean
hasRowId()

Does the result set contain rowids?

public boolean
hasSubclasses()

Does this persistent class have subclasses?

public default Object[]
hydrate(ResultSet rs, Serializable id, Object object, Loadable rootLoadable, String[][] suffixedPropertyColumns, boolean forceEager, SharedSessionContractImplementor session)

Retrieve property values from one row of a result set

public Object[]
hydrate(ResultSet rs, Serializable id, Object object, Loadable rootLoadable, String[][] suffixedPropertyColumns, boolean forceEager, boolean[] propertiesForceEager, SharedSessionContractImplementor session)

Retrieve property values from one row of a result set

public boolean
public void
registerAffectingFetchProfile(String
The name of the profile affecting this.
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.

Inherited from org.hibernate.persister.entity.EntityPersister:
afterInitializeafterReassociatebuildCacheEntrycanExtractIdOutOfEntitycanIdentityInsertBeDelayedcanReadFromCachecanUseReferenceCacheEntriescanWriteToCachecreateProxydeletefindDirtyfindModifiedforceVersionIncrementgenerateEntityDefinitiongetBytecodeEnhancementMetadatagetCacheAccessStrategygetCacheEntryStructuregetClassMetadatagetConcreteProxyClassgetCurrentVersiongetDatabaseSnapshotgetEntityEntryFactorygetEntityMetamodelgetEntityModegetEntityNamegetEntityTuplizergetFactorygetFilterAliasGeneratorgetIdByUniqueKeygetIdentifiergetIdentifiergetIdentifierGeneratorgetIdentifierPropertyNamegetIdentifierTypegetInstrumentationMetadatagetMappedClassgetNaturalIdCacheAccessStrategygetNaturalIdentifierPropertiesgetNaturalIdentifierSnapshotgetNavigableRolegetPropertyCascadeStylesgetPropertyCheckabilitygetPropertyInsertabilitygetPropertyInsertGenerationInclusionsgetPropertyLazinessgetPropertyNamesgetPropertyNullabilitygetPropertySpacesgetPropertyTypegetPropertyTypesgetPropertyUpdateabilitygetPropertyUpdateGenerationInclusionsgetPropertyValuegetPropertyValuegetPropertyValuesgetPropertyValuesToInsertgetPropertyVersionabilitygetQuerySpacesgetRootEntityNamegetSubclassEntityPersistergetVersiongetVersionPropertygetVersionTypehasCachehasCascadeshasCollectionshasIdentifierPropertyhasInsertGeneratedPropertieshasLazyPropertieshasMutablePropertieshasNaturalIdCachehasNaturalIdentifierhasProxyhasSubselectLoadableCollectionshasUninitializedLazyPropertieshasUpdateGeneratedPropertiesimplementsLifecycleinitializeEnhancedEntityUsedAsProxyinsertinsertinstantiateisBatchLoadableisCacheInvalidationRequiredisIdentifierAssignedByInsertisInheritedisInstanceisInstrumentedisLazyPropertiesCacheableisMutableisSelectBeforeUpdateRequiredisSubclassEntityNameisTransientisVersionedisVersionPropertyGeneratedloadloadloadloadloadEntityIdByNaturalIdlocklockmultiLoadpostInstantiateprocessInsertGeneratedPropertiesprocessUpdateGeneratedPropertiesresetIdentifierresolveAttributeIndexesresolveDirtyAttributeIndexessetIdentifiersetPropertyValuesetPropertyValuesupdate

Field Detail

ROWID_ALIASback to summary
public static final String ROWID_ALIAS

Method Detail

getDiscriminatorAliasback to summary
public String getDiscriminatorAlias(String suffix)

Get the result set aliases used for the identifier columns, given a suffix

getDiscriminatorColumnNameback to summary
public String getDiscriminatorColumnName()
Returns:String

the column name for the discriminator as specified in the mapping.

getDiscriminatorTypeback to summary
public Type getDiscriminatorType()

Get the discriminator type

getDiscriminatorValueback to summary
public Object getDiscriminatorValue()

Get the discriminator value

getIdentifierAliasesback to summary
public String[] getIdentifierAliases(String suffix)

Get the result set aliases used for the identifier columns, given a suffix

getIdentifierColumnNamesback to summary
public String[] getIdentifierColumnNames()

Get the names of columns used to persist the identifier

getPropertyAliasesback to summary
public String[] getPropertyAliases(String suffix, int i)

Get the result set aliases used for the property columns, given a suffix (properties of this class, only).

getPropertyColumnNamesback to summary
public String[] getPropertyColumnNames(int i)

Get the result set column names mapped for this property (properties of this class, only).

getSubclassForDiscriminatorValueback to summary
public String getSubclassForDiscriminatorValue(Object value)

Get the concrete subclass corresponding to the given discriminator value

getTableAliasForColumnback to summary
public 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 is JoinedSubclassEntityPersister

Parameters
columnName:String

The column name

rootAlias:String

The hierarchy root alias

Returns:String

The proper table alias for qualifying the given column.

hasRowIdback to summary
public boolean hasRowId()

Does the result set contain rowids?

hasSubclassesback to summary
public boolean hasSubclasses()

Does this persistent class have subclasses?

hydrateback to summary
public default Object[] hydrate(ResultSet rs, Serializable id, Object object, Loadable rootLoadable, String[][] suffixedPropertyColumns, boolean forceEager, SharedSessionContractImplementor session) throws SQLException, HibernateException

Retrieve property values from one row of a result set

hydrateback to summary
public Object[] hydrate(ResultSet rs, Serializable id, Object object, Loadable rootLoadable, String[][] suffixedPropertyColumns, boolean forceEager, boolean[] propertiesForceEager, SharedSessionContractImplementor session) throws SQLException, HibernateException

Retrieve property values from one row of a result set

isAbstractback to summary
public boolean isAbstract()
registerAffectingFetchProfileback to summary
public 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.

Parameters
fetchProfileName:String

The name of the profile affecting this.