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 Object | |
| private transient Class | |
| private static final CoreMessageLogger |
| Access | Constructor and Description |
|---|---|
| public | PersistentArrayHolder(SharedSessionContractImplementor
The session session, Object The array (the persistent "collection"). array)Constructs a PersistentCollection instance for holding an array. |
| public | PersistentArrayHolder(SharedSessionContractImplementor
The session session, CollectionPersister The persister for the array persister)Constructs a PersistentCollection instance for holding an array. |
| Modifier and Type | Method and Description |
|---|---|
| public Object | disassemble(CollectionPersister
The collection persister persister)Implements org. |
| public Iterator | |
| public boolean | empty()
Implements abstract org. Implements org. |
| public boolean | endRead()
Overrides 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 Object | |
| 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 | 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 Object | getValue()
Overrides org. Implements org. |
| 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<E> loadingState)
Implements org. |
| public boolean | isDirectlyAccessible()
Overrides org. Implements org. |
| 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 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. |
| array | back to summary |
|---|---|
| protected Object array | |
| elementClass | back to summary |
|---|---|
| private transient Class<?> elementClass | |
| LOG | back to summary |
|---|---|
| private static final CoreMessageLogger LOG Hides org. | |
| PersistentArrayHolder | back to summary |
|---|---|
| public PersistentArrayHolder(SharedSessionContractImplementor session, Object array) Constructs a PersistentCollection instance for holding an array.
| |
| PersistentArrayHolder | back to summary |
|---|---|
| public PersistentArrayHolder(SharedSessionContractImplementor session, CollectionPersister persister) Constructs a PersistentCollection instance for holding an array.
| |
| disassemble | back to summary |
|---|---|
| public Object disassemble(CollectionPersister persister) throws HibernateException Implements org. Doc from org. Disassemble the collection to get it ready for the cache
| |
| elements | back to summary |
|---|---|
| public Iterator Get an iterator over the array elements
| |
| empty | back to summary |
|---|---|
| public boolean empty() Implements abstract org. Implements org. Doc from org. Is the collection empty? (don't try to initialize the collection)
| |
| endRead | back to summary |
|---|---|
| public boolean endRead() Overrides org. Implements org. Doc from org. Called after reading all rows from the JDBC result set. Pairs with
| |
| 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 the given element/entry exist 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?
| |
| getArray | back to summary |
|---|---|
public Object getArray()
| |
| 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. Generally the given entry parameter value will just be returned. Might get a different value for a duplicate entries in a Set. | |
| 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 | |
| getValue | back to summary |
|---|---|
| public Object getValue() Overrides org. Implements org. Doc from org. Return the user-visible collection (or array) instance | |
| initializeEmptyCollection | back to summary |
|---|---|
| public void initializeEmptyCollection(CollectionPersister persister) Implements org.
| |
| initializeFromCache | back to summary |
|---|---|
| public void initializeFromCache(CollectionPersister persister, Object disassembled, Object owner) throws HibernateException Implements org. Doc from org. Read the state of the collection from a disassembled cached value
| |
| injectLoadedState | back to summary |
|---|---|
| public void injectLoadedState(PluralAttributeMapping attributeMapping, List<E> loadingState) Implements org. Doc from org. Inject the state loaded for a collection instance.
| |
| isDirectlyAccessible | back to summary |
|---|---|
| public boolean isDirectlyAccessible() Overrides org. Implements org. Doc from org. Could the application possibly have a direct reference to the underlying collection implementation?
| |
| 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 collection instance? | |
| 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? | |