类 PersistentSortedSet
- java.lang.Object
-
- org.hibernate.collection.internal.AbstractPersistentCollection
-
- org.hibernate.collection.internal.PersistentSet
-
- org.hibernate.collection.internal.PersistentSortedSet
-
- 所有已实现的接口:
Serializable,Iterable,Collection,Set,SortedSet,PersistentCollection
public class PersistentSortedSet extends PersistentSet implements SortedSet
A persistent wrapper for a java.util.SortedSet. Underlying collection is a TreeSet.
-
-
嵌套类概要
-
从类继承的嵌套类/接口 org.hibernate.collection.internal.AbstractPersistentCollection
AbstractPersistentCollection.AbstractValueDelayedOperation, AbstractPersistentCollection.DelayedOperation, AbstractPersistentCollection.IteratorProxy, AbstractPersistentCollection.LazyInitializationWork<T>, AbstractPersistentCollection.ListIteratorProxy, AbstractPersistentCollection.ListProxy, AbstractPersistentCollection.SetProxy, AbstractPersistentCollection.ValueDelayedOperation
-
-
字段概要
字段 修饰符和类型 字段 说明 protected Comparatorcomparator-
从类继承的字段 org.hibernate.collection.internal.PersistentSet
set, tempList
-
从类继承的字段 org.hibernate.collection.internal.AbstractPersistentCollection
elementRemoved, UNKNOWN
-
-
构造器概要
构造器 构造器 说明 PersistentSortedSet()Constructs a PersistentSortedSet.PersistentSortedSet(SessionImplementor session)已过时。PersistentSortedSet(SharedSessionContractImplementor)should be used instead.PersistentSortedSet(SessionImplementor session, SortedSet set)已过时。PersistentSortedSet(SharedSessionContractImplementor, SortedSet)should be used instead.PersistentSortedSet(SharedSessionContractImplementor session)Constructs a PersistentSortedSetPersistentSortedSet(SharedSessionContractImplementor session, SortedSet set)Constructs a PersistentSortedSet
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Comparatorcomparator()Objectfirst()SortedSetheadSet(Object toElement)Objectlast()voidsetComparator(Comparator comparator)protected Serializablesnapshot(BasicCollectionPersister persister, EntityMode entityMode)SortedSetsubSet(Object fromElement, Object toElement)SortedSettailSet(Object fromElement)-
从类继承的方法 org.hibernate.collection.internal.PersistentSet
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
-
从类继承的方法 org.hibernate.collection.internal.AbstractPersistentCollection
afterInitialize, afterRowInsert, clearDirty, clearOperationQueue, dirty, forceInitialization, getCachedSize, getIdentifier, getKey, getOrphans, getOwner, getQueuedOrphans, getRole, getSession, getSnapshot, getStoredSnapshot, getValue, hasQueuedOperations, identityRemove, identityRemove, initialize, isClearQueueEnabled, isConnectedToSession, isDirectlyAccessible, isDirty, isElementRemoved, 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
-
从接口继承的方法 java.util.Collection
parallelStream, removeIf, stream, toArray
-
从接口继承的方法 org.hibernate.collection.spi.PersistentCollection
isDirectlyProvidedCollection
-
从接口继承的方法 java.util.Set
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
-
从接口继承的方法 java.util.SortedSet
spliterator
-
-
-
-
字段详细资料
-
comparator
protected Comparator comparator
-
-
构造器详细资料
-
PersistentSortedSet
public PersistentSortedSet()
Constructs a PersistentSortedSet. This form needed for SOAP libraries, etc
-
PersistentSortedSet
public PersistentSortedSet(SharedSessionContractImplementor session)
Constructs a PersistentSortedSet- 参数:
session- The session
-
PersistentSortedSet
@Deprecated public PersistentSortedSet(SessionImplementor session)
已过时。PersistentSortedSet(SharedSessionContractImplementor)should be used instead.Constructs a PersistentSortedSet- 参数:
session- The session
-
PersistentSortedSet
public PersistentSortedSet(SharedSessionContractImplementor session, SortedSet set)
Constructs a PersistentSortedSet- 参数:
session- The sessionset- The underlying set data
-
PersistentSortedSet
@Deprecated public PersistentSortedSet(SessionImplementor session, SortedSet set)
已过时。PersistentSortedSet(SharedSessionContractImplementor, SortedSet)should be used instead.Constructs a PersistentSortedSet- 参数:
session- The sessionset- The underlying set data
-
-
方法详细资料
-
snapshot
protected Serializable snapshot(BasicCollectionPersister persister, EntityMode entityMode) throws HibernateException
-
setComparator
public void setComparator(Comparator comparator)
-
comparator
public Comparator comparator()
- 指定者:
comparator在接口中SortedSet
-
-