站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 2.1.8 正式版 API 英文文档

SortedMap (Hibernate API Documentation) - Hibernate 2.1.8 正式版 API 英文文档


net.sf.hibernate.collection
Class SortedMap

java.lang.Object
  extended bynet.sf.hibernate.collection.PersistentCollection
      extended bynet.sf.hibernate.collection.Map
          extended bynet.sf.hibernate.collection.SortedMap
All Implemented Interfaces:
org.odmg.DMap, Map, Serializable, SortedMap

public class SortedMap
extends Map
implements SortedMap

A persistent wrapper for a java.util.SortedMap. Underlying collection is a TreeMap.

Author:
e
See Also:
TreeMap, Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.util.Map
Map.Entry
 
Constructor Summary
SortedMap()
           
SortedMap(SessionImplementor session)
           
SortedMap(SessionImplementor session, CollectionPersister persister, Comparator comparator, Serializable disassembled, Object owner)
           
SortedMap(SessionImplementor session, SortedMap map)
           
 
Method Summary
 void beforeInitialize(CollectionPersister persister)
          Called before any elements are read into the collection, allowing appropriate initializations to occur.
 Comparator comparator()
           
 Object firstKey()
           
 SortedMap headMap(Object toKey)
           
 Object lastKey()
           
 void setComparator(Comparator comparator)
           
 Serializable snapshot(BasicCollectionPersister persister)
           
 SortedMap subMap(Object fromKey, Object toKey)
           
 SortedMap tailMap(Object fromKey)
           
 
Methods inherited from class net.sf.hibernate.collection.Map
clear, containsKey, containsValue, disassemble, empty, entries, entryExists, entrySet, equals, equalsSnapshot, get, getDeletes, getIndex, getOrphans, hashCode, initializeFromCache, isEmpty, isWrapper, keySet, needsInserting, needsUpdating, put, putAll, readFrom, remove, size, snapshot, toString, values, writeTo
 
Methods inherited from class net.sf.hibernate.collection.PersistentCollection
afterRowInsert, beginRead, delayedAddAll, endRead, forceInitialization, getCollectionSnapshot, getOrphans, getSession, getSnapshot, getSnapshot, getValue, hasQueuedAdditions, initialize, isDirectlyAccessible, needsRecreate, postFlush, preInsert, queueAdd, queueAddAll, queuedAdditionIterator, read, setCollectionSnapshot, setCurrentSession, setDirectlyAccessible, setInitialized, unsetSession, wasInitialized, write
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 

Constructor Detail

SortedMap

public SortedMap(SessionImplementor session)

SortedMap

public SortedMap(SessionImplementor session,
                 CollectionPersister persister,
                 Comparator comparator,
                 Serializable disassembled,
                 Object owner)
          throws HibernateException

SortedMap

public SortedMap(SessionImplementor session,
                 SortedMap map)

SortedMap

public SortedMap()
Method Detail

snapshot

public Serializable snapshot(BasicCollectionPersister persister)
                      throws HibernateException
Throws:
HibernateException

beforeInitialize

public void beforeInitialize(CollectionPersister persister)
Description copied from class: PersistentCollection
Called before any elements are read into the collection, allowing appropriate initializations to occur.

Overrides:
beforeInitialize in class Map

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()