|
|||||||||||
| 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 PersistentCollectionHibernateException
public Collection getOrphans(Serializable snapshot)
throws HibernateException
PersistentCollection
getOrphans in class PersistentCollectionHibernateException
public 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()
size in interface ListList.size()public boolean isEmpty()
isEmpty in interface ListList.isEmpty()public boolean contains(Object object)
contains in interface ListList.contains(Object)public Iterator iterator()
iterator in interface ListList.iterator()public Object[] toArray()
toArray in interface ListList.toArray()public Object[] toArray(Object[] array)
toArray in interface ListList.toArray(Object[])public boolean add(Object object)
add in interface ListList.add(Object)public boolean remove(Object value)
remove in interface ListList.remove(Object)public boolean containsAll(Collection coll)
containsAll in interface ListList.containsAll(Collection)public boolean addAll(Collection c)
addAll in interface ListList.addAll(Collection)public void delayedAddAll(Collection c)
PersistentCollection
delayedAddAll in class PersistentCollection
public boolean addAll(int index,
Collection coll)
addAll in interface ListList.addAll(int, Collection)public boolean removeAll(Collection coll)
removeAll in interface ListList.removeAll(Collection)public boolean retainAll(Collection coll)
retainAll in interface ListList.retainAll(Collection)public void clear()
clear in interface ListList.clear()public Object get(int index)
get in interface ListList.get(int)
public Object set(int index,
Object value)
set in interface ListList.set(int, Object)
public void add(int index,
Object value)
add in interface ListList.add(int, Object)public Object remove(int index)
remove in interface ListList.remove(int)public int indexOf(Object value)
indexOf in interface ListList.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)
subList in interface ListList.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 PersistentCollectionHibernateException
SQLExceptionPersistentCollection.writeTo(PreparedStatement, CollectionPersister, Object, int, boolean)
public Object readFrom(ResultSet rs,
CollectionPersister persister,
Object owner)
throws HibernateException,
SQLException
PersistentCollection
readFrom in class PersistentCollectionHibernateException
SQLExceptionPersistentCollection.readFrom(ResultSet, CollectionPersister, Object)public Iterator entries()
PersistentCollection
entries in class PersistentCollectionPersistentCollection.entries()
public void initializeFromCache(CollectionPersister persister,
Serializable disassembled,
Object owner)
throws HibernateException
PersistentCollection
initializeFromCache in class PersistentCollectionHibernateException
public Serializable disassemble(CollectionPersister persister)
throws HibernateException
PersistentCollection
disassemble in class PersistentCollectionHibernateException
public Iterator getDeletes(Type elemType)
throws HibernateException
PersistentCollection
getDeletes in class PersistentCollectionHibernateException
public boolean needsInserting(Object entry,
int i,
Type elemType)
throws HibernateException
PersistentCollection
needsInserting in class PersistentCollectionHibernateException
public boolean needsUpdating(Object entry,
int i,
Type elemType)
throws HibernateException
PersistentCollection
needsUpdating in class PersistentCollectionHibernateException
public Object getIndex(Object entry,
int i)
PersistentCollection
getIndex in class PersistentCollectionPersistentCollection.getIndex(Object, int)public 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)
equals in interface Listpublic int hashCode()
hashCode in interface List
public boolean entryExists(Object entry,
int i)
PersistentCollection
entryExists in class PersistentCollectionPersistentCollection.entryExists(java.lang.Object, int)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||