org.hibernate.collection

Class PersistentSortedMap

Implemented Interfaces:
Map, Serializable, SortedMap, PersistentCollection

public class PersistentSortedMap
extends PersistentMap
implements SortedMap

A persistent wrapper for a java.util.SortedMap. Underlying collection is a TreeMap.
Author:
e
See Also:
java.util.TreeMap

Nested Class Summary

Nested classes/interfaces inherited from class org.hibernate.collection.AbstractPersistentCollection

AbstractPersistentCollection.DelayedOperation

Field Summary

protected Comparator
comparator

Fields inherited from class org.hibernate.collection.PersistentMap

map

Fields inherited from class org.hibernate.collection.AbstractPersistentCollection

UNKNOWN

Constructor Summary

PersistentSortedMap()
Not called by Hibernate, but used by non-JDK serialization, eg.
PersistentSortedMap(SessionImplementor session)
PersistentSortedMap(SessionImplementor session, SortedMap map)

Method Summary

Comparator
comparator()
Object
firstKey()
SortedMap
headMap(Object toKey)
Object
lastKey()
void
setComparator(Comparator comparator)
protected Serializable
snapshot(BasicCollectionPersister persister, EntityMode entityMode)
SortedMap
subMap(Object fromKey, Object toKey)
SortedMap
tailMap(Object fromKey)

Methods inherited from class org.hibernate.collection.PersistentMap

beforeInitialize, clear, containsKey, containsValue, disassemble, empty, 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

Methods inherited from class org.hibernate.collection.AbstractPersistentCollection

afterInitialize, afterRowInsert, beginRead, clearDirty, dirty, empty, endRead, forceInitialization, getCachedSize, getIdentifier, getKey, getOrphans, getOrphans, getOwner, getQueuedOrphans, getRole, getSession, getSnapshot, getStoredSnapshot, getValue, hasQueuedOperations, initialize, isClearQueueEnabled, isDirectlyAccessible, isDirty, isOperationQueueEnabled, isPutQueueEnabled, isRowUpdatePossible, isUnreferenced, needsRecreate, performQueuedOperations, postAction, preInsert, queueOperation, queuedAdditionIterator, read, readElementByIndex, readElementExistence, readIndexExistence, readSize, setCurrentSession, setDirectlyAccessible, setInitialized, setOwner, setSnapshot, unsetSession, wasInitialized, write

Field Details

comparator

protected Comparator comparator

Constructor Details

PersistentSortedMap

public PersistentSortedMap()
Not called by Hibernate, but used by non-JDK serialization, eg. SOAP libraries.

PersistentSortedMap

public PersistentSortedMap(SessionImplementor session)

PersistentSortedMap

public PersistentSortedMap(SessionImplementor session,
                           SortedMap map)

Method Details

comparator

public Comparator comparator()

firstKey

public Object firstKey()

headMap

public SortedMap headMap(Object toKey)

lastKey

public Object lastKey()

setComparator

public void setComparator(Comparator comparator)

snapshot

protected Serializable snapshot(BasicCollectionPersister persister,
                                EntityMode entityMode)
            throws HibernateException

subMap

public SortedMap subMap(Object fromKey,
                        Object toKey)

tailMap

public SortedMap tailMap(Object fromKey)