| Modifier and Type | Field and Description |
|---|---|
| protected Map | |
| protected List |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | add(Object
element to be appended to this list o)Implements java. |
| public void | add(int
index at which the specified element is to be inserted index, Object element to be inserted element)Implements java. |
| public boolean | addAll(int
index at which to insert the first element from the
specified collection index, Collection<E> collection containing elements to be added to this list c)Implements java. |
| public boolean | addAll(Collection<E>
collection containing elements to be added to this list c)Implements java. |
| public void | afterRowInsert(CollectionPersister persister, Object entry, int i)
Overrides org. Implements org. |
| private void | |
| public void | beforeInitialize(CollectionPersister
The underlying collection persister. persister, int The anticipated size of the collection after initilization is complete. anticipatedSize)Implements org. |
| private void | |
| public void | clear()
Implements java. |
| public boolean | contains(Object
element whose presence in this list is to be tested o)Implements java. true if this list contains the specified element.
|
| public boolean | containsAll(Collection<E>
collection to be checked for containment in this list c)Implements java. true if this list contains all of the elements of the
specified collection.
|
| public Serializable | disassemble(CollectionPersister persister)
Implements org. |
| public boolean | empty()
Implements abstract org. Implements org. |
| public Iterator | entries(CollectionPersister persister)
Implements org. |
| public boolean | entryExists(Object entry, int i)
Implements org. |
| public boolean | equalsSnapshot(CollectionPersister persister)
Implements org. |
| public Object | get(int
index of the element to return index)Implements java. |
| public Iterator | getDeletes(CollectionPersister persister, boolean indexIsFormula)
Implements org. |
| public Object | getElement(Object entry)
Implements org. |
| public Object | getIdentifier(Object entry, int i)
Overrides org. Implements org. |
| public Object | getIndex(Object entry, int i, CollectionPersister
it was more elegant before we added this... persister)Implements org. |
| public Collection | getOrphans(Serializable snapshot, String entityName)
Implements abstract org. Implements org. |
| public Serializable | getSnapshot(CollectionPersister persister)
Implements org. |
| public Object | getSnapshotElement(Object entry, int i)
Implements org. |
| public int | indexOf(Object
element to search for o)Implements java. |
| public void | initializeFromCache(CollectionPersister persister, Serializable disassembled, Object owner)
Implements org. |
| public boolean | |
| public boolean | isSnapshotEmpty(Serializable snapshot)
Implements org. |
| public boolean | isWrapper(Object collection)
Implements org. |
| public Iterator | iterator()
Implements java. |
| public int | lastIndexOf(Object
element to search for o)Implements java. |
| public ListIterator | listIterator()
Implements java. |
| public ListIterator | listIterator(int
index of the first element to be returned from the
list iterator (by a call to index)next)Implements java. |
| public boolean | needsInserting(Object entry, int i, Type elemType)
Implements org. |
| public boolean | needsUpdating(Object entry, int i, Type elemType)
Implements org. |
| public void | preInsert(CollectionPersister persister)
Overrides org. Implements org. |
| public Object | readFrom(ResultSet rs, CollectionPersister persister, CollectionAliases descriptor, Object owner)
Implements org. |
| public boolean | remove(Object
element to be removed from this list, if present o)Implements java. |
| public Object | remove(int
the index of the element to be removed index)Implements java. |
| public boolean | removeAll(Collection<E>
collection containing elements to be removed from this list c)Implements java. |
| public boolean | retainAll(Collection<E>
collection containing elements to be retained in this list c)Implements java. |
| public Object | set(int
index of the element to replace index, Object element to be stored at the specified position element)Implements java. |
| public int | |
| public List | subList(int
low endpoint (inclusive) of the subList fromIndex, int high endpoint (exclusive) of the subList toIndex)Implements java. fromIndex, inclusive, and toIndex, exclusive.
|
| public Object[] | toArray()
Implements java. |
| public Object[] | toArray(Object[]
the array into which the elements of this list are to
be stored, if it is big enough; otherwise, a new array of the
same runtime type is allocated for this purpose. a)Implements java. |
| identifiers | back to summary |
|---|---|
| protected Map<K, V> identifiers | |
| values | back to summary |
|---|---|
| protected List<E> values | |
| PersistentIdentifierBag | back to summary |
|---|---|
| public PersistentIdentifierBag(SessionImplementor session) | |
| PersistentIdentifierBag | back to summary |
|---|---|
| public PersistentIdentifierBag() | |
| PersistentIdentifierBag | back to summary |
|---|---|
| public PersistentIdentifierBag(SessionImplementor session, Collection<E> coll) | |
| add | back to summary |
|---|---|
| public boolean add(Object o) Implements java. Doc from java. Appends the specified element to the end of this list (optional operation). Lists that support this operation may place limitations on what elements may be added to this list. In particular, some lists will refuse to add null elements, and others will impose restrictions on the type of elements that may be added. List classes should clearly specify in their documentation any restrictions on what elements may be added.
| |
| add | back to summary |
|---|---|
| public void add(int index, Object element) Implements java. Doc from java. Inserts the specified element at the specified position in this list (optional operation). Shifts the element currently at that position (if any) and any subsequent elements to the right (adds one to their indices).
| |
| addAll | back to summary |
|---|---|
| public boolean addAll(int index, Collection<E> c) Implements java. Doc from java. Inserts all of the elements in the specified collection into this list at the specified position (optional operation). Shifts the element currently at that position (if any) and any subsequent elements to the right (increases their indices). The new elements will appear in this list in the order that they are returned by the specified collection's iterator. The behavior of this operation is undefined if the specified collection is modified while the operation is in progress. (Note that this will occur if the specified collection is this list, and it's nonempty.)
| |
| addAll | back to summary |
|---|---|
| public boolean addAll(Collection<E> c) Implements java. Doc from java. Appends all of the elements in the specified collection to the end of this list, in the order that they are returned by the specified collection's iterator (optional operation). The behavior of this operation is undefined if the specified collection is modified while the operation is in progress. (Note that this will occur if the specified collection is this list, and it's nonempty.)
| |
| afterRowInsert | back to summary |
|---|---|
| public void afterRowInsert(CollectionPersister persister, Object entry, int i) throws HibernateException Overrides org. Implements org. Doc from org. Called after inserting a row, to fetch the natively generated id | |
| beforeAdd | back to summary |
|---|---|
| private void beforeAdd(int index) | |
| beforeInitialize | back to summary |
|---|---|
| public void beforeInitialize(CollectionPersister persister, int anticipatedSize) Implements org. Doc from org. Called before any elements are read into the collection, allowing appropriate initializations to occur.
| |
| beforeRemove | back to summary |
|---|---|
| private void beforeRemove(int index) | |
| clear | back to summary |
|---|---|
| public void clear() Implements java. Doc from java. Removes all of the elements from this list (optional operation). The list will be empty after this call returns. | |
| contains | back to summary |
|---|---|
| public boolean contains(Object o) Implements java. Doc from java. Returns
| |
| containsAll | back to summary |
|---|---|
| public boolean containsAll(Collection<E> c) Implements java. Doc from java. Returns
| |
| disassemble | back to summary |
|---|---|
| public Serializable disassemble(CollectionPersister persister) throws HibernateException Implements org. Doc from org. Disassemble the collection, ready for the cache | |
| empty | back to summary |
|---|---|
| public boolean empty() Implements abstract org. Implements org. Doc from org. Is the initialized collection empty? | |
| entries | back to summary |
|---|---|
| public Iterator Implements org. Doc from org. Iterate all collection entries, during update of the database | |
| entryExists | back to summary |
|---|---|
| public boolean entryExists(Object entry, int i) Implements org. Doc from org. Does an element exist at this entry in the collection? | |
| equalsSnapshot | back to summary |
|---|---|
| public boolean equalsSnapshot(CollectionPersister persister) throws HibernateException Implements org. Doc from org. Does the current state exactly match the snapshot? | |
| get | back to summary |
|---|---|
| public Object get(int index) Implements java. Doc from java. Returns the element at the specified position in this list.
| |
| getDeletes | back to summary |
|---|---|
| public Iterator Implements org. Doc from org. Get all the elements that need deleting | |
| getElement | back to summary |
|---|---|
| public Object getElement(Object entry) Implements org. Doc from org. Get the value of the given collection entry | |
| getIdentifier | back to summary |
|---|---|
| public Object getIdentifier(Object entry, int i) Overrides org. Implements org. Doc from org. Get the index of the given collection entry | |
| getIndex | back to summary |
|---|---|
| public Object getIndex(Object entry, int i, CollectionPersister persister) Implements org. Doc from org. Get the index of the given collection entry
| |
| getOrphans | back to summary |
|---|---|
| public Collection Implements abstract org. Implements org. Doc from org. get all "orphaned" elements | |
| getSnapshot | back to summary |
|---|---|
| public Serializable getSnapshot(CollectionPersister persister) throws HibernateException Implements org. Doc from org. Return a new snapshot of the current state of the collection | |
| getSnapshotElement | back to summary |
|---|---|
| public Object getSnapshotElement(Object entry, int i) Implements org. Doc from org. Get the snapshot value of the given collection entry | |
| indexOf | back to summary |
|---|---|
| public int indexOf(Object o) Implements java. Doc from java. Returns the index of the first occurrence of the specified element
in this list, or -1 if this list does not contain the element.
More formally, returns the lowest index
| |
| initializeFromCache | back to summary |
|---|---|
| public void initializeFromCache(CollectionPersister persister, Serializable disassembled, Object owner) throws HibernateException Implements org. Doc from org. Read the state of the collection from a disassembled cached value | |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Implements java. Doc from java. Returns
| |
| isSnapshotEmpty | back to summary |
|---|---|
| public boolean isSnapshotEmpty(Serializable snapshot) Implements org. Doc from org. Is the snapshot empty? | |
| isWrapper | back to summary |
|---|---|
| public boolean isWrapper(Object collection) Implements org. Doc from org. Is this the wrapper for the given underlying collection instance? | |
| iterator | back to summary |
|---|---|
| public Iterator Implements java. Doc from java. Returns an iterator over the elements in this list in proper sequence.
| |
| lastIndexOf | back to summary |
|---|---|
| public int lastIndexOf(Object o) Implements java. Doc from java. Returns the index of the last occurrence of the specified element
in this list, or -1 if this list does not contain the element.
More formally, returns the highest index
| |
| listIterator | back to summary |
|---|---|
| public ListIterator Implements java. Doc from java. Returns a list iterator over the elements in this list (in proper sequence).
| |
| listIterator | back to summary |
|---|---|
| public ListIterator Implements java. Doc from java. Returns a list iterator over the elements in this list (in proper
sequence), starting at the specified position in the list.
The specified index indicates the first element that would be
returned by an initial call to
| |
| needsInserting | back to summary |
|---|---|
| public boolean needsInserting(Object entry, int i, Type elemType) throws HibernateException Implements org. Doc from org. Do we need to insert this element? | |
| needsUpdating | back to summary |
|---|---|
| public boolean needsUpdating(Object entry, int i, Type elemType) throws HibernateException Implements org. Doc from org. Do we need to update this element? | |
| preInsert | back to summary |
|---|---|
| public void preInsert(CollectionPersister persister) throws HibernateException Overrides org. Implements org. Doc from org. Called before inserting rows, to ensure that any surrogate keys are fully generated | |
| readFrom | back to summary |
|---|---|
| public Object readFrom(ResultSet rs, CollectionPersister persister, CollectionAliases descriptor, Object owner) throws HibernateException, SQLException Implements org. Doc from org. Read a row from the JDBC result set | |
| remove | back to summary |
|---|---|
| public boolean remove(Object o) Implements java. Doc from java. Removes the first occurrence of the specified element from this list,
if it is present (optional operation). If this list does not contain
the element, it is unchanged. More formally, removes the element with
the lowest index
| |
| remove | back to summary |
|---|---|
| public Object remove(int index) Implements java. Doc from java. Removes the element at the specified position in this list (optional operation). Shifts any subsequent elements to the left (subtracts one from their indices). Returns the element that was removed from the list.
| |
| removeAll | back to summary |
|---|---|
| public boolean removeAll(Collection<E> c) Implements java. Doc from java. Removes from this list all of its elements that are contained in the specified collection (optional operation).
| |
| retainAll | back to summary |
|---|---|
| public boolean retainAll(Collection<E> c) Implements java. Doc from java. Retains only the elements in this list that are contained in the specified collection (optional operation). In other words, removes from this list all of its elements that are not contained in the specified collection.
| |
| set | back to summary |
|---|---|
| public Object set(int index, Object element) Implements java. Doc from java. Replaces the element at the specified position in this list with the specified element (optional operation). | |
| size | back to summary |
|---|---|
| public int size() Implements java. Doc from java. Returns the number of elements in this list. If this list contains
more than
| |
| subList | back to summary |
|---|---|
| public List Implements java. Doc from java. Returns a view of the portion of this list between the specified
This method eliminates the need for explicit range operations (of the sort that commonly exist for arrays). Any operation that expects a list can be used as a range operation by passing a subList view instead of a whole list. For example, the following idiom removes a range of elements from a list:
Similar idioms may be constructed for indexOf and
lastIndexOf, and all of the algorithms in the
Collections class can be applied to a subList.The semantics of the list returned by this method become undefined if the backing list (i.e., this list) is structurally modified in any way other than via the returned list. (Structural modifications are those that change the size of this list, or otherwise perturb it in such a fashion that iterations in progress may yield incorrect results.)
| |
| toArray | back to summary |
|---|---|
| public Object[] toArray() Implements java. Doc from java. Returns an array containing all of the elements in this list in proper sequence (from first to last element). The returned array will be "safe" in that no references to it are maintained by this list. (In other words, this method must allocate a new array even if this list is backed by an array). The caller is thus free to modify the returned array. This method acts as bridge between array-based and collection-based APIs.
| |
| toArray | back to summary |
|---|---|
| public Object[] toArray(Object[] a) Implements java. Doc from java. Returns an array containing all of the elements in this list in proper sequence (from first to last element); the runtime type of the returned array is that of the specified array. If the list fits in the specified array, it is returned therein. Otherwise, a new array is allocated with the runtime type of the specified array and the size of this list. If the list fits in the specified array with room to spare (i.e.,
the array has more elements than the list), the element in the array
immediately following the end of the list is set to Like the Suppose
Note that toArray(new Object[0]) is identical in function to
toArray().
| |