Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.hibernate.collection.AbstractPersistentCollection
org.hibernate.collection.PersistentSet
java.util.HashSet
Nested Class Summary |
Nested classes/interfaces inherited from class org.hibernate.collection.AbstractPersistentCollection | |
AbstractPersistentCollection.DelayedOperation |
Fields inherited from class org.hibernate.collection.AbstractPersistentCollection | |
UNKNOWN |
Constructor Summary | |
| |
| |
|
Method Summary | |
boolean |
|
boolean |
|
void |
|
void | |
void |
|
boolean |
|
boolean |
|
Serializable |
|
boolean |
|
boolean |
|
Iterator |
|
boolean |
|
boolean |
|
boolean |
|
Iterator |
|
Object |
|
Object |
|
Collection |
|
Serializable |
|
Object |
|
int |
|
void |
|
boolean |
|
boolean | |
boolean |
|
boolean |
|
Iterator |
|
boolean |
|
boolean |
|
Object |
|
boolean |
|
boolean |
|
boolean |
|
int |
|
Object[] |
|
Object[] |
|
String |
|
public PersistentSet()
Empty constructor. Note: this form is not ever ever ever used by Hibernate; it is, however, needed for SOAP libraries and other such marshalling code.
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.
public boolean add(Object value)
- See Also:
java.util.Set.add(Object)
public boolean addAll(Collection coll)
- See Also:
java.util.Set.addAll(Collection)
public void beforeInitialize(CollectionPersister persister, int anticipatedSize)
- Specified by:
- beforeInitialize in interface PersistentCollection
public void beginRead()
- Specified by:
- beginRead in interface PersistentCollection
- Overrides:
- beginRead in interface AbstractPersistentCollection
public void clear()
- See Also:
java.util.Set.clear()
public boolean contains(Object object)
- See Also:
java.util.Set.contains(Object)
public boolean containsAll(Collection coll)
- See Also:
java.util.Set.containsAll(Collection)
public Serializable disassemble(CollectionPersister persister) throws HibernateException
- Specified by:
- disassemble in interface PersistentCollection
public boolean empty()
- Specified by:
- empty in interface PersistentCollection
- Overrides:
- empty in interface AbstractPersistentCollection
public boolean endRead()
- Specified by:
- endRead in interface PersistentCollection
- Overrides:
- endRead in interface AbstractPersistentCollection
public Iterator entries(CollectionPersister persister)
- Specified by:
- entries in interface PersistentCollection
public boolean entryExists(Object key, int i)
- Specified by:
- entryExists in interface PersistentCollection
public boolean equals(Object other)
public boolean equalsSnapshot(CollectionPersister persister) throws HibernateException
- Specified by:
- equalsSnapshot in interface PersistentCollection
public Iterator getDeletes(CollectionPersister persister, boolean indexIsFormula) throws HibernateException
- Specified by:
- getDeletes in interface PersistentCollection
public Object getElement(Object entry)
- Specified by:
- getElement in interface PersistentCollection
public Object getIndex(Object entry, int i, CollectionPersister persister)
- Specified by:
- getIndex in interface PersistentCollection
public Collection getOrphans(Serializable snapshot, String entityName) throws HibernateException
- Specified by:
- getOrphans in interface PersistentCollection
- Overrides:
- getOrphans in interface AbstractPersistentCollection
public Serializable getSnapshot(CollectionPersister persister) throws HibernateException
- Specified by:
- getSnapshot in interface PersistentCollection
public Object getSnapshotElement(Object entry, int i)
- Specified by:
- getSnapshotElement in interface PersistentCollection
public int hashCode()
public void initializeFromCache(CollectionPersister persister, Serializable disassembled, Object owner) throws HibernateException
- Specified by:
- initializeFromCache in interface PersistentCollection
public boolean isEmpty()
- See Also:
java.util.Set.isEmpty()
public boolean isRowUpdatePossible()
- Specified by:
- isRowUpdatePossible in interface PersistentCollection
- Overrides:
- isRowUpdatePossible in interface AbstractPersistentCollection
public boolean isSnapshotEmpty(Serializable snapshot)
- Specified by:
- isSnapshotEmpty in interface PersistentCollection
public boolean isWrapper(Object collection)
- Specified by:
- isWrapper in interface PersistentCollection
public Iterator iterator()
- See Also:
java.util.Set.iterator()
public boolean needsInserting(Object entry, int i, Type elemType) throws HibernateException
- Specified by:
- needsInserting in interface PersistentCollection
public boolean needsUpdating(Object entry, int i, Type elemType)
- Specified by:
- needsUpdating in interface PersistentCollection
public Object readFrom(ResultSet rs, CollectionPersister persister, CollectionAliases descriptor, Object owner) throws HibernateException, SQLException
- Specified by:
- readFrom in interface PersistentCollection
public boolean remove(Object value)
- See Also:
java.util.Set.remove(Object)
public boolean removeAll(Collection coll)
- See Also:
java.util.Set.removeAll(Collection)
public boolean retainAll(Collection coll)
- See Also:
java.util.Set.retainAll(Collection)
public int size()
- See Also:
java.util.Set.size()
public Object[] toArray()
- See Also:
java.util.Set.toArray()
public Object[] toArray(Object[] array)
- See Also:
java.util.Set.toArray(Object[])
public String toString()