Class PersistentSortedSet<E>
java.lang.Object
org.hibernate.collection.spi.AbstractPersistentCollection<E>
org.hibernate.collection.spi.PersistentSet<E>
org.hibernate.collection.spi.PersistentSortedSet<E>
- All Implemented Interfaces:
Serializable, Iterable<E>, Collection<E>, SequencedCollection<E>, SequencedSet<E>, Set<E>, SortedSet<E>, LazyInitializable, PersistentCollection<E>, InstanceIdentity
A persistent wrapper for a
SortedSet. Underlying
collection is a TreeSet.- See Also:
- API Note:
- Incubating in terms of making this non-internal. These contracts will be getting cleaned up in following releases.
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractPersistentCollection
AbstractPersistentCollection.AbstractValueDelayedOperation, AbstractPersistentCollection.DelayedOperation<E>, AbstractPersistentCollection.IteratorProxy<E>, AbstractPersistentCollection.LazyInitializationWork<T>, AbstractPersistentCollection.ListIteratorProxy, AbstractPersistentCollection.ListProxy, AbstractPersistentCollection.SetProxy<E>, AbstractPersistentCollection.ValueDelayedOperation<E> -
Field Summary
FieldsFields inherited from class PersistentSet
setFields inherited from class AbstractPersistentCollection
elementRemoved, UNKNOWN -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a PersistentSortedSet.PersistentSortedSet(SharedSessionContractImplementor session, Comparator<E> comparator) Constructs a PersistentSortedSetPersistentSortedSet(SharedSessionContractImplementor session, SortedSet<E> set) Constructs a PersistentSortedSet -
Method Summary
Modifier and TypeMethodDescriptionComparator<? super E> first()last()voidsetComparator(Comparator<? super E> comparator) protected Serializablesnapshot(BasicCollectionPersister persister) Methods inherited from class PersistentSet
add, addAll, clear, contains, containsAll, disassemble, empty, entries, entryExists, equals, equalsSnapshot, getDeletes, getElement, getIndex, getOrphans, getSnapshot, getSnapshotElement, hasDeletes, hashCode, initializeEmptyCollection, initializeFromCache, injectLoadedState, isEmpty, isRowUpdatePossible, isSnapshotEmpty, isWrapper, iterator, needsInserting, needsUpdating, remove, removeAll, retainAll, size, toArray, toArray, toStringMethods inherited from class AbstractPersistentCollection
$$_hibernate_getInstanceId, $$_hibernate_setInstanceId, afterInitialize, afterRowInsert, beforeInitialize, beginRead, checkPersister, clearDirty, clearOperationQueue, dirty, elementByIndex, elementExists, endRead, forceInitialization, getCachedSize, getIdentifier, getKey, getOrphans, getOwner, getQueuedOrphans, getRole, getSession, getSize, getSnapshot, getStoredSnapshot, getValue, hasQueuedOperations, identityRemove, initialize, isClearQueueEnabled, isConnectedToSession, isDirectlyAccessible, isDirty, isElementRemoved, isInitialized, isInitializing, isInverseCollection, isInverseCollectionNoOrphanDelete, isInverseOneToManyOrNoOrphanDelete, isOperationQueueEnabled, isPutQueueEnabled, isUnreferenced, needsRecreate, performQueuedOperations, postAction, preInsert, prepareForPossibleLoadingOutsideTransaction, queuedAdditionIterator, queueOperation, read, readElementByIndex, readElementExistence, readIndexExistence, readSize, replaceQueuedOperationValues, setCurrentSession, setDirectlyAccessible, setInitialized, setOwner, setSnapshot, unsetSession, wasInitialized, writeMethods inherited from interface Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface PersistentCollection
includeInInsert, includeInRecreate, isDirectlyProvidedCollection, isNewlyInstantiated, needsUpdating, renderMethods inherited from interface Set
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArrayMethods inherited from interface SortedSet
addFirst, addLast, getFirst, getLast, removeFirst, removeLast, reversed, spliterator
-
Field Details
-
comparator
-
-
Constructor Details
-
PersistentSortedSet
public PersistentSortedSet()Constructs a PersistentSortedSet. This form needed for SOAP libraries, etc
-
-
Method Details
-
snapshot
- Throws:
HibernateException
-
setComparator
-
comparator
- Specified by:
comparatorin interfaceSortedSet<E>
-
subSet
-
headSet
-
tailSet
-
first
-
last
-