Package org.hibernate.persister.entity
Interface Loadable
-
- All Superinterfaces:
AttributeSource,Bindable,Discriminable,EntityMappingType,EntityMutationTarget,EntityPersister,EntityValuedModelPart,FetchableContainer,FilterRestrictable,JdbcMappingContainer,Loadable,ManagedMappingType,MappingModelExpressible,MappingType,ModelPart,ModelPartContainer,MutationTarget<EntityTableMapping>,Restrictable,RootTableGroupProducer,SoftDeletableModelPart,TableGroupProducer,WhereRestrictable
- All Known Subinterfaces:
DeprecatedEntityStuff,OuterJoinLoadable,Queryable,SQLLoadable,UniqueKeyLoadable
- All Known Implementing Classes:
AbstractEntityPersister,JoinedSubclassEntityPersister,MockEntityPersister,ProcessorSessionFactory.EntityPersister,SingleTableEntityPersister,UnionSubclassEntityPersister
@Deprecated(since="6", forRemoval=true) public interface Loadable extends EntityPersister
Deprecated, for removal: This API element is subject to removal in a future version.Implemented by anyEntityPersisterthat may be loaded using aLoader.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.hibernate.metamodel.mapping.Bindable
Bindable.JdbcValuesBiConsumer<X,Y>, Bindable.JdbcValuesConsumer
-
Nested classes/interfaces inherited from interface org.hibernate.metamodel.mapping.EntityMappingType
EntityMappingType.ConstraintOrderedTableConsumer
-
Nested classes/interfaces inherited from interface org.hibernate.metamodel.mapping.ModelPart
ModelPart.JdbcValueBiConsumer<X,Y>, ModelPart.JdbcValueConsumer
-
-
Field Summary
Fields Modifier and Type Field Description static StringROWID_ALIASDeprecated, for removal: This API element is subject to removal in a future version.-
Fields inherited from interface org.hibernate.persister.entity.EntityPersister
ENTITY_ID
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description StringgetDiscriminatorAlias(String suffix)Deprecated, for removal: This API element is subject to removal in a future version.Get the result set aliases used for the identifier columns, given a suffixStringgetDiscriminatorColumnName()Deprecated.UseSelectableMapping.getSelectionExpression()insteadTypegetDiscriminatorType()Deprecated, for removal: This API element is subject to removal in a future version.Get the discriminator typeObjectgetDiscriminatorValue()Deprecated.UseEntityMappingType.getDiscriminatorValue()insteadString[]getIdentifierAliases(String suffix)Deprecated, for removal: This API element is subject to removal in a future version.Get the result set aliases used for the identifier columns, given a suffixString[]getIdentifierColumnNames()Deprecated, for removal: This API element is subject to removal in a future version.Get the names of columns used to persist the identifierString[]getPropertyAliases(String suffix, int i)Deprecated, for removal: This API element is subject to removal in a future version.Get the result set aliases used for the property columns, given a suffix (properties of this class, only).String[]getPropertyColumnNames(int i)Deprecated, for removal: This API element is subject to removal in a future version.Get the result set column names mapped for this property (properties of this class, only).StringgetSubclassForDiscriminatorValue(Object value)Deprecated.StringgetTableAliasForColumn(String columnName, String rootAlias)Deprecated, for removal: This API element is subject to removal in a future version.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()Deprecated, for removal: This API element is subject to removal in a future version.Does the result set contain rowids?booleanhasSubclasses()Deprecated.booleanisAbstract()Deprecated, for removal: This API element is subject to removal in a future version.Whether this entity is defined as abstract using the JavaabstractkeywordvoidregisterAffectingFetchProfile(String fetchProfileName)Deprecated, for removal: This API element is subject to removal in a future version.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.-
Methods inherited from interface org.hibernate.persister.walking.spi.AttributeSource
getPropertyIndex
-
Methods inherited from interface org.hibernate.metamodel.mapping.Bindable
forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachDisassembledJdbcValue, forEachJdbcType, forEachJdbcValue, forEachJdbcValue, forEachJdbcValue
-
Methods inherited from interface org.hibernate.metamodel.mapping.EntityMappingType
applyBaseRestrictions, applyDiscriminator, applyFilterRestrictions, applyWhereRestrictions, asEntityMappingType, createPrimaryTableReference, createRootTableGroup, createTableReferenceJoin, extractConcreteTypeStateValues, findContainingEntityMapping, findDeclaredAttributeMapping, findSubPart, findSubTypesSubPart, forEachAttributeMapping, getAttributeMappings, getContributor, getDeclaredAttributeMappings, getDiscriminatorMapping, getDiscriminatorSQLValue, getEntityPersister, getFetchable, getIdentifierMapping, getIdentifierMappingForJoin, getIdentifierTableDetails, getJavaType, getJdbcTypeCount, getMappedJavaType, getMappedSuperclass, getMappedTableDetails, getNaturalIdMapping, getNumberOfAttributeMappings, getNumberOfDeclaredAttributeMappings, getNumberOfFetchables, getPartMappingType, getPartName, getRootEntityDescriptor, getRootPathName, getRowIdMapping, getSoftDeleteMapping, getSoftDeleteTableDetails, getSubclassEntityNames, getSubclassId, getSubMappingTypes, getSuperMappingType, getVersionMapping, hasWhereRestrictions, isAffectedByEnabledFetchProfiles, isAffectedByEnabledFilters, isAffectedByEntityGraph, isConcreteProxy, isExplicitPolymorphism, isTypeOrSuperType, isTypeOrSuperType, optimisticLockStyle, pruneForSubclasses, pruneForSubclasses, resolveConcreteProxyTypeForId, visitAttributeMappings, visitConstraintOrderedTables, visitDeclaredAttributeMappings, visitSubTypeAttributeMappings, visitSuperTypeAttributeMappings
-
Methods inherited from interface org.hibernate.persister.entity.mutation.EntityMutationTarget
getIdentifierDescriptor, getIdentifierTableMapping, getIdentityInsertDelegate, getInsertDelegate, getMutationDelegate, getTargetPart, getUpdateDelegate, hasSkippableTables
-
Methods inherited from interface org.hibernate.persister.entity.EntityPersister
addToCacheKey, afterInitialize, afterReassociate, breakDownJdbcValues, buildCacheEntry, canExtractIdOutOfEntity, canReadFromCache, canUseReferenceCacheEntries, canWriteToCache, createProxy, delete, findDirty, findModified, forceVersionIncrement, forceVersionIncrement, getAttributeMapping, getBatchSize, getBytecodeEnhancementMetadata, getCacheAccessStrategy, getCacheEntryStructure, getClassMetadata, getConcreteProxyClass, getCurrentVersion, getDatabaseSnapshot, getDeleteCoordinator, getEntityEntryFactory, getEntityMappingType, getEntityMetamodel, getEntityName, getFactory, getFilterAliasGenerator, getFilterAliasGenerator, getGeneratedProperties, getGenerator, getIdByUniqueKey, getIdentifier, getIdentifier, getIdentifierGenerator, getIdentifierPropertyName, getIdentifierType, getIdentitySelectString, getInsertCoordinator, getInsertGeneratedProperties, getInstrumentationMetadata, getMappedClass, getMergeCoordinator, getMultiNaturalIdLoader, getNaturalIdCacheAccessStrategy, getNaturalIdentifierProperties, getNaturalIdentifierSnapshot, getNaturalIdLoader, getPropertyCascadeStyles, getPropertyCheckability, getPropertyInsertability, getPropertyLaziness, getPropertyNames, getPropertyNullability, getPropertySpaces, getPropertyType, getPropertyTypes, getPropertyUpdateability, getPropertyValue, getPropertyValue, getPropertyValues, getPropertyValuesToInsert, getPropertyVersionability, getQuerySpaces, getRepresentationStrategy, getRootEntityName, getRootTableKeyColumnNames, getSelectByUniqueKeyString, getSelectByUniqueKeyString, getSelectByUniqueKeyString, getSqlAliasStem, getSqmMultiTableInsertStrategy, getSqmMultiTableMutationStrategy, getSubclassEntityPersister, getSynchronizationSpaces, getSynchronizedQuerySpaces, getUpdateCoordinator, getUpdateGeneratedProperties, getValue, getValues, getVersion, getVersionGenerator, getVersionJavaType, getVersionProperty, getVersionType, hasCache, hasCascadeDelete, hasCascades, hasCollectionNotReferencingPK, hasCollections, hasFilterForLoadByKey, hasIdentifierProperty, hasInsertGeneratedProperties, hasLazyProperties, hasMutableProperties, hasNaturalIdCache, hasNaturalIdentifier, hasOwnedCollections, hasProxy, hasSubselectLoadableCollections, hasUninitializedLazyProperties, hasUpdateGeneratedProperties, implementsLifecycle, initializeEnhancedEntityUsedAsProxy, insert, insert, instantiate, isBatchLoadable, isCacheInvalidationRequired, isIdentifierAssignedByInsert, isInherited, isInstance, isInstrumented, isLazyPropertiesCacheable, isMutable, isPropertySelectable, isSelectBeforeUpdateRequired, isSubclassEntityName, isTransient, isVersioned, isVersionPropertyGenerated, load, load, load, load, loadByUniqueKey, loadEntityIdByNaturalId, lock, lock, merge, multiLoad, postInstantiate, prepareLoaders, processInsertGeneratedProperties, processInsertGeneratedProperties, processUpdateGeneratedProperties, processUpdateGeneratedProperties, resetIdentifier, resolveAttributeIndexes, resolveDirtyAttributeIndexes, setIdentifier, setPropertyValue, setPropertyValues, setValue, setValues, storeDiscriminatorInShallowQueryCacheLayout, uniqueKeyEntries, update, useShallowQueryCacheLayout, visitQuerySpaces
-
Methods inherited from interface org.hibernate.metamodel.mapping.EntityValuedModelPart
applySqlSelections, applySqlSelections, createDomainResult, disassemble, findSubPart, forEachDisassembledJdbcValue, forEachJdbcType, forEachJdbcValue, forEachSubPart, visitSubParts
-
Methods inherited from interface org.hibernate.sql.results.graph.FetchableContainer
getKeyFetchable, getNumberOfFetchableKeys, getNumberOfKeyFetchables, getSelectableIndex, visitFetchables, visitFetchables, visitFetchables, visitKeyFetchables, visitKeyFetchables, visitKeyFetchables
-
Methods inherited from interface org.hibernate.metamodel.mapping.FilterRestrictable
applyFilterRestrictions
-
Methods inherited from interface org.hibernate.metamodel.mapping.JdbcMappingContainer
getJdbcMapping, getSingleJdbcMapping
-
Methods inherited from interface org.hibernate.loader.ast.spi.Loadable
isAffectedByEnabledFilters, isAffectedByInfluencers, isAffectedByInfluencers, isNotAffectedByInfluencers
-
Methods inherited from interface org.hibernate.metamodel.mapping.ManagedMappingType
anyRequiresAggregateColumnWriter, findAttributeMapping, forEachAttributeMapping, hasPartitionedSelectionMapping, isAffectedByEnabledFilters
-
Methods inherited from interface org.hibernate.metamodel.mapping.ModelPart
areEqual, asAttributeMapping, asBasicValuedModelPart, breakDownJdbcValues, decompose, decompose, forEachSelectable, forEachSelectable, getNavigableRole, isEntityIdentifierMapping, isVirtual
-
Methods inherited from interface org.hibernate.metamodel.mapping.ModelPartContainer
findByPath, findByPath, forEachSubPart
-
Methods inherited from interface org.hibernate.sql.model.MutationTarget
forEachMutableTable, forEachMutableTableReverse, getIdentifierTableName, getNavigableRole, getRolePath
-
Methods inherited from interface org.hibernate.metamodel.mapping.Restrictable
applyBaseRestrictions
-
Methods inherited from interface org.hibernate.sql.ast.tree.from.TableGroupProducer
containsTableReference
-
-
-
-
Field Detail
-
ROWID_ALIAS
static final String ROWID_ALIAS
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
- Constant Field Values
-
-
Method Detail
-
hasSubclasses
@Deprecated boolean hasSubclasses()
Deprecated.Does this persistent class have subclasses?- Specified by:
hasSubclassesin interfaceEntityMappingType
-
getDiscriminatorType
Type getDiscriminatorType()
Deprecated, for removal: This API element is subject to removal in a future version.Get the discriminator type
-
getDiscriminatorValue
@Deprecated Object getDiscriminatorValue()
Deprecated.UseEntityMappingType.getDiscriminatorValue()insteadGet the discriminator value- Specified by:
getDiscriminatorValuein interfaceEntityMappingType
-
getSubclassForDiscriminatorValue
@Deprecated String getSubclassForDiscriminatorValue(Object value)
Deprecated.Get the concrete subclass corresponding to the given discriminator value
-
getIdentifierColumnNames
String[] getIdentifierColumnNames()
Deprecated, for removal: This API element is subject to removal in a future version.Get the names of columns used to persist the identifier- Specified by:
getIdentifierColumnNamesin interfaceEntityPersister
-
getIdentifierAliases
String[] getIdentifierAliases(String suffix)
Deprecated, for removal: This API element is subject to removal in a future version.Get the result set aliases used for the identifier columns, given a suffix
-
getPropertyAliases
String[] getPropertyAliases(String suffix, int i)
Deprecated, for removal: This API element is subject to removal in a future version.Get the result set aliases used for the property columns, given a suffix (properties of this class, only).
-
getPropertyColumnNames
String[] getPropertyColumnNames(int i)
Deprecated, for removal: This API element is subject to removal in a future version.Get the result set column names mapped for this property (properties of this class, only).
-
getDiscriminatorAlias
String getDiscriminatorAlias(String suffix)
Deprecated, for removal: This API element is subject to removal in a future version.Get the result set aliases used for the identifier columns, given a suffix
-
getDiscriminatorColumnName
@Deprecated String getDiscriminatorColumnName()
Deprecated.UseSelectableMapping.getSelectionExpression()instead- Returns:
- the column name for the discriminator as specified in the mapping.
-
hasRowId
boolean hasRowId()
Deprecated, for removal: This API element is subject to removal in a future version.Does the result set contain rowids?
-
isAbstract
boolean isAbstract()
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:EntityMappingTypeWhether this entity is defined as abstract using the Javaabstractkeyword- Specified by:
isAbstractin interfaceEntityMappingType
-
registerAffectingFetchProfile
void registerAffectingFetchProfile(String fetchProfileName)
Deprecated, for removal: This API element is subject to removal in a future version.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- The name of the profile affecting this.
-
getTableAliasForColumn
String getTableAliasForColumn(String columnName, String rootAlias)
Deprecated, for removal: This API element is subject to removal in a future version.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.- Parameters:
columnName- The column namerootAlias- The hierarchy root alias- Returns:
- The proper table alias for qualifying the given column.
- Implementation Note:
- Generally speaking the column is not validated to exist. Most implementations simply return the
root alias; the exception is
JoinedSubclassEntityPersister.
-
-