Top Description Interfaces Classes
[default module]

Package org.hibernate.collection.spi


This package defines the SPI of a framework for lazy-initializing and state-tracking collection wrappers.

The interface org.hibernate.collection.spi.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
org.hibernate.collection.spi.PersistentCollection, org.hibernate.collection.spi.CollectionSemantics

Interface Summary

Modifier and TypeInterface and Description
public interface
BagSemantics<BE extends Collection<E>, E>

public interface
CollectionInitializerProducer

Functional contract to create a CollectionInitializer.

public interface
CollectionSemantics<
the type of the collection
CE
,
the collection element or map key type
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.

public interface
CollectionSemanticsResolver

Resolve the collection semantics for the given mapped collection.

public interface
LazyInitializable

The most general abstraction over collections which may be fetched lazily.

public interface
MapSemantics<MKV extends Map<K, V>, K, V>

Extension of CollectionSemantics for Maps

public interface
PersistentCollection<
the collection element type, or map value type
E
>

Persistent collections are treated as value objects by Hibernate.

Class Summary

Modifier and TypeClass and Description
public abstract class
public abstract class
AbstractMapSemantics<MKV extends Map<K, V>, K, V>

public abstract class
public abstract class
AbstractSetSemantics<SE extends Set<E>, E>

public class
public class
PersistentArrayHolder<E>

A dummy collection wrapper for an array.

public class
PersistentBag<E>

An unordered, un-keyed collection that can contain the same element multiple times.

public class
PersistentIdentifierBag<E>

An "identifier bag" implements "bag" semantics more efficiently than a regular bag by adding a synthetic identifier column to the table.

public class
PersistentList<E>

A persistent wrapper for a java.util.List.

public class
PersistentMap<K, E>

A persistent wrapper for a java.util.Map.

public class
PersistentSet<E>

A persistent wrapper for a java.util.Set.

public class
PersistentSortedMap<K, E>

A persistent wrapper for a java.util.SortedMap.

public class
PersistentSortedSet<E>

A persistent wrapper for a java.util.SortedSet.