public class PersistentSortedSet extends PersistentSet implements java.util.SortedSet
TreeSet
,
Serialized FormAbstractPersistentCollection.AbstractValueDelayedOperation, AbstractPersistentCollection.DelayedOperation, AbstractPersistentCollection.IteratorProxy, AbstractPersistentCollection.LazyInitializationWork<T>, AbstractPersistentCollection.ListIteratorProxy, AbstractPersistentCollection.ListProxy, AbstractPersistentCollection.SetProxy, AbstractPersistentCollection.ValueDelayedOperation
Modifier and Type | Field and Description |
---|---|
protected java.util.Comparator |
comparator |
set, tempList
UNKNOWN
Constructor and Description |
---|
PersistentSortedSet()
Constructs a PersistentSortedSet.
|
PersistentSortedSet(SharedSessionContractImplementor session)
Constructs a PersistentSortedSet
|
PersistentSortedSet(SharedSessionContractImplementor session,
java.util.SortedSet set)
Constructs a PersistentSortedSet
|
Modifier and Type | Method and Description |
---|---|
java.util.Comparator |
comparator() |
java.lang.Object |
first() |
java.util.SortedSet |
headSet(java.lang.Object toElement) |
java.lang.Object |
last() |
void |
setComparator(java.util.Comparator comparator) |
protected java.io.Serializable |
snapshot(BasicCollectionPersister persister,
EntityMode entityMode) |
java.util.SortedSet |
subSet(java.lang.Object fromElement,
java.lang.Object toElement) |
java.util.SortedSet |
tailSet(java.lang.Object fromElement) |
add, addAll, beforeInitialize, beginRead, clear, contains, containsAll, disassemble, empty, endRead, entries, entryExists, equals, equalsSnapshot, getDeletes, getElement, getIndex, getOrphans, getSnapshot, getSnapshotElement, hashCode, initializeFromCache, isEmpty, isRowUpdatePossible, isSnapshotEmpty, isWrapper, iterator, needsInserting, needsUpdating, readFrom, remove, removeAll, retainAll, size, toArray, toArray, toString
afterInitialize, afterRowInsert, clearDirty, clearOperationQueue, dirty, forceInitialization, getCachedSize, getIdentifier, getKey, getOrphans, getOwner, getQueuedOrphans, getRole, getSession, getSnapshot, getStoredSnapshot, getValue, hasQueuedOperations, identityRemove, initialize, isClearQueueEnabled, isConnectedToSession, isDirectlyAccessible, isDirty, isInitialized, 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, write
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public PersistentSortedSet()
public PersistentSortedSet(SharedSessionContractImplementor session)
session
- The sessionpublic PersistentSortedSet(SharedSessionContractImplementor session, java.util.SortedSet set)
session
- The sessionset
- The underlying set dataprotected java.io.Serializable snapshot(BasicCollectionPersister persister, EntityMode entityMode) throws HibernateException
HibernateException
public void setComparator(java.util.Comparator comparator)
public java.util.Comparator comparator()
comparator
in interface java.util.SortedSet
public java.util.SortedSet subSet(java.lang.Object fromElement, java.lang.Object toElement)
subSet
in interface java.util.SortedSet
public java.util.SortedSet headSet(java.lang.Object toElement)
headSet
in interface java.util.SortedSet
public java.util.SortedSet tailSet(java.lang.Object fromElement)
tailSet
in interface java.util.SortedSet
public java.lang.Object first()
first
in interface java.util.SortedSet
public java.lang.Object last()
last
in interface java.util.SortedSet
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.