当前页面:
在线文档首页 >
Hibernate 2.1.8 正式版 API 英文文档
SortedSet (Hibernate API Documentation) - Hibernate 2.1.8 正式版 API 英文文档
net.sf.hibernate.collection
Class SortedSet
java.lang.Object
net.sf.hibernate.collection.PersistentCollection
net.sf.hibernate.collection.ODMGCollection
net.sf.hibernate.collection.Set
net.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
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.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 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 |
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
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()