|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.sf.hibernate.collection.PersistentCollection
net.sf.hibernate.collection.ODMGCollection
net.sf.hibernate.collection.List
A persistent wrapper for a java.util.List. Underlying collection is an ArrayList.
ArrayList,
Serialized Form| Constructor Summary | |
List()
|
|
List(SessionImplementor session)
|
|
List(SessionImplementor session,
List list)
|
|
| Method Summary | |
void |
add(int index,
Object value)
|
boolean |
add(Object object)
|
boolean |
addAll(Collection c)
|
boolean |
addAll(int index,
Collection coll)
|
void |
beforeInitialize(CollectionPersister persister)
Called before any elements are read into the collection, allowing appropriate initializations to occur. |
void |
clear()
|
org.odmg.DList |
concat(org.odmg.DList arglist)
|
boolean |
contains(Object object)
|
boolean |
containsAll(Collection coll)
|
void |
delayedAddAll(Collection c)
After reading all existing elements from the database, add the queued elements to the underlying collection. |
Serializable |
disassemble(CollectionPersister persister)
Disassemble the collection, ready for the cache |
boolean |
empty()
Is the initialized collection empty? |
Iterator |
entries()
Iterate all collection entries, during update of the database |
boolean |
entryExists(Object entry,
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? |
Object |
get(int index)
|
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()
|
int |
indexOf(Object value)
|
void |
initializeFromCache(CollectionPersister persister,
Serializable disassembled,
Object owner)
Read the state of the collection from a disassembled cached value |
boolean |
isEmpty()
|
boolean |
isWrapper(Object collection)
Is this the wrapper for the given underlying collection instance? |
Iterator |
iterator()
|
int |
lastIndexOf(Object value)
|
ListIterator |
listIterator()
|
ListIterator |
listIterator(int index)
|
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? |
Object |
readFrom(ResultSet rs,
CollectionPersister persister,
Object owner)
Read a row from the JDBC result set |
Object |
remove(int index)
|
boolean |
remove(Object value)
|
boolean |
removeAll(Collection coll)
|
void |
resize(int length)
|
boolean |
retainAll(Collection coll)
|
Object |
set(int index,
Object value)
|
int |
size()
|
protected Serializable |
snapshot(CollectionPersister persister)
Return a new snapshot of the current state |
List |
subList(int from,
int to)
|
Object[] |
toArray()
|
Object[] |
toArray(Object[] array)
|
String |
toString()
|
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, beginRead, endRead, 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 List(SessionImplementor session)
public List(SessionImplementor session, List list)
public List()
| Method Detail |
protected Serializable snapshot(CollectionPersister persister) throws HibernateException
PersistentCollection
snapshot in class PersistentCollectionHibernateExceptionpublic Collection getOrphans(Serializable snapshot) throws HibernateException
PersistentCollection
getOrphans in class PersistentCollectionHibernateExceptionpublic boolean equalsSnapshot(Type elementType) throws HibernateException
PersistentCollection
equalsSnapshot in class PersistentCollectionHibernateExceptionpublic void beforeInitialize(CollectionPersister persister)
PersistentCollection
beforeInitialize in class PersistentCollectionpublic boolean isWrapper(Object collection)
PersistentCollection
isWrapper in class PersistentCollectionpublic int size()
List.size()public boolean isEmpty()
List.isEmpty()public boolean contains(Object object)
List.contains(Object)public Iterator iterator()
List.iterator()public Object[] toArray()
List.toArray()public Object[] toArray(Object[] array)
List.toArray(Object[])public boolean add(Object object)
List.add(Object)public boolean remove(Object value)
List.remove(Object)public boolean containsAll(Collection coll)
containsAll in interface ListList.containsAll(Collection)public boolean addAll(Collection c)
List.addAll(Collection)public void delayedAddAll(Collection c)
PersistentCollection
delayedAddAll in class PersistentCollection
public boolean addAll(int index,
Collection coll)
List.addAll(int, Collection)public boolean removeAll(Collection coll)
List.removeAll(Collection)public boolean retainAll(Collection coll)
List.retainAll(Collection)public void clear()
List.clear()public Object get(int index)
List.get(int)public Object set(int index, Object value)
List.set(int, Object)
public void add(int index,
Object value)
List.add(int, Object)public Object remove(int index)
List.remove(int)public int indexOf(Object value)
List.indexOf(Object)public int lastIndexOf(Object value)
lastIndexOf in interface ListList.lastIndexOf(Object)public ListIterator listIterator()
listIterator in interface ListList.listIterator()public ListIterator listIterator(int index)
listIterator in interface ListList.listIterator(int)public List subList(int from, int to)
List.subList(int, int)public boolean empty()
PersistentCollection
empty in class PersistentCollectionpublic String toString()
public void writeTo(PreparedStatement st, CollectionPersister persister, Object entry, int i, boolean writeOrder) throws HibernateException, SQLException
PersistentCollection
writeTo in class PersistentCollectionpublic Object readFrom(ResultSet rs, CollectionPersister persister, Object owner) throws HibernateException, SQLException
PersistentCollection
readFrom in class PersistentCollectionpublic Iterator entries()
PersistentCollection
entries in class PersistentCollectionPersistentCollection.entries()public void initializeFromCache(CollectionPersister persister, Serializable disassembled, Object owner) throws HibernateException
PersistentCollection
initializeFromCache in class PersistentCollectionHibernateExceptionpublic Serializable disassemble(CollectionPersister persister) throws HibernateException
PersistentCollection
disassemble in class PersistentCollectionHibernateExceptionpublic Iterator getDeletes(Type elemType) throws HibernateException
PersistentCollection
getDeletes in class PersistentCollectionHibernateExceptionpublic boolean needsInserting(Object entry, int i, Type elemType) throws HibernateException
PersistentCollection
needsInserting in class PersistentCollectionHibernateExceptionpublic boolean needsUpdating(Object entry, int i, Type elemType) throws HibernateException
PersistentCollection
needsUpdating in class PersistentCollectionHibernateExceptionpublic Object getIndex(Object entry, int i)
PersistentCollection
getIndex in class PersistentCollectionpublic org.odmg.DList concat(org.odmg.DList arglist)
concat in interface org.odmg.DListDList.concat(DList)public void resize(int length)
resize in interface org.odmg.DArrayDArray.resize(int)public boolean equals(Object other)
public int hashCode()
public boolean entryExists(Object entry, int i)
PersistentCollection
entryExists in class PersistentCollection
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||