org.hibernate.persister.collection.CollectionPersister |
Known Indirect Subclasses |
A strategy for persisting a collection role. Defines a contract between
the persistence strategy and the actual persistent collection framework
and session. Does not define operations that are required for querying
collections, or loading by outer join.
Implements persistence of a collection instance while the instance is
referenced in a particular role.
This class is highly coupled to the PersistentCollection
hierarchy, since double dispatch is used to load and update collection
elements.
May be considered an immutable view of the mapping object
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Delete the persistent state of any elements that were removed from
the collection
| |||||||||||
Get the cache
| |||||||||||
Get the cache structure
| |||||||||||
Get the "space" that holds the persistent state
| |||||||||||
Get the associated Type
| |||||||||||
Return the element class of an array, or null otherwise
| |||||||||||
Generates the collection's element column aliases, based on the given
suffix.
| |||||||||||
Get the "element" type
| |||||||||||
Generates the collection's identifier column aliases, based on the given
suffix.
| |||||||||||
Get the surrogate key generation strategy (optional operation)
| |||||||||||
Get the type of the surrogate key
| |||||||||||
Generates the collection's index column aliases, based on the given
suffix.
| |||||||||||
Get the "index" type for a list or map (optional operation)
| |||||||||||
Generates the collection's key column aliases, based on the given
suffix.
| |||||||||||
Get the "key" type (the type of the foreign key)
| |||||||||||
Get the persister of the entity that "owns" this collection
| |||||||||||
Get the name of this collection role (the fully qualified class name,
extended by a "property path")
| |||||||||||
Is this collection role cacheable
| |||||||||||
Is this an "indexed" collection? (list or map)
| |||||||||||
Is this an ordered collection? (An ordered collection is
ordered by the initialization operation, not by sorting
that happens in memory, as in the case of a sorted collection.)
| |||||||||||
Does this collection implement "orphan delete"?
| |||||||||||
Initialize the given collection with the given key
| |||||||||||
Insert the persistent state of any new collection elements
| |||||||||||
Is this an array?
| |||||||||||
Is cascade delete handled by the database-level
foreign key constraint definition?
| |||||||||||
Is this collection "inverse", so state changes are not
propogated to the database.
| |||||||||||
Is this collection lazyily initialized?
| |||||||||||
Is this a many-to-many association? Note that this is mainly
a convenience feature as the single persister does not
conatin all the information needed to handle a many-to-many
itself, as internally it is looked at as two many-to-ones.
| |||||||||||
Can the elements of this collection change?
| |||||||||||
Is this a one-to-many association?
| |||||||||||
Is this an array or primitive values?
| |||||||||||
Does this collection cause version increment of the
owning entity?
| |||||||||||
Read the element from a row of the JDBC ResultSet
| |||||||||||
Read the identifier from a row of the JDBC ResultSet
| |||||||||||
Read the index from a row of the JDBC ResultSet
| |||||||||||
Read the key from a row of the JDBC ResultSet
| |||||||||||
(Re)create the collection's persistent state
| |||||||||||
Completely remove the persistent state of the collection
| |||||||||||
Update the persistent state of any elements that were modified
|
Delete the persistent state of any elements that were removed from the collection
HibernateException |
---|
Get the "space" that holds the persistent state
Generates the collection's element column aliases, based on the given suffix.
suffix | The suffix to use in the element column alias generation. |
---|
Generates the collection's identifier column aliases, based on the given suffix.
suffix | The suffix to use in the key column alias generation. |
---|
Get the surrogate key generation strategy (optional operation)
Generates the collection's index column aliases, based on the given suffix.
suffix | The suffix to use in the index column alias generation. |
---|
Generates the collection's key column aliases, based on the given suffix.
suffix | The suffix to use in the key column alias generation. |
---|
Get the persister of the entity that "owns" this collection
Get the name of this collection role (the fully qualified class name, extended by a "property path")
Is this collection role cacheable
Is this an "indexed" collection? (list or map)
Is this an ordered collection? (An ordered collection is ordered by the initialization operation, not by sorting that happens in memory, as in the case of a sorted collection.)
Does this collection implement "orphan delete"?
Initialize the given collection with the given key
HibernateException |
---|
Insert the persistent state of any new collection elements
HibernateException |
---|
Is this an array?
Is cascade delete handled by the database-level foreign key constraint definition?
Is this collection "inverse", so state changes are not propogated to the database.
Is this collection lazyily initialized?
Is this a many-to-many association? Note that this is mainly a convenience feature as the single persister does not conatin all the information needed to handle a many-to-many itself, as internally it is looked at as two many-to-ones.
Can the elements of this collection change?
Is this a one-to-many association?
Is this an array or primitive values?
Does this collection cause version increment of the owning entity?
Read the element from a row of the JDBC ResultSet
HibernateException | |
---|---|
SQLException |
Read the identifier from a row of the JDBC ResultSet
HibernateException | |
---|---|
SQLException |
Read the index from a row of the JDBC ResultSet
HibernateException | |
---|---|
SQLException |
Read the key from a row of the JDBC ResultSet
HibernateException | |
---|---|
SQLException |
(Re)create the collection's persistent state
HibernateException |
---|
Completely remove the persistent state of the collection
HibernateException |
---|
Update the persistent state of any elements that were modified
HibernateException |
---|