Package org.hibernate.persister.entity
Interface Loadable
-
- All Superinterfaces:
AttributeSource
,EntityDefinition
,EntityPersister
- All Known Subinterfaces:
OuterJoinLoadable
,Queryable
,SQLLoadable
,UniqueKeyLoadable
- All Known Implementing Classes:
AbstractEntityPersister
,JoinedSubclassEntityPersister
,SingleTableEntityPersister
,UnionSubclassEntityPersister
public interface Loadable extends EntityPersister
Implemented by a EntityPersister that may be loaded using Loader.- See Also:
Loader
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ROWID_ALIAS
-
Fields inherited from interface org.hibernate.persister.entity.EntityPersister
ENTITY_ID
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getDiscriminatorAlias(java.lang.String suffix)
Get the result set aliases used for the identifier columns, given a suffixjava.lang.String
getDiscriminatorColumnName()
Type
getDiscriminatorType()
Get the discriminator typejava.lang.Object
getDiscriminatorValue()
Get the discriminator valuejava.lang.String[]
getIdentifierAliases(java.lang.String suffix)
Get the result set aliases used for the identifier columns, given a suffixjava.lang.String[]
getIdentifierColumnNames()
Get the names of columns used to persist the identifierjava.lang.String[]
getPropertyAliases(java.lang.String suffix, int i)
Get the result set aliases used for the property columns, given a suffix (properties of this class, only).java.lang.String[]
getPropertyColumnNames(int i)
Get the result set column names mapped for this property (properties of this class, only).java.lang.String
getSubclassForDiscriminatorValue(java.lang.Object value)
Get the concrete subclass corresponding to the given discriminator valuejava.lang.String
getTableAliasForColumn(java.lang.String columnName, java.lang.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.boolean
hasRowId()
Does the result set contain rowids?boolean
hasSubclasses()
Does this persistent class have subclasses?java.lang.Object[]
hydrate(java.sql.ResultSet rs, java.io.Serializable id, java.lang.Object object, Loadable rootLoadable, java.lang.String[][] suffixedPropertyColumns, boolean allProperties, SharedSessionContractImplementor session)
Retrieve property values from one row of a result setboolean
isAbstract()
void
registerAffectingFetchProfile(java.lang.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.-
Methods inherited from interface org.hibernate.persister.walking.spi.AttributeSource
getAttributes
-
Methods inherited from interface org.hibernate.persister.walking.spi.EntityDefinition
getEntityKeyDefinition, getEntityPersister
-
Methods inherited from interface org.hibernate.persister.entity.EntityPersister
afterInitialize, afterReassociate, buildCacheEntry, canExtractIdOutOfEntity, 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, loadEntityIdByNaturalId, lock, lock, multiLoad, postInstantiate, processInsertGeneratedProperties, processUpdateGeneratedProperties, resetIdentifier, resolveAttributeIndexes, setIdentifier, setPropertyValue, setPropertyValues, update
-
-
-
-
Field Detail
-
ROWID_ALIAS
static final java.lang.String ROWID_ALIAS
- See Also:
- Constant Field Values
-
-
Method Detail
-
hasSubclasses
boolean hasSubclasses()
Does this persistent class have subclasses?
-
getDiscriminatorType
Type getDiscriminatorType()
Get the discriminator type
-
getDiscriminatorValue
java.lang.Object getDiscriminatorValue()
Get the discriminator value
-
getSubclassForDiscriminatorValue
java.lang.String getSubclassForDiscriminatorValue(java.lang.Object value)
Get the concrete subclass corresponding to the given discriminator value
-
getIdentifierColumnNames
java.lang.String[] getIdentifierColumnNames()
Get the names of columns used to persist the identifier
-
getIdentifierAliases
java.lang.String[] getIdentifierAliases(java.lang.String suffix)
Get the result set aliases used for the identifier columns, given a suffix
-
getPropertyAliases
java.lang.String[] getPropertyAliases(java.lang.String suffix, int i)
Get the result set aliases used for the property columns, given a suffix (properties of this class, only).
-
getPropertyColumnNames
java.lang.String[] getPropertyColumnNames(int i)
Get the result set column names mapped for this property (properties of this class, only).
-
getDiscriminatorAlias
java.lang.String getDiscriminatorAlias(java.lang.String suffix)
Get the result set aliases used for the identifier columns, given a suffix
-
getDiscriminatorColumnName
java.lang.String getDiscriminatorColumnName()
- Returns:
- the column name for the discriminator as specified in the mapping.
-
hasRowId
boolean hasRowId()
Does the result set contain rowids?
-
hydrate
java.lang.Object[] hydrate(java.sql.ResultSet rs, java.io.Serializable id, java.lang.Object object, Loadable rootLoadable, java.lang.String[][] suffixedPropertyColumns, boolean allProperties, SharedSessionContractImplementor session) throws java.sql.SQLException, HibernateException
Retrieve property values from one row of a result set- Throws:
java.sql.SQLException
HibernateException
-
isAbstract
boolean isAbstract()
-
registerAffectingFetchProfile
void registerAffectingFetchProfile(java.lang.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
- The name of the profile affecting this.
-
getTableAliasForColumn
java.lang.String getTableAliasForColumn(java.lang.String columnName, java.lang.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
- Parameters:
columnName
- The column namerootAlias
- The hierarchy root alias- Returns:
- The proper table alias for qualifying the given column.
-
-