Identifier bags may not be used for a many-to-one association.
Furthermore, there is no reason to use inverse="true".
API Note
Incubating in terms of making this non-internal. These contracts will be getting cleaned up in following releases.
| Modifier and Type | Field and Description |
|---|---|
| protected Map | |
| private Collection | providedValues
The Collection provided to a PersistentIdentifierBag constructor |
| protected List |
| Access | Constructor and Description |
|---|---|
| public | |
| public | PersistentIdentifierBag(SharedSessionContractImplementor
The session session)Constructs a PersistentIdentifierBag. |
| public | PersistentIdentifierBag(SharedSessionContractImplementor
The session session, Collection<E> The base elements coll)Constructs a PersistentIdentifierBag. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | add(E
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, E 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<? extends E> collection containing elements to be added to this list c)Implements java. |
| public boolean | addAll(Collection<? extends E>
collection containing elements to be added to this list c)Implements java. |
| public void | afterRowInsert(CollectionPersister
The collection persister persister, Object The collection element just inserted entry, int The element position/index i)Overrides org. Implements org. |
| private void | |
| 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<?>
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 Object | disassemble(CollectionPersister
The collection persister persister)Implements org. |
| public boolean | empty()
Implements abstract org. Implements org. |
| public Iterator | entries(CollectionPersister
The collection persister. persister)Implements org. |
| public boolean | entryExists(Object
The object to check if it exists as a collection element entry, int Unused i)Implements org. |
| public boolean | equalsSnapshot(CollectionPersister
The collection persister persister)Implements org. |
| public E | get(int
index of the element to return index)Implements java. |
| public Iterator | getDeletes(CollectionPersister
The collection persister persister, boolean For indexed collections, tells whether the index is a formula (calculated value) mapping indexIsFormula)Implements org. |
| public Object | getElement(Object
The object instance for which to get the collection element instance. entry)Implements org. |
| public Object | getIdentifier(Object
The collection entry/element entry, int The assumed identifier (?) i)Overrides org. Implements org. |
| public Object | getIndex(Object
The collection entry/element entry, int The assumed index i, CollectionPersister it was more elegant before we added this... persister)Implements org. |
| public Collection | getOrphans(Serializable
The snapshot state snapshot, String The name of the entity that are the elements of the collection entityName)Implements abstract org. Implements org. |
| public Serializable | getSnapshot(CollectionPersister
The collection persister persister)Implements org. |
| public Object | getSnapshotElement(Object
The entry entry, int The index i)Implements org. |
| public int | indexOf(Object
element to search for o)Implements java. |
| public void | |
| public void | initializeFromCache(CollectionPersister
The collection persister persister, Object The disassembled cached state disassembled, Object The collection owner owner)Implements org. |
| public void | injectLoadedState(PluralAttributeMapping attributeMapping, List<?> loadingState)
Implements org. |
| public boolean | isDirectlyProvidedCollection(Object
The collection collection)Overrides default org. collection provided directly to this PersistentCollection
(i.e., provided as an argument to a constructor)?
|
| public boolean | |
| public boolean | isSnapshotEmpty(Serializable
The snapshot to check snapshot)Implements org. |
| public boolean | isWrapper(Object
The collection to check whether this is wrapping it 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
The collection element to check entry, int The index (for indexed collections) i, Type The type for the element elemType)Implements org. |
| public boolean | needsUpdating(Object
The collection element to check entry, int The index (for indexed collections) i, Type The type for the element elemType)Implements org. |
| public void | preInsert(CollectionPersister
The collection persister persister)Overrides org. Implements org. |
| public boolean | remove(Object
element to be removed from this list, if present o)Implements java. |
| public E | 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<?>
collection containing elements to be retained in this list c)Implements java. |
| public E | set(int
index of the element to replace index, E 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 <A> A[] | toArray(A[]
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. |