Save This Page
Home » hibernate-distribution-3.3.1.GA-dist » org.hibernate » collection » [javadoc | source]
org.hibernate.collection
public class: PersistentSet [javadoc | source]
java.lang.Object
   org.hibernate.collection.AbstractPersistentCollection
      org.hibernate.collection.PersistentSet

All Implemented Interfaces:
    Set, PersistentCollection, Serializable

Direct Known Subclasses:
    PersistentSortedSet

A persistent wrapper for a java.util.Set. The underlying collection is a HashSet.
Nested Class Summary:
final class  PersistentSet.Clear   
final class  PersistentSet.SimpleAdd   
final class  PersistentSet.SimpleRemove   
Field Summary
protected  Set set     
protected transient  List tempList     
Fields inherited from org.hibernate.collection.AbstractPersistentCollection:
UNKNOWN
Constructor:
 public PersistentSet() 
 public PersistentSet(SessionImplementor session) 
    Constructor matching super. Instantiates a lazy set (the underlying set is un-initialized).
    Parameters:
    session - The session to which this set will belong.
 public PersistentSet(SessionImplementor session,
    Set set) 
    Instantiates a non-lazy set (the underlying set is constructed from the incoming set reference).
    Parameters:
    session - The session to which this set will belong.
    set - The underlying set data.
Method from org.hibernate.collection.PersistentSet Summary:
add,   addAll,   beforeInitialize,   beginRead,   clear,   contains,   containsAll,   disassemble,   empty,   endRead,   entries,   entryExists,   equals,   equalsSnapshot,   getDeletes,   getElement,   getIndex,   getOrphans,   getSnapshot,   getSnapshotElement,   hashCode,   initializeFromCache,   isEmpty,   isRowUpdatePossible,   isSnapshotEmpty,   isWrapper,   iterator,   needsInserting,   needsUpdating,   readFrom,   remove,   removeAll,   retainAll,   size,   toArray,   toArray,   toString
Methods from 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,   identityRemove,   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
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.hibernate.collection.PersistentSet Detail:
 public boolean add(Object value) 
 public boolean addAll(Collection coll) 
 public  void beforeInitialize(CollectionPersister persister,
    int anticipatedSize) 
 public  void beginRead() 
 public  void clear() 
 public boolean contains(Object object) 
 public boolean containsAll(Collection coll) 
 public Serializable disassemble(CollectionPersister persister) throws HibernateException 
 public boolean empty() 
 public boolean endRead() 
 public Iterator entries(CollectionPersister persister) 
 public boolean entryExists(Object key,
    int i) 
 public boolean equals(Object other) 
 public boolean equalsSnapshot(CollectionPersister persister) throws HibernateException 
 public Iterator getDeletes(CollectionPersister persister,
    boolean indexIsFormula) throws HibernateException 
 public Object getElement(Object entry) 
 public Object getIndex(Object entry,
    int i,
    CollectionPersister persister) 
 public Collection getOrphans(Serializable snapshot,
    String entityName) throws HibernateException 
 public Serializable getSnapshot(CollectionPersister persister) throws HibernateException 
 public Object getSnapshotElement(Object entry,
    int i) 
 public int hashCode() 
 public  void initializeFromCache(CollectionPersister persister,
    Serializable disassembled,
    Object owner) throws HibernateException 
 public boolean isEmpty() 
 public boolean isRowUpdatePossible() 
 public boolean isSnapshotEmpty(Serializable snapshot) 
 public boolean isWrapper(Object collection) 
 public Iterator iterator() 
 public boolean needsInserting(Object entry,
    int i,
    Type elemType) throws HibernateException 
 public boolean needsUpdating(Object entry,
    int i,
    Type elemType) 
 public Object readFrom(ResultSet rs,
    CollectionPersister persister,
    CollectionAliases descriptor,
    Object owner) throws HibernateException, SQLException 
 public boolean remove(Object value) 
 public boolean removeAll(Collection coll) 
 public boolean retainAll(Collection coll) 
 public int size() 
 public Object[] toArray() 
 public Object[] toArray(Object[] array) 
 public String toString()