public class

PersistentList

extends AbstractPersistentCollection
implements List<E>
java.lang.Object
   ↳ org.hibernate.collection.AbstractPersistentCollection
     ↳ org.hibernate.collection.PersistentList

Class Overview

A persistent wrapper for a java.util.List. Underlying collection is an ArrayList.

See Also
  • java.util.ArrayList

Summary

Fields
protected List list
[Expand]
Inherited Fields
From class org.hibernate.collection.AbstractPersistentCollection
Public Constructors
PersistentList(SessionImplementor session)
PersistentList(SessionImplementor session, List list)
PersistentList()
Public Methods
boolean add(Object object)
void add(int index, Object value)
boolean addAll(Collection values)
boolean addAll(int index, Collection coll)
void beforeInitialize(CollectionPersister persister, int anticipatedSize)
void clear()
boolean contains(Object object)
boolean containsAll(Collection coll)
Serializable disassemble(CollectionPersister persister)
boolean empty()
Is the initialized collection empty?
Iterator entries(CollectionPersister persister)
boolean entryExists(Object entry, int i)
boolean equals(Object other)
boolean equalsSnapshot(CollectionPersister persister)
Object get(int index)
Iterator getDeletes(CollectionPersister persister, boolean indexIsFormula)
Object getElement(Object entry)
Object getIndex(Object entry, int i, CollectionPersister persister)
Collection getOrphans(Serializable snapshot, String entityName)
get all "orphaned" elements
Serializable getSnapshot(CollectionPersister persister)
Object getSnapshotElement(Object entry, int i)
int hashCode()
int indexOf(Object value)
void initializeFromCache(CollectionPersister persister, Serializable disassembled, Object owner)
boolean isEmpty()
boolean isSnapshotEmpty(Serializable snapshot)
boolean isWrapper(Object collection)
Iterator iterator()
int lastIndexOf(Object value)
ListIterator listIterator(int index)
ListIterator listIterator()
boolean needsInserting(Object entry, int i, Type elemType)
boolean needsUpdating(Object entry, int i, Type elemType)
Object readFrom(ResultSet rs, CollectionPersister persister, CollectionAliases descriptor, Object owner)
Object remove(int index)
boolean remove(Object value)
boolean removeAll(Collection coll)
boolean retainAll(Collection coll)
Object set(int index, Object value)
int size()
List subList(int from, int to)
Object[] toArray(Object[] array)
Object[] toArray()
String toString()
[Expand]
Inherited Methods
From class org.hibernate.collection.AbstractPersistentCollection
From class java.lang.Object
From interface java.lang.Iterable
From interface java.util.Collection
From interface java.util.List
From interface org.hibernate.collection.PersistentCollection

Fields

protected List list

Public Constructors

public PersistentList (SessionImplementor session)

public PersistentList (SessionImplementor session, List list)

public PersistentList ()

Public Methods

public boolean add (Object object)

See Also

public void add (int index, Object value)

See Also

public boolean addAll (Collection values)

public boolean addAll (int index, Collection coll)

public void beforeInitialize (CollectionPersister persister, int anticipatedSize)

public void clear ()

See Also

public boolean contains (Object object)

See Also

public boolean containsAll (Collection coll)

public Serializable disassemble (CollectionPersister persister)

public boolean empty ()

Is the initialized collection empty?

public Iterator entries (CollectionPersister persister)

public boolean entryExists (Object entry, int i)

public boolean equals (Object other)

public boolean equalsSnapshot (CollectionPersister persister)

public Object get (int index)

See Also

public Iterator getDeletes (CollectionPersister persister, boolean indexIsFormula)

public Object getElement (Object entry)

public Object getIndex (Object entry, int i, CollectionPersister persister)

public Collection getOrphans (Serializable snapshot, String entityName)

get all "orphaned" elements

public Serializable getSnapshot (CollectionPersister persister)

public Object getSnapshotElement (Object entry, int i)

public int hashCode ()

public int indexOf (Object value)

See Also

public void initializeFromCache (CollectionPersister persister, Serializable disassembled, Object owner)

public boolean isEmpty ()

See Also

public boolean isSnapshotEmpty (Serializable snapshot)

public boolean isWrapper (Object collection)

public Iterator iterator ()

See Also

public int lastIndexOf (Object value)

public ListIterator listIterator (int index)

public ListIterator listIterator ()

See Also

public boolean needsInserting (Object entry, int i, Type elemType)

public boolean needsUpdating (Object entry, int i, Type elemType)

public Object readFrom (ResultSet rs, CollectionPersister persister, CollectionAliases descriptor, Object owner)

public Object remove (int index)

See Also

public boolean remove (Object value)

See Also

public boolean removeAll (Collection coll)

public boolean retainAll (Collection coll)

public Object set (int index, Object value)

See Also

public int size ()

See Also

public List subList (int from, int to)

public Object[] toArray (Object[] array)

public Object[] toArray ()

See Also

public String toString ()