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.SessionImplementor, 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 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 boolean
hasRowId()

Does the result set contain rowids?

public boolean
hasSubclasses()

Does this persistent class have subclasses?

public Object[]
hydrate(ResultSet rs, Serializable id, Object object, Loadable rootLoadable, String[][] suffixedPropertyColumns, boolean allProperties, SessionImplementor 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:
afterInitializeafterReassociatecanExtractIdOutOfEntitycreateProxydeletefindDirtyfindModifiedforceVersionIncrementgetCacheAccessStrategygetCacheEntryStructuregetClassMetadatagetConcreteProxyClassgetCurrentVersiongetDatabaseSnapshotgetEntityMetamodelgetEntityNamegetFactorygetIdentifiergetIdentifiergetIdentifierGeneratorgetIdentifierPropertyNamegetIdentifierTypegetMappedClassgetNaturalIdentifierPropertiesgetNaturalIdentifierSnapshotgetPropertyCascadeStylesgetPropertyCheckabilitygetPropertyInsertabilitygetPropertyInsertGenerationInclusionsgetPropertyLazinessgetPropertyNamesgetPropertyNullabilitygetPropertySpacesgetPropertyTypegetPropertyTypesgetPropertyUpdateabilitygetPropertyUpdateGenerationInclusionsgetPropertyValuegetPropertyValuegetPropertyValuesgetPropertyValuesToInsertgetPropertyVersionabilitygetQuerySpacesgetRootEntityNamegetSubclassEntityPersistergetVersiongetVersionPropertygetVersionTypeguessEntityModehasCachehasCascadeshasCollectionshasIdentifierPropertyhasInsertGeneratedPropertieshasLazyPropertieshasMutablePropertieshasNaturalIdentifierhasProxyhasSubselectLoadableCollectionshasUninitializedLazyPropertieshasUpdateGeneratedPropertiesimplementsLifecycleimplementsValidatableinsertinsertinstantiateinstantiateisBatchLoadableisCacheInvalidationRequiredisIdentifierAssignedByInsertisInheritedisInstanceisInstrumentedisLazyPropertiesCacheableisMutableisSelectBeforeUpdateRequiredisSubclassEntityNameisTransientisVersionedisVersionPropertyGeneratedloadloadlocklockpostInstantiateprocessInsertGeneratedPropertiesprocessUpdateGeneratedPropertiesresetIdentifierresetIdentifiersetIdentifiersetIdentifiersetPropertyValuesetPropertyValuesupdate

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

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

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 Object[] hydrate(ResultSet rs, Serializable id, Object object, Loadable rootLoadable, String[][] suffixedPropertyColumns, boolean allProperties, SessionImplementor 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.