类 PersistentSortedMap
- java.lang.Object
-
- org.hibernate.collection.internal.AbstractPersistentCollection
-
- org.hibernate.collection.internal.PersistentMap
-
- org.hibernate.collection.internal.PersistentSortedMap
-
- 所有已实现的接口:
Serializable,Map,SortedMap,PersistentCollection
public class PersistentSortedMap extends PersistentMap implements SortedMap
A persistent wrapper for a java.util.SortedMap. Underlying collection is a TreeMap.
-
-
嵌套类概要
-
从类继承的嵌套类/接口 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.PersistentMap
map
-
从类继承的字段 org.hibernate.collection.internal.AbstractPersistentCollection
elementRemoved, UNKNOWN
-
-
构造器概要
构造器 构造器 说明 PersistentSortedMap()Constructs a PersistentSortedMap.PersistentSortedMap(SessionImplementor session)已过时。PersistentSortedMap(SharedSessionContractImplementor)should be used instead.PersistentSortedMap(SessionImplementor session, SortedMap map)已过时。PersistentSortedMap(SharedSessionContractImplementor, SortedMap)should be used instead.PersistentSortedMap(SharedSessionContractImplementor session)Constructs a PersistentSortedMap.PersistentSortedMap(SharedSessionContractImplementor session, SortedMap map)Constructs a PersistentSortedMap.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Comparatorcomparator()ObjectfirstKey()SortedMapheadMap(Object toKey)ObjectlastKey()voidsetComparator(Comparator comparator)protected Serializablesnapshot(BasicCollectionPersister persister, EntityMode entityMode)SortedMapsubMap(Object fromKey, Object toKey)SortedMaptailMap(Object fromKey)-
从类继承的方法 org.hibernate.collection.internal.PersistentMap
beforeInitialize, clear, containsKey, containsValue, disassemble, empty, endRead, entries, entryExists, entrySet, equals, equalsSnapshot, get, getDeletes, getElement, getIndex, getOrphans, getSnapshot, getSnapshotElement, hashCode, initializeFromCache, isEmpty, isSnapshotEmpty, isWrapper, keySet, needsInserting, needsUpdating, put, putAll, readFrom, remove, size, toString, values
-
从类继承的方法 org.hibernate.collection.internal.AbstractPersistentCollection
afterInitialize, afterRowInsert, beginRead, 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, isRowUpdatePossible, isUnreferenced, needsRecreate, performQueuedOperations, postAction, preInsert, prepareForPossibleLoadingOutsideTransaction, queuedAdditionIterator, queueOperation, read, readElementByIndex, readElementExistence, readIndexExistence, readSize, replaceQueuedOperationValues, setCurrentSession, setDirectlyAccessible, setInitialized, setOwner, setSnapshot, unsetSession, wasInitialized, write
-
从接口继承的方法 java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, equals, forEach, get, getOrDefault, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size
-
从接口继承的方法 org.hibernate.collection.spi.PersistentCollection
isDirectlyProvidedCollection
-
-
-
-
字段详细资料
-
comparator
protected Comparator comparator
-
-
构造器详细资料
-
PersistentSortedMap
public PersistentSortedMap()
Constructs a PersistentSortedMap. This form needed for SOAP libraries, etc
-
PersistentSortedMap
public PersistentSortedMap(SharedSessionContractImplementor session)
Constructs a PersistentSortedMap.- 参数:
session- The session
-
PersistentSortedMap
@Deprecated public PersistentSortedMap(SessionImplementor session)
已过时。PersistentSortedMap(SharedSessionContractImplementor)should be used instead.Constructs a PersistentSortedMap.- 参数:
session- The session
-
PersistentSortedMap
public PersistentSortedMap(SharedSessionContractImplementor session, SortedMap map)
Constructs a PersistentSortedMap.- 参数:
session- The sessionmap- The underlying map data
-
PersistentSortedMap
@Deprecated public PersistentSortedMap(SessionImplementor session, SortedMap map)
已过时。PersistentSortedMap(SharedSessionContractImplementor, SortedMap)should be used instead.Constructs a PersistentSortedMap.- 参数:
session- The sessionmap- The underlying map data
-
-
方法详细资料
-
snapshot
protected Serializable snapshot(BasicCollectionPersister persister, EntityMode entityMode) throws HibernateException
-
setComparator
public void setComparator(Comparator comparator)
-
comparator
public Comparator comparator()
- 指定者:
comparator在接口中SortedMap
-
-