|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.hibernate.collection.PersistentCollection net.sf.hibernate.collection.ODMGCollection net.sf.hibernate.collection.Set
A persistent wrapper for a java.util.Set. The underlying collection is a HashSet.
HashSet
,
Serialized FormConstructor Summary | |
Set()
|
|
Set(SessionImplementor session)
|
|
Set(SessionImplementor session,
Set set)
|
Method Summary | |
boolean |
add(Object value)
|
boolean |
addAll(Collection coll)
|
void |
beforeInitialize(CollectionPersister persister)
Called before any elements are read into the collection, allowing appropriate initializations to occur. |
void |
beginRead()
Called just before reading any rows from the JDBC result set |
void |
clear()
|
boolean |
contains(Object o)
|
boolean |
containsAll(Collection coll)
|
org.odmg.DSet |
difference(org.odmg.DSet otherSet)
|
Serializable |
disassemble(CollectionPersister persister)
Disassemble the collection, ready for the cache |
boolean |
empty()
Is the initialized collection empty? |
boolean |
endRead()
Called after reading all rows from the JDBC result set |
Iterator |
entries()
Iterate all collection entries, during update of the database |
boolean |
entryExists(Object key,
int i)
Does an element exist at this entry in the collection? |
boolean |
equals(Object other)
|
boolean |
equalsSnapshot(Type elementType)
Does the current state exactly match the snapshot? |
Iterator |
getDeletes(Type elemType)
Get all the elements that need deleting |
Object |
getIndex(Object entry,
int i)
Get the index of the given collection entry |
Collection |
getOrphans(Serializable snapshot)
get all "orphaned" elements |
int |
hashCode()
|
void |
initializeFromCache(CollectionPersister persister,
Serializable disassembled,
Object owner)
Read the state of the collection from a disassembled cached value |
org.odmg.DSet |
intersection(org.odmg.DSet otherSet)
|
boolean |
isEmpty()
|
boolean |
isWrapper(Object collection)
Is this the wrapper for the given underlying collection instance? |
Iterator |
iterator()
|
boolean |
needsInserting(Object entry,
int i,
Type elemType)
Do we need to insert this element? |
boolean |
needsUpdating(Object entry,
int i,
Type elemType)
Do we need to update this element? |
boolean |
properSubsetOf(org.odmg.DSet otherSet)
|
boolean |
properSupersetOf(org.odmg.DSet otherSet)
|
Object |
readFrom(ResultSet rs,
CollectionPersister persister,
Object owner)
Read a row from the JDBC result set |
boolean |
remove(Object value)
|
boolean |
removeAll(Collection coll)
|
boolean |
retainAll(Collection coll)
|
int |
size()
|
protected Serializable |
snapshot(CollectionPersister persister)
Return a new snapshot of the current state |
boolean |
subsetOf(org.odmg.DSet otherSet)
|
boolean |
supersetOf(org.odmg.DSet otherSet)
|
Object[] |
toArray()
|
Object[] |
toArray(Object[] array)
|
String |
toString()
|
org.odmg.DSet |
union(org.odmg.DSet otherSet)
|
void |
writeTo(PreparedStatement st,
CollectionPersister persister,
Object entry,
int i,
boolean writeOrder)
Write a row to the JDBC prepared statement |
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 org.odmg.DCollection |
existsElement, query, select, selectElement |
Constructor Detail |
public Set(SessionImplementor session)
public Set()
public Set(SessionImplementor session, Set set)
Method Detail |
protected Serializable snapshot(CollectionPersister persister) throws HibernateException
PersistentCollection
snapshot
in class PersistentCollection
HibernateException
public Collection getOrphans(Serializable snapshot) throws HibernateException
PersistentCollection
getOrphans
in class PersistentCollection
HibernateException
public boolean equalsSnapshot(Type elementType) throws HibernateException
PersistentCollection
equalsSnapshot
in class PersistentCollection
HibernateException
public void beforeInitialize(CollectionPersister persister)
PersistentCollection
beforeInitialize
in class PersistentCollection
public void initializeFromCache(CollectionPersister persister, Serializable disassembled, Object owner) throws HibernateException
PersistentCollection
initializeFromCache
in class PersistentCollection
HibernateException
public boolean empty()
PersistentCollection
empty
in class PersistentCollection
public int size()
Set.size()
public boolean isEmpty()
Set.isEmpty()
public boolean contains(Object o)
Set.contains(Object)
public Iterator iterator()
Set.iterator()
public Object[] toArray()
Set.toArray()
public Object[] toArray(Object[] array)
Set.toArray(Object[])
public boolean add(Object value)
Set.add(Object)
public boolean remove(Object value)
Set.remove(Object)
public boolean containsAll(Collection coll)
containsAll
in interface Set
Set.containsAll(Collection)
public boolean addAll(Collection coll)
Set.addAll(Collection)
public boolean retainAll(Collection coll)
Set.retainAll(Collection)
public boolean removeAll(Collection coll)
Set.removeAll(Collection)
public void clear()
Set.clear()
public String toString()
public void writeTo(PreparedStatement st, CollectionPersister persister, Object entry, int i, boolean writeOrder) throws HibernateException, SQLException
PersistentCollection
writeTo
in class PersistentCollection
public Object readFrom(ResultSet rs, CollectionPersister persister, Object owner) throws HibernateException, SQLException
PersistentCollection
readFrom
in class PersistentCollection
public void beginRead()
PersistentCollection
beginRead
in class PersistentCollection
public boolean endRead()
PersistentCollection
endRead
in class PersistentCollection
public Iterator entries()
PersistentCollection
entries
in class PersistentCollection
PersistentCollection.entries()
public Serializable disassemble(CollectionPersister persister) throws HibernateException
PersistentCollection
disassemble
in class PersistentCollection
HibernateException
public Iterator getDeletes(Type elemType) throws HibernateException
PersistentCollection
getDeletes
in class PersistentCollection
HibernateException
public boolean needsInserting(Object entry, int i, Type elemType) throws HibernateException
PersistentCollection
needsInserting
in class PersistentCollection
HibernateException
public boolean needsUpdating(Object entry, int i, Type elemType)
PersistentCollection
needsUpdating
in class PersistentCollection
public Object getIndex(Object entry, int i)
PersistentCollection
getIndex
in class PersistentCollection
public org.odmg.DSet union(org.odmg.DSet otherSet)
union
in interface org.odmg.DSet
DSet.union(DSet)
public org.odmg.DSet difference(org.odmg.DSet otherSet)
difference
in interface org.odmg.DSet
DSet.difference(DSet)
public org.odmg.DSet intersection(org.odmg.DSet otherSet)
intersection
in interface org.odmg.DSet
DSet.intersection(DSet)
public boolean properSubsetOf(org.odmg.DSet otherSet)
properSubsetOf
in interface org.odmg.DSet
DSet.properSubsetOf(DSet)
public boolean properSupersetOf(org.odmg.DSet otherSet)
properSupersetOf
in interface org.odmg.DSet
DSet.properSupersetOf(DSet)
public boolean subsetOf(org.odmg.DSet otherSet)
subsetOf
in interface org.odmg.DSet
DSet.subsetOf(DSet)
public boolean supersetOf(org.odmg.DSet otherSet)
supersetOf
in interface org.odmg.DSet
DSet.supersetOf(DSet)
public boolean equals(Object other)
public int hashCode()
public boolean entryExists(Object key, int i)
PersistentCollection
entryExists
in class PersistentCollection
public boolean isWrapper(Object collection)
PersistentCollection
isWrapper
in class PersistentCollection
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |