public class EntityFetch extends AbstractSingularAttributeFetch implements EntityReference, Fetch
Fetch for an entity association attribute as well as a
FetchOwner of the entity association sub-attribute fetches.NO_FETCHES| Modifier | Constructor and Description |
|---|---|
protected |
EntityFetch(EntityFetch original,
CopyContext copyContext,
FetchOwner fetchOwnerCopy)
Copy constructor.
|
|
EntityFetch(SessionFactoryImplementor sessionFactory,
LockMode lockMode,
FetchOwner owner,
String ownerProperty,
FetchStrategy fetchStrategy)
Constructs an
EntityFetch object. |
| Modifier and Type | Method and Description |
|---|---|
EntityPersister |
getEntityPersister()
Retrieves the EntityPersister describing the entity associated with this Return.
|
EntityReference |
getEntityReference() |
EntityType |
getEntityType()
Returns the entity type for this fetch.
|
protected FetchOwnerDelegate |
getFetchOwnerDelegate()
Abstract method returning the delegate for obtaining details about an owned fetch.
|
IdentifierDescription |
getIdentifierDescription() |
LockMode |
getLockMode()
Retrieve the lock mode associated with this return.
|
void |
hydrate(ResultSet resultSet,
ResultSetProcessingContext context) |
void |
injectIdentifierDescription(IdentifierDescription identifierDescription) |
EntityFetch |
makeCopy(CopyContext copyContext,
FetchOwner fetchOwnerCopy) |
EntityKey |
resolve(ResultSet resultSet,
ResultSetProcessingContext context) |
EntityKey |
resolveInIdentifier(ResultSet resultSet,
ResultSetProcessingContext context)
Resolve any fetches required to resolve the identifier as well
as the entity key for this fetch..
|
EntityPersister |
retrieveFetchSourcePersister()
Retrieve the EntityPersister that is the base for any property references in the fetches it owns.
|
String |
toString() |
getColumnNames, getFetchStrategy, getOwner, getOwnerPropertyName, getPropertyPath, isNullable, validateFetchPlanaddFetch, buildCollectionFetch, buildCompositeFetch, buildEntityFetch, getColumnNames, getFetches, getType, isNullablesessionFactoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetColumnNames, getFetchStrategy, getOwner, getOwnerPropertyName, getPropertyPath, isNullablepublic EntityFetch(SessionFactoryImplementor sessionFactory, LockMode lockMode, FetchOwner owner, String ownerProperty, FetchStrategy fetchStrategy)
EntityFetch object.sessionFactory - - the session factory.lockMode - - the lock mode.owner - - the fetch owner for this fetch.ownerProperty - - the owner's property referring to this fetch.fetchStrategy - - the fetch strategy for this fetch.protected EntityFetch(EntityFetch original, CopyContext copyContext, FetchOwner fetchOwnerCopy)
original - The original fetchcopyContext - Access to contextual needs for the copy operationpublic final EntityType getEntityType()
public EntityReference getEntityReference()
getEntityReference in interface ResultSetProcessingContext.EntityKeyResolutionContextpublic EntityPersister getEntityPersister()
EntityReferencegetEntityPersister in interface EntityReferencegetEntityPersister in interface ResultSetProcessingContext.EntityKeyResolutionContextpublic IdentifierDescription getIdentifierDescription()
getIdentifierDescription in interface EntityReferencepublic LockMode getLockMode()
EntityReferencegetLockMode in interface EntityReferencegetLockMode in interface ResultSetProcessingContext.EntityKeyResolutionContextpublic EntityPersister retrieveFetchSourcePersister()
FetchOwnerretrieveFetchSourcePersister in interface FetchOwnerpublic void injectIdentifierDescription(IdentifierDescription identifierDescription)
injectIdentifierDescription in interface IdentifierDescriptionInjectablepublic void hydrate(ResultSet resultSet, ResultSetProcessingContext context) throws SQLException
hydrate in interface FetchSQLExceptionpublic EntityKey resolve(ResultSet resultSet, ResultSetProcessingContext context) throws SQLException
resolve in interface FetchSQLExceptionpublic EntityKey resolveInIdentifier(ResultSet resultSet, ResultSetProcessingContext context) throws SQLException
resultSet - - the result set.context - - the result set processing context.SQLExceptionpublic String toString()
toString in class AbstractSingularAttributeFetchpublic EntityFetch makeCopy(CopyContext copyContext, FetchOwner fetchOwnerCopy)
makeCopy in interface CopyableFetchmakeCopy in interface Fetchprotected FetchOwnerDelegate getFetchOwnerDelegate()
AbstractFetchOwnergetFetchOwnerDelegate in class AbstractFetchOwnerCopyright © 2001-2013 Red Hat, Inc. All Rights Reserved.