Top Fields Constructors Methods
org.hibernate.collection.internal

public Class StandardSortedSetSemantics<E>

extends AbstractSetSemantics<SortedSet<E>, E>
Class Inheritance
Imports
java.util.Comparator, .Iterator, .SortedSet, .TreeSet, org.hibernate.collection.spi.AbstractSetSemantics, .PersistentCollection, .PersistentSortedSet, org.hibernate.engine.spi.SharedSessionContractImplementor, org.hibernate.metamodel.CollectionClassification, org.hibernate.persister.collection.CollectionPersister

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
public static final StandardSortedSetSemantics<?>
INSTANCE

Singleton access

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public CollectionClassification
public Class<SortedSet<E>>
public Iterator<E>
public SortedSet<E>
instantiateRaw(int anticipatedSize, CollectionPersister collectionDescriptor)

Implements org.hibernate.collection.spi.CollectionSemantics.instantiateRaw.

Create a raw (unwrapped) version of the collection
public PersistentCollection<E>
public PersistentCollection<E>
wrap(SortedSet<E> rawCollection, CollectionPersister collectionDescriptor, SharedSessionContractImplementor session)

Implements org.hibernate.collection.spi.CollectionSemantics.wrap.

Wrap a raw collection in wrapper
Inherited from org.hibernate.collection.spi.AbstractSetSemantics:
createInitializerProducervisitElements

Field Detail

INSTANCEback to summary
public static final StandardSortedSetSemantics<?> INSTANCE

Singleton access

Constructor Detail

StandardSortedSetSemanticsback to summary
private StandardSortedSetSemantics()

Method Detail

getCollectionClassificationback to summary
public CollectionClassification getCollectionClassification()

Implements org.hibernate.collection.spi.CollectionSemantics.getCollectionClassification.

Doc from org.hibernate.collection.spi.CollectionSemantics.getCollectionClassification.

The classification handled by this semantic

Annotations
@Override
getCollectionJavaTypeback to summary
public Class<SortedSet<E>> getCollectionJavaType()

Overrides org.hibernate.collection.spi.AbstractSetSemantics.getCollectionJavaType.

Implements org.hibernate.collection.spi.CollectionSemantics.getCollectionJavaType.

Doc from org.hibernate.collection.spi.CollectionSemantics.getCollectionJavaType.

The collection's Java type

Annotations
@Override
getElementIteratorback to summary
public Iterator<E> getElementIterator(SortedSet<E> rawCollection)

Overrides org.hibernate.collection.spi.AbstractSetSemantics.getElementIterator.

Implements org.hibernate.collection.spi.CollectionSemantics.getElementIterator.

Doc from org.hibernate.collection.spi.CollectionSemantics.getElementIterator.

Obtain an iterator over the collection elements

Annotations
@Override
instantiateRawback to summary
public SortedSet<E> instantiateRaw(int anticipatedSize, CollectionPersister collectionDescriptor)

Implements org.hibernate.collection.spi.CollectionSemantics.instantiateRaw.

Doc from org.hibernate.collection.spi.CollectionSemantics.instantiateRaw.

Create a raw (unwrapped) version of the collection

Annotations
@Override
instantiateWrapperback to summary
public PersistentCollection<E> instantiateWrapper(Object key, CollectionPersister collectionDescriptor, SharedSessionContractImplementor session)

Implements org.hibernate.collection.spi.CollectionSemantics.instantiateWrapper.

Doc from org.hibernate.collection.spi.CollectionSemantics.instantiateWrapper.

Create a wrapper for the collection

Annotations
@Override
wrapback to summary
public PersistentCollection<E> wrap(SortedSet<E> rawCollection, CollectionPersister collectionDescriptor, SharedSessionContractImplementor session)

Implements org.hibernate.collection.spi.CollectionSemantics.wrap.

Doc from org.hibernate.collection.spi.CollectionSemantics.wrap.

Wrap a raw collection in wrapper

Annotations
@Override