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
Annotations
@Deprecated
since:6
forRemoval:true
Imports
org.hibernate.metamodel.mapping.EntityDiscriminatorMapping, .EntityMappingType, org.hibernate.type.Type

Deprecated

for removal since 6.

Use EntityMappingType

Implemented by any EntityPersister that may be loaded using a org.hibernate.loader.ast.spi.Loader.
Author
Gavin King

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
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()

Redeclares as abstract: org.hibernate.metamodel.mapping.EntityMappingType.hasSubclasses.

Does this persistent class have subclasses?
public boolean
isAbstract()

Redeclares as abstract: org.hibernate.metamodel.mapping.EntityMappingType.isAbstract.

Whether this entity is defined as abstract using the Java abstract keyword
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:
addToCacheKeyafterInitializeafterReassociatebreakDownJdbcValuesbuildCacheEntrycanExtractIdOutOfEntitycanReadFromCachecanUseReferenceCacheEntriescanWriteToCachecreateProxydeletefindDirtyfindModifiedforceVersionIncrementforceVersionIncrementgetAttributeMappinggetBatchSizegetBytecodeEnhancementMetadatagetCacheAccessStrategygetCacheEntryStructuregetClassMetadatagetConcreteProxyClassgetCurrentVersiongetDatabaseSnapshotgetEntityEntryFactorygetEntityMappingTypegetEntityMetamodelgetEntityNamegetFactorygetFilterAliasGeneratorgetFilterAliasGeneratorgetGeneratorgetIdByUniqueKeygetIdentifiergetIdentifierGeneratorgetIdentifierPropertyNamegetIdentifierTypegetInstrumentationMetadatagetMappedClassgetMultiNaturalIdLoadergetNaturalIdCacheAccessStrategygetNaturalIdentifierPropertiesgetNaturalIdentifierSnapshotgetNaturalIdLoadergetPropertyCascadeStylesgetPropertyCheckabilitygetPropertyInsertabilitygetPropertyLazinessgetPropertyNamesgetPropertyNullabilitygetPropertySpacesgetPropertyTypegetPropertyTypesgetPropertyUpdateabilitygetPropertyValuegetPropertyValuegetPropertyValuesgetPropertyValuesToInsertgetPropertyVersionabilitygetQuerySpacesgetRepresentationStrategygetRootEntityNamegetSqlAliasStemgetSqmMultiTableInsertStrategygetSqmMultiTableMutationStrategygetSubclassEntityPersistergetSynchronizationSpacesgetSynchronizedQuerySpacesgetValuegetValuesgetVersiongetVersionGeneratorgetVersionJavaTypegetVersionPropertygetVersionTypehasCachehasCascadeDeletehasCascadeshasCollectionNotReferencingPKhasCollectionshasIdentifierPropertyhasInsertGeneratedPropertieshasLazyPropertieshasMutablePropertieshasNaturalIdCachehasNaturalIdentifierhasOwnedCollectionshasProxyhasSubselectLoadableCollectionshasUninitializedLazyPropertieshasUpdateGeneratedPropertiesimplementsLifecycleinitializeEnhancedEntityUsedAsProxyinsertinsertinstantiateisBatchLoadableisCacheInvalidationRequiredisIdentifierAssignedByInsertisInheritedisInstanceisInstrumentedisLazyPropertiesCacheableisMutableisPropertySelectableisSelectBeforeUpdateRequiredisSubclassEntityNameisTransientisVersionedisVersionPropertyGeneratedloadloadloadloadloadByUniqueKeyloadEntityIdByNaturalIdlocklockmergemultiLoadpostInstantiateprepareLoadersprocessInsertGeneratedPropertiesprocessUpdateGeneratedPropertiesresetIdentifierresolveAttributeIndexesresolveDirtyAttributeIndexessetIdentifiersetPropertyValuesetPropertyValuessetValuesetValuesuniqueKeyEntriesupdatevisitQuerySpaces

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.

Annotations
@Deprecated
getDiscriminatorTypeback to summary
public Type getDiscriminatorType()

Get the discriminator type

getDiscriminatorValueback to summary
public Object getDiscriminatorValue()

Redeclares org.hibernate.metamodel.mapping.EntityMappingType.getDiscriminatorValue.

Get the discriminator value

Annotations
@Deprecated
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

Annotations
@Deprecated
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.

Implementation 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()

Redeclares as abstract: org.hibernate.metamodel.mapping.EntityMappingType.hasSubclasses.

Does this persistent class have subclasses?

Annotations
@Deprecated
isAbstractback to summary
public boolean isAbstract()

Redeclares as abstract: org.hibernate.metamodel.mapping.EntityMappingType.isAbstract.

Doc from org.hibernate.metamodel.mapping.EntityMappingType.isAbstract.

Whether this entity is defined as abstract using the Java abstract keyword

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.