|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.engine.loading.LoadContexts
Maps result-sets
to specific contextual data
related to processing that result-sets
.
IdentityMap
is used to maintain
the mappings; IdentityMap
was chosen because I'd rather not be
dependent upon potentially bad ResultSet#equals
and {ResultSet#hashCode}
implementations.
Considering the JDBC-redesign work, would further like this contextual info
not mapped seperately, but available based on the result set being processed.
This would also allow maintaining a single mapping as we could reliably get
notification of the result-set closing...
Constructor Summary | |
LoadContexts(PersistenceContext persistenceContext)
Creates and binds this to the given persistence context. |
Method Summary | |
void |
cleanup(ResultSet resultSet)
|
CollectionLoadContext |
getCollectionLoadContext(ResultSet resultSet)
Get the CollectionLoadContext associated with the given
ResultSet , creating one if needed. |
EntityLoadContext |
getEntityLoadContext(ResultSet resultSet)
|
PersistenceContext |
getPersistenceContext()
Retrieves the persistence context to which this is bound. |
PersistentCollection |
locateLoadingCollection(CollectionPersister persister,
Serializable ownerKey)
Attempt to locate the loading collection given the owner's key. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LoadContexts(PersistenceContext persistenceContext)
persistenceContext
- The persistence context to which this
will be bound.Method Detail |
public PersistenceContext getPersistenceContext()
public CollectionLoadContext getCollectionLoadContext(ResultSet resultSet)
CollectionLoadContext
associated with the given
ResultSet
, creating one if needed.
resultSet
- The result set for which to retrieve the context.
public PersistentCollection locateLoadingCollection(CollectionPersister persister, Serializable ownerKey)
persister
- The collection persisterownerKey
- The owner key
public EntityLoadContext getEntityLoadContext(ResultSet resultSet)
public void cleanup(ResultSet resultSet)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |