public class CollectionLoadContext extends Object
ResultSet
in regards to loading collections.
Another implementation option to consider is to not expose ResultSet
s
directly (in the JDBC redesign) but to always "wrap" them and apply a
[series of] context[s] to that wrapper.Constructor and Description |
---|
CollectionLoadContext(LoadContexts loadContexts,
ResultSet resultSet)
Creates a collection load context for the given result set.
|
Modifier and Type | Method and Description |
---|---|
void |
endLoadingCollections(CollectionPersister persister)
Finish the process of collection-loading for this bound result set.
|
LoadContexts |
getLoadContext() |
PersistentCollection |
getLoadingCollection(CollectionPersister persister,
Serializable key)
Retrieve the collection that is being loaded as part of processing this
result set.
|
ResultSet |
getResultSet() |
String |
toString() |
public CollectionLoadContext(LoadContexts loadContexts, ResultSet resultSet)
loadContexts
- Callback to other collection load contexts.resultSet
- The result set this is "wrapping".public ResultSet getResultSet()
public LoadContexts getLoadContext()
public PersistentCollection getLoadingCollection(CollectionPersister persister, Serializable key)
PersistentCollection
which indicates to
continue loading the result set row data into that returned collection
instance; this may be either an instance already associated and in the
midst of being loaded, or a newly instantiated instance as a matching
associated collection was not found.persister
- The persister for the collection being requested.key
- The key of the collection being requested.public void endLoadingCollections(CollectionPersister persister)
persister
- The persister for which to complete loading.Copyright © 2017 JBoss by Red Hat. All rights reserved.