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, validateFetchPlan
addFetch, buildCollectionFetch, buildCompositeFetch, buildEntityFetch, getColumnNames, getFetches, getType, isNullable
sessionFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getColumnNames, getFetchStrategy, getOwner, getOwnerPropertyName, getPropertyPath, isNullable
public 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.EntityKeyResolutionContext
public EntityPersister getEntityPersister()
EntityReference
getEntityPersister
in interface EntityReference
getEntityPersister
in interface ResultSetProcessingContext.EntityKeyResolutionContext
public IdentifierDescription getIdentifierDescription()
getIdentifierDescription
in interface EntityReference
public LockMode getLockMode()
EntityReference
getLockMode
in interface EntityReference
getLockMode
in interface ResultSetProcessingContext.EntityKeyResolutionContext
public EntityPersister retrieveFetchSourcePersister()
FetchOwner
retrieveFetchSourcePersister
in interface FetchOwner
public void injectIdentifierDescription(IdentifierDescription identifierDescription)
injectIdentifierDescription
in interface IdentifierDescriptionInjectable
public void hydrate(ResultSet resultSet, ResultSetProcessingContext context) throws SQLException
hydrate
in interface Fetch
SQLException
public EntityKey resolve(ResultSet resultSet, ResultSetProcessingContext context) throws SQLException
resolve
in interface Fetch
SQLException
public EntityKey resolveInIdentifier(ResultSet resultSet, ResultSetProcessingContext context) throws SQLException
resultSet
- - the result set.context
- - the result set processing context.SQLException
public String toString()
toString
in class AbstractSingularAttributeFetch
public EntityFetch makeCopy(CopyContext copyContext, FetchOwner fetchOwnerCopy)
makeCopy
in interface CopyableFetch
makeCopy
in interface Fetch
protected FetchOwnerDelegate getFetchOwnerDelegate()
AbstractFetchOwner
getFetchOwnerDelegate
in class AbstractFetchOwner
Copyright © 2001-2013 Red Hat, Inc. All Rights Reserved.