public class CollectionReturn extends AbstractCollectionReference implements Return, CopyableReturn
Constructor and Description |
---|
CollectionReturn(CollectionReturn original,
CopyContext copyContext) |
CollectionReturn(SessionFactoryImplementor sessionFactory,
LockMode lockMode,
String ownerEntityName,
String ownerProperty) |
Modifier and Type | Method and Description |
---|---|
String |
getOwnerEntityName()
Returns the class owning the collection.
|
String |
getOwnerProperty()
Returns the name of the property representing the collection from the
getOwnerEntityName() . |
void |
hydrate(ResultSet resultSet,
ResultSetProcessingContext context) |
CollectionReturn |
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.
|
String |
toString() |
getCollectionPersister, getElementGraph, getIndexGraph, getLockMode, getPropertyPath, hasEntityElements
sessionFactory
public CollectionReturn(SessionFactoryImplementor sessionFactory, LockMode lockMode, String ownerEntityName, String ownerProperty)
public CollectionReturn(CollectionReturn original, CopyContext copyContext)
public String getOwnerEntityName()
public String getOwnerProperty()
getOwnerEntityName()
.public void hydrate(ResultSet resultSet, ResultSetProcessingContext context) throws SQLException
hydrate
in interface Return
SQLException
public void resolve(ResultSet resultSet, ResultSetProcessingContext context) throws SQLException
Return
resolve
in interface Return
resultSet
- 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
Return
read
in interface Return
resultSet
- The result set being processedcontext
- The context for the processingSQLException
- Indicates a problem access the JDBC result setpublic CollectionReturn makeCopy(CopyContext copyContext)
CopyableReturn
makeCopy
in interface CopyableReturn
Copyright © 2001-2013 Red Hat, Inc. All Rights Reserved.