public class EntityReturn extends AbstractFetchOwner implements Return, EntityReference, CopyableReturn
ReturnNO_FETCHES| Modifier | Constructor and Description |
|---|---|
protected |
EntityReturn(EntityReturn original,
CopyContext copyContext) |
|
EntityReturn(SessionFactoryImplementor sessionFactory,
LockMode lockMode,
String entityName)
Construct an
EntityReturn. |
| Modifier and Type | Method and Description |
|---|---|
EntityPersister |
getEntityPersister()
Retrieves the EntityPersister describing the entity associated with this Return.
|
EntityReference |
getEntityReference() |
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.
|
PropertyPath |
getPropertyPath()
Get the property path to this fetch owner
|
void |
hydrate(ResultSet resultSet,
ResultSetProcessingContext context) |
void |
injectIdentifierDescription(IdentifierDescription identifierDescription) |
EntityReturn |
makeCopy(CopyContext copyContext)
Makes a deep copy.
|
Object |
read(ResultSet resultSet,
ResultSetProcessingContext context)
Essentially performs the second phase of two-phase loading.
|
void |
resolve(ResultSet resultSet,
ResultSetProcessingContext context)
Effectively performs first phase of two-phase loading.
|
EntityPersister |
retrieveFetchSourcePersister()
Retrieve the EntityPersister that is the base for any property references in the fetches it owns.
|
String |
toString() |
void |
validateFetchPlan(FetchStrategy fetchStrategy)
Is the asserted plan valid from this owner to a fetch?
|
addFetch, buildCollectionFetch, buildCompositeFetch, buildEntityFetch, getColumnNames, getFetches, getType, isNullablesessionFactorypublic EntityReturn(SessionFactoryImplementor sessionFactory, LockMode lockMode, String entityName)
EntityReturn.sessionFactory - - the session factory.lockMode - - the lock mode.entityName - - the entity name.protected EntityReturn(EntityReturn original, CopyContext copyContext)
public LockMode getLockMode()
EntityReferencegetLockMode in interface EntityReferencegetLockMode in interface ResultSetProcessingContext.EntityKeyResolutionContextpublic EntityReference getEntityReference()
getEntityReference in interface ResultSetProcessingContext.EntityKeyResolutionContextpublic EntityPersister getEntityPersister()
EntityReferencegetEntityPersister in interface EntityReferencegetEntityPersister in interface ResultSetProcessingContext.EntityKeyResolutionContextpublic IdentifierDescription getIdentifierDescription()
getIdentifierDescription in interface EntityReferencepublic void validateFetchPlan(FetchStrategy fetchStrategy)
FetchOwnervalidateFetchPlan in interface FetchOwnerfetchStrategy - The pla to validatepublic EntityPersister retrieveFetchSourcePersister()
FetchOwnerretrieveFetchSourcePersister in interface FetchOwnerpublic PropertyPath getPropertyPath()
FetchOwnergetPropertyPath in interface FetchOwnerpublic void hydrate(ResultSet resultSet, ResultSetProcessingContext context) throws SQLException
hydrate in interface ReturnSQLExceptionpublic void resolve(ResultSet resultSet, ResultSetProcessingContext context) throws SQLException
Returnresolve in interface ReturnresultSet - The result set being processedcontext - The context for the processingSQLException - Indicates a problem access the JDBC result setpublic Object read(ResultSet resultSet, ResultSetProcessingContext context) throws SQLException
Returnread in interface ReturnresultSet - The result set being processedcontext - The context for the processingSQLException - Indicates a problem access the JDBC result setpublic void injectIdentifierDescription(IdentifierDescription identifierDescription)
injectIdentifierDescription in interface IdentifierDescriptionInjectablepublic EntityReturn makeCopy(CopyContext copyContext)
CopyableReturnmakeCopy in interface CopyableReturnprotected FetchOwnerDelegate getFetchOwnerDelegate()
AbstractFetchOwnergetFetchOwnerDelegate in class AbstractFetchOwnerCopyright © 2001-2013 Red Hat, Inc. All Rights Reserved.