org.hibernate.collection
Class PersistentSortedSet
java.lang.Object
org.hibernate.collection.AbstractPersistentCollection
org.hibernate.collection.PersistentSet
org.hibernate.collection.PersistentSortedSet
- All Implemented Interfaces:
- Collection, PersistentCollection, Serializable, Set, SortedSet
- public class PersistentSortedSet
- extends PersistentSet
- 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 org.hibernate.collection.PersistentSet |
add, addAll, beginRead, clear, contains, containsAll, disassemble, empty, endRead, entries, entryExists, equals, equalsSnapshot, getDeletes, getElement, getIndex, getOrphans, getSnapshotElement, hashCode, initializeFromCache, isEmpty, isRowUpdatePossible, isWrapper, iterator, needsInserting, needsUpdating, readFrom, remove, removeAll, retainAll, size, snapshot, toArray, toArray, toString |
Methods inherited from class org.hibernate.collection.AbstractPersistentCollection |
afterInitialize, afterRowInsert, delayedAddAll, forceInitialization, getCollectionSnapshot, getIdentifier, getOrphans, getOwner, getSession, getSnapshot, getSnapshot, getValue, hasQueuedAdditions, initialize, isDirectlyAccessible, needsRecreate, postFlush, preInsert, queueAdd, queueAddAll, queuedAdditionIterator, read, setCollectionSnapshot, setCurrentSession, setDirectlyAccessible, setInitialized, setOwner, 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 |
PersistentSortedSet
public PersistentSortedSet(SessionImplementor session)
PersistentSortedSet
public PersistentSortedSet(SessionImplementor session,
SortedSet set)
PersistentSortedSet
public PersistentSortedSet()
PersistentSortedSet
public PersistentSortedSet(SessionImplementor session,
CollectionPersister persister,
Comparator comparator,
Serializable disassembled,
Object owner)
throws HibernateException
snapshot
protected Serializable snapshot(BasicCollectionPersister persister,
EntityMode entityMode)
throws HibernateException
- Throws:
HibernateException
setComparator
public void setComparator(Comparator comparator)
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 PersistentSet
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()