java.lang.Object | |
↳ | org.hibernate.engine.loading.LoadContexts |
Maps ResultSet result-sets to specific contextual data related to processing that ResultSet result-sets.
Implementation note: internally anIdentityMap
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...
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates and binds this to the given persistence context.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Release internal state associated with *all* result sets.
| |||||||||||
Release internal state associated with the given result set.
| |||||||||||
Get the
CollectionLoadContext associated with the given
ResultSet , creating one if needed. | |||||||||||
Retrieves the persistence context to which this is bound.
| |||||||||||
Do we currently have any internal entries corresponding to loading
collections?
| |||||||||||
Do we currently have any registered internal entries corresponding to loading
collections?
| |||||||||||
Attempt to locate the loading collection given the owner's key.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Creates and binds this to the given persistence context.
persistenceContext | The persistence context to which this will be bound. |
---|
Release internal state associated with *all* result sets.
This is intended as a "failsafe" process to make sure we get everything cleaned up and released.Release internal state associated with the given result set.
This should be called when we are done with processing said result set, ideally as the result set is being closed.resultSet | The result set for which it is ok to release associated resources. |
---|
Get the CollectionLoadContext
associated with the given
ResultSet
, creating one if needed.
resultSet | The result set for which to retrieve the context. |
---|
Retrieves the persistence context to which this is bound.
Do we currently have any internal entries corresponding to loading collections?
Do we currently have any registered internal entries corresponding to loading collections?
Attempt to locate the loading collection given the owner's key. The lookup here occurs against all result-set contexts...
persister | The collection persister |
---|---|
ownerKey | The owner key |