org.hibernate.collection
Class PersistentSortedMap
java.lang.Object
org.hibernate.collection.AbstractPersistentCollection
org.hibernate.collection.PersistentMap
org.hibernate.collection.PersistentSortedMap
- All Implemented Interfaces:
- Map, PersistentCollection, Serializable, SortedMap
- public class PersistentSortedMap
- extends PersistentMap
- implements SortedMap
A persistent wrapper for a java.util.SortedMap. Underlying
collection is a TreeMap.
- Author:
- e
- See Also:
TreeMap
,
Serialized Form
Methods inherited from class org.hibernate.collection.PersistentMap |
clear, containsKey, containsValue, disassemble, empty, entries, entryExists, entrySet, equals, equalsSnapshot, get, getDeletes, getElement, getIndex, getOrphans, getSnapshotElement, hashCode, initializeFromCache, isEmpty, isWrapper, keySet, needsInserting, needsUpdating, put, putAll, readFrom, remove, size, snapshot, toString, values |
Methods inherited from class org.hibernate.collection.AbstractPersistentCollection |
afterInitialize, afterRowInsert, beginRead, delayedAddAll, endRead, forceInitialization, getCollectionSnapshot, getIdentifier, getOrphans, getOwner, getSession, getSnapshot, getSnapshot, getValue, hasQueuedAdditions, initialize, isDirectlyAccessible, isRowUpdatePossible, needsRecreate, postFlush, preInsert, queueAdd, queueAddAll, queuedAdditionIterator, read, setCollectionSnapshot, setCurrentSession, setDirectlyAccessible, setInitialized, setOwner, unsetSession, wasInitialized, write |
Methods inherited from interface java.util.Map |
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
PersistentSortedMap
public PersistentSortedMap(SessionImplementor session)
PersistentSortedMap
public PersistentSortedMap(SessionImplementor session,
CollectionPersister persister,
Comparator comparator,
Serializable disassembled,
Object owner)
throws HibernateException
PersistentSortedMap
public PersistentSortedMap(SessionImplementor session,
SortedMap map)
PersistentSortedMap
public PersistentSortedMap()
snapshot
protected Serializable snapshot(BasicCollectionPersister persister,
EntityMode entityMode)
throws HibernateException
- Throws:
HibernateException
beforeInitialize
public void beforeInitialize(CollectionPersister persister)
- Description copied from interface:
PersistentCollection
- Called before any elements are read into the collection,
allowing appropriate initializations to occur.
- Specified by:
beforeInitialize
in interface PersistentCollection
- Overrides:
beforeInitialize
in class PersistentMap
setComparator
public void setComparator(Comparator comparator)
comparator
public Comparator comparator()
- Specified by:
comparator
in interface SortedMap
- See Also:
comparator()
subMap
public SortedMap subMap(Object fromKey,
Object toKey)
- Specified by:
subMap
in interface SortedMap
- See Also:
subMap(Object, Object)
headMap
public SortedMap headMap(Object toKey)
- Specified by:
headMap
in interface SortedMap
- See Also:
headMap(Object)
tailMap
public SortedMap tailMap(Object fromKey)
- Specified by:
tailMap
in interface SortedMap
- See Also:
tailMap(Object)
firstKey
public Object firstKey()
- Specified by:
firstKey
in interface SortedMap
- See Also:
firstKey()
lastKey
public Object lastKey()
- Specified by:
lastKey
in interface SortedMap
- See Also:
lastKey()