QueryableCollection, PersistentCollection
| Modifier and Type | Method and Description |
|---|---|
| public void | deleteRows(PersistentCollection collection, Serializable key, SessionImplementor session)
Delete the persistent state of any elements that were removed from the collection |
| public boolean | |
| public CollectionRegionAccessStrategy | |
| public CacheEntryStructure | |
| public CollectionMetadata | |
| public Serializable[] | |
| public CollectionType | |
| public Object | |
| public Class | |
| public String[] | Returns: The key column aliases.The suffix to use in the element column alias generation. suffix)Generates the collection's element column aliases, based on the given suffix. |
| public String | |
| public Type | |
| public SessionFactoryImplementor | |
| public String | Returns: The key column aliases.The suffix to use in the key column alias generation. suffix)Generates the collection's identifier column aliases, based on the given suffix. |
| public IdentifierGenerator | |
| public Type | |
| public String[] | Returns: The key column aliases, or null if not indexed.The suffix to use in the index column alias generation. suffix)Generates the collection's index column aliases, based on the given suffix. |
| public String | |
| public Type | |
| public String[] | Returns: The key column aliases.The suffix to use in the key column alias generation. suffix)Generates the collection's key column aliases, based on the given suffix. |
| public Type | |
| public String | |
| public String | |
| public EntityPersister | |
| public String | getRole()
Get the name of this collection role (the fully qualified class name, extended by a "property path") |
| public int | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public void | initialize(Serializable key, SessionImplementor session)
Initialize the given collection with the given key |
| public void | insertRows(PersistentCollection collection, Serializable key, SessionImplementor session)
Insert the persistent state of any new collection elements |
| public boolean | |
| public boolean | |
| public boolean | isCascadeDeleteEnabled()
Is cascade delete handled by the database-level foreign key constraint definition? |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public void | |
| public Object | readElement(ResultSet rs, Object owner, String[] columnAliases, SessionImplementor session)
Read the element from a row of the JDBC ResultSet |
| public Object | readIdentifier(ResultSet rs, String columnAlias, SessionImplementor session)
Read the identifier from a row of the JDBC ResultSet |
| public Object | readIndex(ResultSet rs, String[] columnAliases, SessionImplementor session)
Read the index from a row of the JDBC ResultSet |
| public Object | readKey(ResultSet rs, String[] keyAliases, SessionImplementor session)
Read the key from a row of the JDBC ResultSet |
| public void | recreate(PersistentCollection collection, Serializable key, SessionImplementor session)
(Re)create the collection's persistent state |
| public void | remove(Serializable id, SessionImplementor session)
Completely remove the persistent state of the collection |
| public void | updateRows(PersistentCollection collection, Serializable key, SessionImplementor session)
Update the persistent state of any elements that were modified |
| deleteRows | back to summary |
|---|---|
| public void deleteRows(PersistentCollection collection, Serializable key, SessionImplementor session) throws HibernateException Delete the persistent state of any elements that were removed from the collection | |
| elementExists | back to summary |
|---|---|
| public boolean elementExists(Serializable key, Object element, SessionImplementor session) | |
| getCacheAccessStrategy | back to summary |
|---|---|
| public CollectionRegionAccessStrategy getCacheAccessStrategy() Get the cache | |
| getCacheEntryStructure | back to summary |
|---|---|
| public CacheEntryStructure getCacheEntryStructure() Get the cache structure | |
| getCollectionMetadata | back to summary |
|---|---|
| public CollectionMetadata getCollectionMetadata() | |
| getCollectionSpaces | back to summary |
|---|---|
| public Serializable[] getCollectionSpaces() Get the "space" that holds the persistent state | |
| getCollectionType | back to summary |
|---|---|
| public CollectionType getCollectionType() Get the associated Type | |
| getElementByIndex | back to summary |
|---|---|
| public Object getElementByIndex(Serializable key, Object index, SessionImplementor session, Object owner) | |
| getElementClass | back to summary |
|---|---|
| public Class Return the element class of an array, or null otherwise | |
| getElementColumnAliases | back to summary |
|---|---|
| public String[] getElementColumnAliases(String suffix) Generates the collection's element column aliases, based on the given suffix. | |
| getElementNodeName | back to summary |
|---|---|
| public String getElementNodeName() | |
| getElementType | back to summary |
|---|---|
| public Type getElementType() Get the "element" type | |
| getFactory | back to summary |
|---|---|
| public SessionFactoryImplementor getFactory() | |
| getIdentifierColumnAlias | back to summary |
|---|---|
| public String getIdentifierColumnAlias(String suffix) Generates the collection's identifier column aliases, based on the given suffix. | |
| getIdentifierGenerator | back to summary |
|---|---|
| public IdentifierGenerator getIdentifierGenerator() Get the surrogate key generation strategy (optional operation) | |
| getIdentifierType | back to summary |
|---|---|
| public Type getIdentifierType() Get the type of the surrogate key | |
| getIndexColumnAliases | back to summary |
|---|---|
| public String[] getIndexColumnAliases(String suffix) Generates the collection's index column aliases, based on the given suffix. | |
| getIndexNodeName | back to summary |
|---|---|
| public String getIndexNodeName() | |
| getIndexType | back to summary |
|---|---|
| public Type getIndexType() Get the "index" type for a list or map (optional operation) | |
| getKeyColumnAliases | back to summary |
|---|---|
| public String[] getKeyColumnAliases(String suffix) Generates the collection's key column aliases, based on the given suffix. | |
| getKeyType | back to summary |
|---|---|
| public Type getKeyType() Get the "key" type (the type of the foreign key) | |
| getManyToManyFilterFragment | back to summary |
|---|---|
| public String getManyToManyFilterFragment(String alias, Map<K, V> enabledFilters) | |
| getNodeName | back to summary |
|---|---|
| public String getNodeName() | |
| getOwnerEntityPersister | back to summary |
|---|---|
| public EntityPersister getOwnerEntityPersister() Get the persister of the entity that "owns" this collection | |
| getRole | back to summary |
|---|---|
| public String getRole() Get the name of this collection role (the fully qualified class name, extended by a "property path") | |
| getSize | back to summary |
|---|---|
| public int getSize(Serializable key, SessionImplementor session) | |
| hasCache | back to summary |
|---|---|
| public boolean hasCache() Is this collection role cacheable | |
| hasIndex | back to summary |
|---|---|
| public boolean hasIndex() Is this an "indexed" collection? (list or map) | |
| hasManyToManyOrdering | back to summary |
|---|---|
| public boolean hasManyToManyOrdering() | |
| hasOrdering | back to summary |
|---|---|
| public boolean hasOrdering() 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.) | |
| hasOrphanDelete | back to summary |
|---|---|
| public boolean hasOrphanDelete() Does this collection implement "orphan delete"? | |
| indexExists | back to summary |
|---|---|
| public boolean indexExists(Serializable key, Object index, SessionImplementor session) | |
| initialize | back to summary |
|---|---|
| public void initialize(Serializable key, SessionImplementor session) throws HibernateException Initialize the given collection with the given key | |
| insertRows | back to summary |
|---|---|
| public void insertRows(PersistentCollection collection, Serializable key, SessionImplementor session) throws HibernateException Insert the persistent state of any new collection elements | |
| isAffectedByEnabledFilters | back to summary |
|---|---|
| public boolean isAffectedByEnabledFilters(SessionImplementor session) | |
| isArray | back to summary |
|---|---|
| public boolean isArray() Is this an array? | |
| isCascadeDeleteEnabled | back to summary |
|---|---|
| public boolean isCascadeDeleteEnabled() Is cascade delete handled by the database-level foreign key constraint definition? | |
| isExtraLazy | back to summary |
|---|---|
| public boolean isExtraLazy() | |
| isInverse | back to summary |
|---|---|
| public boolean isInverse() Is this collection "inverse", so state changes are not propogated to the database. | |
| isLazy | back to summary |
|---|---|
| public boolean isLazy() Is this collection lazyily initialized? | |
| isManyToMany | back to summary |
|---|---|
| public boolean isManyToMany() 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. | |
| isMutable | back to summary |
|---|---|
| public boolean isMutable() Can the elements of this collection change? | |
| isOneToMany | back to summary |
|---|---|
| public boolean isOneToMany() Is this a one-to-many association? | |
| isPrimitiveArray | back to summary |
|---|---|
| public boolean isPrimitiveArray() Is this an array or primitive values? | |
| isVersioned | back to summary |
|---|---|
| public boolean isVersioned() Does this collection cause version increment of the owning entity? | |
| postInstantiate | back to summary |
|---|---|
| public void postInstantiate() throws MappingException | |
| readElement | back to summary |
|---|---|
| public Object readElement(ResultSet rs, Object owner, String[] columnAliases, SessionImplementor session) throws HibernateException, SQLException Read the element from a row of the JDBC ResultSet | |
| readIdentifier | back to summary |
|---|---|
| public Object readIdentifier(ResultSet rs, String columnAlias, SessionImplementor session) throws HibernateException, SQLException Read the identifier from a row of the JDBC ResultSet | |
| readIndex | back to summary |
|---|---|
| public Object readIndex(ResultSet rs, String[] columnAliases, SessionImplementor session) throws HibernateException, SQLException Read the index from a row of the JDBC ResultSet | |
| readKey | back to summary |
|---|---|
| public Object readKey(ResultSet rs, String[] keyAliases, SessionImplementor session) throws HibernateException, SQLException Read the key from a row of the JDBC ResultSet | |
| recreate | back to summary |
|---|---|
| public void recreate(PersistentCollection collection, Serializable key, SessionImplementor session) throws HibernateException (Re)create the collection's persistent state | |
| remove | back to summary |
|---|---|
| public void remove(Serializable id, SessionImplementor session) throws HibernateException Completely remove the persistent state of the collection | |
| updateRows | back to summary |
|---|---|
| public void updateRows(PersistentCollection collection, Serializable key, SessionImplementor session) throws HibernateException Update the persistent state of any elements that were modified | |