Top Description Fields Constructors Methods
org.hibernate.loader.entity

public Class EntityLoader

extends AbstractEntityLoader
Class Inheritance
Imports
org.hibernate.LockMode, .LockOptions, .MappingException, org.hibernate.engine.spi.LoadQueryInfluencers, .SessionFactoryImplementor, .SharedSessionContractImplementor, org.hibernate.persister.entity.OuterJoinLoadable, org.hibernate.type.Type

Loads an entity instance using outerjoin fetching to fetch associated entities.
The EntityPersister must implement Loadable. For other entities, create a customized subclass of Loader.
Author
Gavin King

Field Summary

Modifier and TypeField and Description
private final boolean
private final int[][]
Inherited from org.hibernate.loader.entity.AbstractEntityLoader:
entityNamepersisteruniqueKeyType

Constructor Summary

AccessConstructor and Description
public
EntityLoader(OuterJoinLoadable persister, LockMode lockMode, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
public
EntityLoader(OuterJoinLoadable persister, LockOptions lockOptions, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
public
EntityLoader(OuterJoinLoadable persister, int batchSize, LockMode lockMode, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
public
EntityLoader(OuterJoinLoadable persister, int batchSize, LockOptions lockOptions, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
public
EntityLoader(OuterJoinLoadable persister, String[] uniqueKey, Type uniqueKeyType, int batchSize, LockMode lockMode, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
public
EntityLoader(OuterJoinLoadable persister, String[] uniqueKey, Type uniqueKeyType, int batchSize, LockOptions lockOptions, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
public
EntityLoader(OuterJoinLoadable persister, boolean[] valueNullness, int batchSize, LockOptions lockOptions, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.

Method Summary

Modifier and TypeMethod and Description
public int[][]
protected boolean
isSingleRowLoader()

Overrides org.hibernate.loader.entity.AbstractEntityLoader.isSingleRowLoader.

Return false is this loader is a batch entity loader
public Object
loadByUniqueKey(SharedSessionContractImplementor session, Object key)

Deprecated will be removed. Use one of the load methods on AbstractEntityLoader instead.
public Object
loadByUniqueKey(SharedSessionContractImplementor session, Object key, Boolean readOnly)

Deprecated will be removed. Use one of the load methods on AbstractEntityLoader instead.
Inherited from org.hibernate.loader.entity.AbstractEntityLoader:
getResultColumnOrRowloadloadloadloadloadload

Field Detail

batchLoaderback to summary
private final boolean batchLoader
compositeKeyManyToOneTargetIndicesback to summary
private final int[][] compositeKeyManyToOneTargetIndices

Constructor Detail

EntityLoaderback to summary
public EntityLoader(OuterJoinLoadable persister, LockMode lockMode, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers) throws MappingException

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

EntityLoaderback to summary
public EntityLoader(OuterJoinLoadable persister, LockOptions lockOptions, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers) throws MappingException

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

EntityLoaderback to summary
public EntityLoader(OuterJoinLoadable persister, int batchSize, LockMode lockMode, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers) throws MappingException

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

EntityLoaderback to summary
public EntityLoader(OuterJoinLoadable persister, int batchSize, LockOptions lockOptions, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers) throws MappingException

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

EntityLoaderback to summary
public EntityLoader(OuterJoinLoadable persister, String[] uniqueKey, Type uniqueKeyType, int batchSize, LockMode lockMode, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers) throws MappingException

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

EntityLoaderback to summary
public EntityLoader(OuterJoinLoadable persister, String[] uniqueKey, Type uniqueKeyType, int batchSize, LockOptions lockOptions, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers) throws MappingException

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

EntityLoaderback to summary
public EntityLoader(OuterJoinLoadable persister, boolean[] valueNullness, int batchSize, LockOptions lockOptions, SessionFactoryImplementor factory, LoadQueryInfluencers loadQueryInfluencers) throws MappingException

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

Method Detail

getCompositeKeyManyToOneTargetIndicesback to summary
public int[][] getCompositeKeyManyToOneTargetIndices()

Overrides org.hibernate.loader.Loader.getCompositeKeyManyToOneTargetIndices.

Annotations
@Override
isSingleRowLoaderback to summary
protected boolean isSingleRowLoader()

Overrides org.hibernate.loader.entity.AbstractEntityLoader.isSingleRowLoader.

Doc from org.hibernate.loader.Loader.isSingleRowLoader.

Return false is this loader is a batch entity loader

Annotations
@Override
loadByUniqueKeyback to summary
public Object loadByUniqueKey(SharedSessionContractImplementor session, Object key)

Deprecated

will be removed. Use one of the load methods on AbstractEntityLoader instead.

Annotations
@Deprecated
loadByUniqueKeyback to summary
public Object loadByUniqueKey(SharedSessionContractImplementor session, Object key, Boolean readOnly)

Deprecated

will be removed. Use one of the load methods on AbstractEntityLoader instead.

Annotations
@Deprecated