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

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


net.sf.hibernate.collection
Class SortedSet

java.lang.Object
  extended bynet.sf.hibernate.collection.PersistentCollection
      extended bynet.sf.hibernate.collection.ODMGCollection
          extended bynet.sf.hibernate.collection.Set
              extended bynet.sf.hibernate.collection.SortedSet
All Implemented Interfaces:
Collection, org.odmg.DCollection, org.odmg.DSet, Serializable, Set, SortedSet

public class SortedSet
extends Set
implements SortedSet

A persistent wrapper for a java.util.SortedSet. Underlying collection is a TreeSet.

Author:
e
See Also:
TreeSet, Serialized Form

Constructor Summary
SortedSet()
           
SortedSet(SessionImplementor session)
           
SortedSet(SessionImplementor session, CollectionPersister persister, Comparator comparator, Serializable disassembled, Object owner)
           
SortedSet(SessionImplementor session, SortedSet set)
           
 
Method Summary
 void beforeInitialize(CollectionPersister persister)
          Called before any elements are read into the collection, allowing appropriate initializations to occur.
 Comparator comparator()
           
 Object first()
           
 SortedSet headSet(Object toElement)
           
 Object last()
           
 void setComparator(Comparator comparator)
           
 Serializable snapshot(BasicCollectionPersister persister)
           
 SortedSet subSet(Object fromElement, Object toElement)
           
 SortedSet tailSet(Object fromElement)
           
 
Methods inherited from class net.sf.hibernate.collection.Set
add, addAll, beginRead, clear, contains, containsAll, difference, disassemble, empty, endRead, entries, entryExists, equals, equalsSnapshot, getDeletes, getIndex, getOrphans, hashCode, initializeFromCache, intersection, isEmpty, isWrapper, iterator, needsInserting, needsUpdating, properSubsetOf, properSupersetOf, readFrom, remove, removeAll, retainAll, size, snapshot, subsetOf, supersetOf, toArray, toArray, toString, union, writeTo
 
Methods inherited from class net.sf.hibernate.collection.ODMGCollection
existsElement, query, select, selectElement
 
Methods inherited from class net.sf.hibernate.collection.PersistentCollection
afterRowInsert, delayedAddAll, 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.Set
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
 
Methods inherited from interface org.odmg.DCollection
existsElement, query, select, selectElement
 

Constructor Detail

SortedSet

public SortedSet(SessionImplementor session)

SortedSet

public SortedSet(SessionImplementor session,
                 SortedSet set)

SortedSet

public SortedSet()

SortedSet

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

snapshot

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

setComparator

public void setComparator(Comparator comparator)

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 Set

comparator

public Comparator comparator()
Specified by:
comparator in interface SortedSet
See Also:
comparator()

subSet

public SortedSet subSet(Object fromElement,
                        Object toElement)
Specified by:
subSet in interface SortedSet
See Also:
subSet(Object,Object)

headSet

public SortedSet headSet(Object toElement)
Specified by:
headSet in interface SortedSet
See Also:
headSet(Object)

tailSet

public SortedSet tailSet(Object fromElement)
Specified by:
tailSet in interface SortedSet
See Also:
tailSet(Object)

first

public Object first()
Specified by:
first in interface SortedSet
See Also:
first()

last

public Object last()
Specified by:
last in interface SortedSet
See Also:
last()