Package org.hibernate.collection.spi
This package defines the SPI of a framework for lazy-initializing
and state-tracking collection wrappers.
The interface PersistentCollection
and all its implementations belong to an SPI. They are not part of the
public API of Hibernate, and are not meant to be used directly by typical
programs which use Hibernate for persistence.
- See Also:
PersistentCollection
,CollectionSemantics
-
Interface Summary Interface Description AbstractPersistentCollection.DelayedOperation<E> Contract for operations which are part of a collection's operation queue.AbstractPersistentCollection.LazyInitializationWork<T> TBH not sure why this is publicAbstractPersistentCollection.ValueDelayedOperation<E> BagSemantics<BE extends Collection<E>,E> CollectionInitializerProducer Functional contract to create aCollectionInitializer
.CollectionSemantics<CE,E> Each instance of this interface describes the semantics of some sort of persistent collection so that Hibernate understands how to manage the lifecycle of instances of that sort of collection.CollectionSemanticsResolver Resolve the collection semantics for the given mapped collection.LazyInitializable The most general abstraction over collections which may be fetched lazily.MapSemantics<MKV extends Map<K,V>,K,V> Extension ofCollectionSemantics
for MapsPersistentCollection<E> Persistent collections are treated as value objects by Hibernate. -
Class Summary Class Description AbstractBagSemantics<E> AbstractMapSemantics<MKV extends Map<K,V>,K,V> AbstractPersistentCollection<E> Base class implementingPersistentCollection
AbstractSetSemantics<SE extends Set<E>,E> InitializerProducerBuilder PersistentArrayHolder<E> A dummy collection wrapper for an array.PersistentBag<E> An unordered, un-keyed collection that can contain the same element multiple times.PersistentIdentifierBag<E> An "identifier bag" implements "bag" semantics more efficiently than a regular bag by adding a synthetic identifier column to the table.PersistentList<E> A persistent wrapper for aList
.PersistentMap<K,E> A persistent wrapper for aMap
.PersistentSet<E> A persistent wrapper for aSet
.PersistentSortedMap<K,E> A persistent wrapper for aSortedMap
.PersistentSortedSet<E> A persistent wrapper for aSortedSet
.