Class AbstractCollectionPersister
java.lang.Object
org.hibernate.persister.collection.AbstractCollectionPersister
- All Implemented Interfaces:
CollectionMetadata,CollectionPersister,QueryableCollection,SQLLoadableCollection,Joinable,PropertyMapping
- Direct Known Subclasses:
BasicCollectionPersister,OneToManyPersister
public abstract class AbstractCollectionPersister
extends Object
implements CollectionMetadata, SQLLoadableCollection
Base implementation of the QueryableCollection interface.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final intprotected final String[]protected final boolean[]protected final boolean[]protected final String[]protected final String[]protected final String[]protected final String[]protected final String[]protected final String[]protected final booleanprotected final Typeprotected final booleanprotected final booleanprotected final booleanprotected final Stringprotected final String[]protected final boolean[]protected final String[]protected final booleanprotected final String[]protected final String[]protected final String[]protected final String[]protected final Stringprotected final String -
Constructor Summary
ConstructorsConstructorDescriptionAbstractCollectionPersister(Collection collection, CollectionRegionAccessStrategy cacheAccessStrategy, Configuration cfg, SessionFactoryImplementor factory) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidappendElementColumns(SelectFragment frag, String elemAlias) protected voidappendIdentifierColumns(SelectFragment frag, String alias) protected voidappendIndexColumns(SelectFragment frag, String alias) protected abstract CollectionInitializercreateCollectionInitializer(LoadQueryInfluencers loadQueryInfluencers) protected abstract CollectionInitializercreateSubselectInitializer(SubselectFetch subselect, SessionImplementor session) protected ObjectdecrementIndexByBase(Object index) voiddeleteRows(PersistentCollection collection, Serializable id, SessionImplementor session) Delete the persistent state of any elements that were removed from the collectionprotected abstract intdoUpdateRows(Serializable key, PersistentCollection collection, SessionImplementor session) booleanelementExists(Serializable key, Object element, SessionImplementor session) protected StringfilterFragment(String alias) filterFragment(String alias, Map enabledFilters) Get the where clause filter, given a query alias and considering enabled session filtersprotected abstract Stringprotected abstract Stringprotected Stringprotected Stringprotected abstract Stringprotected SelectFragmentgenerateSelectFragment(String alias, String columnSuffix) protected Stringprotected StringgenerateSelectSizeString(boolean isIntegerIndexed) protected abstract Stringprotected CollectionInitializergetAppropriateInitializer(Serializable key, SessionImplementor session) Get the cacheGet the cache structureString[]getCollectionPropertyColumnAliases(String propertyName, String suffix) Get the "space" that holds the persistent stateGet the associated Typeprotected ExecuteUpdateResultCheckStyleprotected ExecuteUpdateResultCheckStyleprotected DialectgetElementByIndex(Serializable key, Object index, SessionImplementor session, Object owner) Return the element class of an array, or null otherwiseString[]getElementColumnAliases(String suffix) Generates the collection's element column aliases, based on the given suffix.String[]Get the names of the collection element columns (or the primary key columns in the case of a one-to-many association)String[]getElementColumnNames(String alias) Get the names of the collection element columns (or the primary key columns in the case of a one-to-many association), aliased by the given table aliasGet the persister of the element class, if this is a collection of entities (optional operation).The collection element typeShould we load this collection role by outerjoining?getIdentifierColumnAlias(String suffix) 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 keyString[]getIndexColumnAliases(String suffix) Generates the collection's index column aliases, based on the given suffix.String[]Get the names of the collection index columns if this is an indexed collection (optional operation)String[]getIndexColumnNames(String alias) Get the names of the collection index columns if this is an indexed collection (optional operation), aliased by the given table aliasString[]Get the index formulas if this is an indexed collection (optional operation)The collection index type (or null if the collection has no index)Intended for internal use only.protected ExecuteUpdateResultCheckStyleString[]getKeyColumnAliases(String suffix) Generates the collection's key column aliases, based on the given suffix.String[]The columns to join onThe collection key typegetManyToManyFilterFragment(String alias, Map enabledFilters) getManyToManyOrderByString(String alias) Get the order-by to be applied at the target table of a many to manygetName()An identifying name; a class name or collection role name.Get the persister of the entity that "owns" this collectiongetRole()The name of this collection roleintgetSize(Serializable key, SessionImplementor session) protected Stringprotected Stringprotected SQLExceptionConverterprotected StringgetSQLOrderByString(String alias) Get the order by SQLprotected Stringprotected StringgetSQLWhereString(String alias) The table to join to.getType()Get the type of the thing containing the propertiesprotected ExecuteUpdateResultCheckStylebooleanhasCache()Is this collection role cacheablebooleanhasIndex()Is this collection indexed?booleanbooleanIs 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.)booleanDoes this collection implement "orphan delete"?booleanhasWhere()Does this collection role have a where clause filter?protected ObjectincrementIndexByBase(Object index) booleanindexExists(Serializable key, Object index, SessionImplementor session) voidvoidinitialize(Serializable key, SessionImplementor session) Initialize the given collection with the given keyvoidinsertRows(PersistentCollection collection, Serializable id, SessionImplementor session) Insert the persistent state of any new collection elementsbooleanbooleanisArray()Is the collection an array?booleanIs this instance actually a CollectionPersister?protected booleanprotected booleanbooleanprotected booleanbooleanIs this collection "inverse", so state changes are not propogated to the database.booleanisLazy()Is the collection lazily initialized?abstract booleanIs 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.booleanCan the elements of this collection change?booleanIs the collection a primitive array?protected booleanprotected booleanbooleanprotected booleanbooleanDoes this collection cause version increment of the owning entity?protected voidoneToManyFilterFragment(String alias) voidreadElement(ResultSet rs, Object owner, String[] aliases, SessionImplementor session) Read the element from a row of the JDBC ResultSetreadIdentifier(ResultSet rs, String alias, SessionImplementor session) Read the identifier from a row of the JDBC ResultSetreadIndex(ResultSet rs, String[] aliases, SessionImplementor session) Read the index from a row of the JDBC ResultSetreadKey(ResultSet rs, String[] aliases, SessionImplementor session) Read the key from a row of the JDBC ResultSetvoidrecreate(PersistentCollection collection, Serializable id, SessionImplementor session) (Re)create the collection's persistent statevoidremove(Serializable id, SessionImplementor session) Completely remove the persistent state of the collectionselectFragment(String alias, String columnSuffix) Generate a list of collection index, key and element columnsString[]Given a property path, return the corresponding column name(s).String[]Given a query alias and a property path, return the qualified column nametoString()Given a component path expression, get the type of the propertyvoidupdateRows(PersistentCollection collection, Serializable id, SessionImplementor session) Update the persistent state of any elements that were modifiedprotected intwriteElement(PreparedStatement st, Object elt, int i, SessionImplementor session) Write the element to a JDBC PreparedStatementprotected intwriteElementToWhere(PreparedStatement st, Object elt, int i, SessionImplementor session) Write the element to a JDBC PreparedStatementintwriteIdentifier(PreparedStatement st, Object id, int i, SessionImplementor session) Write the identifier to a JDBC PreparedStatementprotected intwriteIndex(PreparedStatement st, Object index, int i, SessionImplementor session) Write the index to a JDBC PreparedStatementprotected intwriteIndexToWhere(PreparedStatement st, Object index, int i, SessionImplementor session) Write the index to a JDBC PreparedStatementprotected intwriteKey(PreparedStatement st, Serializable key, int i, SessionImplementor session) Write the key to a JDBC PreparedStatementMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.hibernate.persister.collection.CollectionPersister
isCascadeDeleteEnabled, isOneToManyMethods inherited from interface org.hibernate.persister.entity.Joinable
consumesCollectionAlias, consumesEntityAlias, fromJoinFragment, selectFragment, whereJoinFragment
-
Field Details
-
sqlWhereString
-
hasWhere
protected final boolean hasWhere -
indexContainsFormula
protected final boolean indexContainsFormula -
elementIsPureFormula
protected final boolean elementIsPureFormula -
elementType
-
keyColumnNames
-
indexColumnNames
-
indexFormulaTemplates
-
indexFormulas
-
indexColumnIsSettable
protected final boolean[] indexColumnIsSettable -
elementColumnNames
-
elementColumnWriters
-
elementColumnReaders
-
elementColumnReaderTemplates
-
elementFormulaTemplates
-
elementFormulas
-
elementColumnIsSettable
protected final boolean[] elementColumnIsSettable -
elementColumnIsInPrimaryKey
protected final boolean[] elementColumnIsInPrimaryKey -
indexColumnAliases
-
elementColumnAliases
-
keyColumnAliases
-
identifierColumnName
-
qualifiedTableName
-
hasIndex
protected final boolean hasIndex -
hasIdentifier
protected final boolean hasIdentifier -
batchSize
protected final int batchSize
-
-
Constructor Details
-
AbstractCollectionPersister
public AbstractCollectionPersister(Collection collection, CollectionRegionAccessStrategy cacheAccessStrategy, Configuration cfg, SessionFactoryImplementor factory) throws MappingException, CacheException - Throws:
MappingExceptionCacheException
-
-
Method Details
-
postInstantiate
- Specified by:
postInstantiatein interfaceCollectionPersister- Throws:
MappingException
-
logStaticSQL
protected void logStaticSQL() -
initialize
Description copied from interface:CollectionPersisterInitialize the given collection with the given key- Specified by:
initializein interfaceCollectionPersister- Throws:
HibernateException
-
getAppropriateInitializer
protected CollectionInitializer getAppropriateInitializer(Serializable key, SessionImplementor session) -
createSubselectInitializer
protected abstract CollectionInitializer createSubselectInitializer(SubselectFetch subselect, SessionImplementor session) -
createCollectionInitializer
protected abstract CollectionInitializer createCollectionInitializer(LoadQueryInfluencers loadQueryInfluencers) throws MappingException - Throws:
MappingException
-
getCacheAccessStrategy
Description copied from interface:CollectionPersisterGet the cache- Specified by:
getCacheAccessStrategyin interfaceCollectionPersister
-
hasCache
public boolean hasCache()Description copied from interface:CollectionPersisterIs this collection role cacheable- Specified by:
hasCachein interfaceCollectionPersister
-
getCollectionType
Description copied from interface:CollectionPersisterGet the associated Type- Specified by:
getCollectionTypein interfaceCollectionPersister
-
getSQLWhereString
-
getSQLOrderByString
Description copied from interface:QueryableCollectionGet the order by SQL- Specified by:
getSQLOrderByStringin interfaceQueryableCollection
-
getManyToManyOrderByString
Description copied from interface:QueryableCollectionGet the order-by to be applied at the target table of a many to many- Specified by:
getManyToManyOrderByStringin interfaceQueryableCollection- Parameters:
alias- The alias for the many-to-many target table- Returns:
- appropriate order-by fragment or empty string.
-
getFetchMode
Description copied from interface:QueryableCollectionShould we load this collection role by outerjoining?- Specified by:
getFetchModein interfaceQueryableCollection
-
hasOrdering
public boolean hasOrdering()Description copied from interface:CollectionPersisterIs 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.)- Specified by:
hasOrderingin interfaceCollectionPersister
-
hasManyToManyOrdering
public boolean hasManyToManyOrdering()- Specified by:
hasManyToManyOrderingin interfaceCollectionPersister
-
hasWhere
public boolean hasWhere()Description copied from interface:QueryableCollectionDoes this collection role have a where clause filter?- Specified by:
hasWherein interfaceQueryableCollection
-
getSQLDeleteString
-
getSQLInsertRowString
-
getSQLUpdateRowString
-
getSQLDeleteRowString
-
getKeyType
Description copied from interface:CollectionMetadataThe collection key type- Specified by:
getKeyTypein interfaceCollectionMetadata- Specified by:
getKeyTypein interfaceCollectionPersister
-
getIndexType
Description copied from interface:CollectionMetadataThe collection index type (or null if the collection has no index)- Specified by:
getIndexTypein interfaceCollectionMetadata- Specified by:
getIndexTypein interfaceCollectionPersister
-
getElementType
Description copied from interface:CollectionMetadataThe collection element type- Specified by:
getElementTypein interfaceCollectionMetadata- Specified by:
getElementTypein interfaceCollectionPersister
-
getElementClass
Return the element class of an array, or null otherwise- Specified by:
getElementClassin interfaceCollectionPersister
-
readElement
public Object readElement(ResultSet rs, Object owner, String[] aliases, SessionImplementor session) throws HibernateException, SQLException Description copied from interface:CollectionPersisterRead the element from a row of the JDBC ResultSet- Specified by:
readElementin interfaceCollectionPersister- Throws:
HibernateExceptionSQLException
-
readIndex
public Object readIndex(ResultSet rs, String[] aliases, SessionImplementor session) throws HibernateException, SQLException Description copied from interface:CollectionPersisterRead the index from a row of the JDBC ResultSet- Specified by:
readIndexin interfaceCollectionPersister- Throws:
HibernateExceptionSQLException
-
decrementIndexByBase
-
readIdentifier
public Object readIdentifier(ResultSet rs, String alias, SessionImplementor session) throws HibernateException, SQLException Description copied from interface:CollectionPersisterRead the identifier from a row of the JDBC ResultSet- Specified by:
readIdentifierin interfaceCollectionPersister- Throws:
HibernateExceptionSQLException
-
readKey
public Object readKey(ResultSet rs, String[] aliases, SessionImplementor session) throws HibernateException, SQLException Description copied from interface:CollectionPersisterRead the key from a row of the JDBC ResultSet- Specified by:
readKeyin interfaceCollectionPersister- Throws:
HibernateExceptionSQLException
-
writeKey
protected int writeKey(PreparedStatement st, Serializable key, int i, SessionImplementor session) throws HibernateException, SQLException Write the key to a JDBC PreparedStatement- Throws:
HibernateExceptionSQLException
-
writeElement
protected int writeElement(PreparedStatement st, Object elt, int i, SessionImplementor session) throws HibernateException, SQLException Write the element to a JDBC PreparedStatement- Throws:
HibernateExceptionSQLException
-
writeIndex
protected int writeIndex(PreparedStatement st, Object index, int i, SessionImplementor session) throws HibernateException, SQLException Write the index to a JDBC PreparedStatement- Throws:
HibernateExceptionSQLException
-
incrementIndexByBase
-
writeElementToWhere
protected int writeElementToWhere(PreparedStatement st, Object elt, int i, SessionImplementor session) throws HibernateException, SQLException Write the element to a JDBC PreparedStatement- Throws:
HibernateExceptionSQLException
-
writeIndexToWhere
protected int writeIndexToWhere(PreparedStatement st, Object index, int i, SessionImplementor session) throws HibernateException, SQLException Write the index to a JDBC PreparedStatement- Throws:
HibernateExceptionSQLException
-
writeIdentifier
public int writeIdentifier(PreparedStatement st, Object id, int i, SessionImplementor session) throws HibernateException, SQLException Write the identifier to a JDBC PreparedStatement- Throws:
HibernateExceptionSQLException
-
isPrimitiveArray
public boolean isPrimitiveArray()Description copied from interface:CollectionMetadataIs the collection a primitive array?- Specified by:
isPrimitiveArrayin interfaceCollectionMetadata- Specified by:
isPrimitiveArrayin interfaceCollectionPersister
-
isArray
public boolean isArray()Description copied from interface:CollectionMetadataIs the collection an array?- Specified by:
isArrayin interfaceCollectionMetadata- Specified by:
isArrayin interfaceCollectionPersister
-
getKeyColumnAliases
Description copied from interface:CollectionPersisterGenerates the collection's key column aliases, based on the given suffix.- Specified by:
getKeyColumnAliasesin interfaceCollectionPersister- Parameters:
suffix- The suffix to use in the key column alias generation.- Returns:
- The key column aliases.
-
getElementColumnAliases
Description copied from interface:CollectionPersisterGenerates the collection's element column aliases, based on the given suffix.- Specified by:
getElementColumnAliasesin interfaceCollectionPersister- Parameters:
suffix- The suffix to use in the element column alias generation.- Returns:
- The key column aliases.
-
getIndexColumnAliases
Description copied from interface:CollectionPersisterGenerates the collection's index column aliases, based on the given suffix.- Specified by:
getIndexColumnAliasesin interfaceCollectionPersister- Parameters:
suffix- The suffix to use in the index column alias generation.- Returns:
- The key column aliases, or null if not indexed.
-
getIdentifierColumnAlias
Description copied from interface:CollectionPersisterGenerates the collection's identifier column aliases, based on the given suffix.- Specified by:
getIdentifierColumnAliasin interfaceCollectionPersister- Parameters:
suffix- The suffix to use in the key column alias generation.- Returns:
- The key column aliases.
-
getIdentifierColumnName
- Specified by:
getIdentifierColumnNamein interfaceSQLLoadableCollection
-
selectFragment
Generate a list of collection index, key and element columns- Specified by:
selectFragmentin interfaceQueryableCollection
-
generateSelectSizeString
-
generateDetectRowByIndexString
-
generateSelectRowByIndexString
-
generateDetectRowByElementString
-
generateSelectFragment
-
appendElementColumns
-
appendIndexColumns
-
appendIdentifierColumns
-
getIndexColumnNames
Description copied from interface:QueryableCollectionGet the names of the collection index columns if this is an indexed collection (optional operation)- Specified by:
getIndexColumnNamesin interfaceQueryableCollection
-
getIndexFormulas
Description copied from interface:QueryableCollectionGet the index formulas if this is an indexed collection (optional operation)- Specified by:
getIndexFormulasin interfaceQueryableCollection
-
getIndexColumnNames
Description copied from interface:QueryableCollectionGet the names of the collection index columns if this is an indexed collection (optional operation), aliased by the given table alias- Specified by:
getIndexColumnNamesin interfaceQueryableCollection
-
getElementColumnNames
Description copied from interface:QueryableCollectionGet the names of the collection element columns (or the primary key columns in the case of a one-to-many association), aliased by the given table alias- Specified by:
getElementColumnNamesin interfaceQueryableCollection
-
getElementColumnNames
Description copied from interface:QueryableCollectionGet the names of the collection element columns (or the primary key columns in the case of a one-to-many association)- Specified by:
getElementColumnNamesin interfaceQueryableCollection
-
getKeyColumnNames
Description copied from interface:JoinableThe columns to join on- Specified by:
getKeyColumnNamesin interfaceJoinable
-
hasIndex
public boolean hasIndex()Description copied from interface:CollectionMetadataIs this collection indexed?- Specified by:
hasIndexin interfaceCollectionMetadata- Specified by:
hasIndexin interfaceCollectionPersister
-
isLazy
public boolean isLazy()Description copied from interface:CollectionMetadataIs the collection lazily initialized?- Specified by:
isLazyin interfaceCollectionMetadata- Specified by:
isLazyin interfaceCollectionPersister
-
isInverse
public boolean isInverse()Description copied from interface:CollectionPersisterIs this collection "inverse", so state changes are not propogated to the database.- Specified by:
isInversein interfaceCollectionPersister
-
getTableName
Description copied from interface:JoinableThe table to join to.- Specified by:
getTableNamein interfaceJoinable
-
remove
Description copied from interface:CollectionPersisterCompletely remove the persistent state of the collection- Specified by:
removein interfaceCollectionPersister- Throws:
HibernateException
-
recreate
public void recreate(PersistentCollection collection, Serializable id, SessionImplementor session) throws HibernateException Description copied from interface:CollectionPersister(Re)create the collection's persistent state- Specified by:
recreatein interfaceCollectionPersister- Throws:
HibernateException
-
isRowDeleteEnabled
protected boolean isRowDeleteEnabled() -
deleteRows
public void deleteRows(PersistentCollection collection, Serializable id, SessionImplementor session) throws HibernateException Description copied from interface:CollectionPersisterDelete the persistent state of any elements that were removed from the collection- Specified by:
deleteRowsin interfaceCollectionPersister- Throws:
HibernateException
-
isRowInsertEnabled
protected boolean isRowInsertEnabled() -
insertRows
public void insertRows(PersistentCollection collection, Serializable id, SessionImplementor session) throws HibernateException Description copied from interface:CollectionPersisterInsert the persistent state of any new collection elements- Specified by:
insertRowsin interfaceCollectionPersister- Throws:
HibernateException
-
getRole
Description copied from interface:CollectionMetadataThe name of this collection role- Specified by:
getRolein interfaceCollectionMetadata- Specified by:
getRolein interfaceCollectionPersister
-
getOwnerEntityName
-
getOwnerEntityPersister
Description copied from interface:CollectionPersisterGet the persister of the entity that "owns" this collection- Specified by:
getOwnerEntityPersisterin interfaceCollectionPersister
-
getIdentifierGenerator
Description copied from interface:CollectionPersisterGet the surrogate key generation strategy (optional operation)- Specified by:
getIdentifierGeneratorin interfaceCollectionPersister
-
getIdentifierType
Description copied from interface:CollectionPersisterGet the type of the surrogate key- Specified by:
getIdentifierTypein interfaceCollectionPersister
-
hasOrphanDelete
public boolean hasOrphanDelete()Description copied from interface:CollectionPersisterDoes this collection implement "orphan delete"?- Specified by:
hasOrphanDeletein interfaceCollectionPersister
-
toType
Description copied from interface:PropertyMappingGiven a component path expression, get the type of the property- Specified by:
toTypein interfacePropertyMapping- Throws:
QueryException
-
isManyToMany
public abstract boolean isManyToMany()Description copied from interface:CollectionPersisterIs 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.- Specified by:
isManyToManyin interfaceCollectionPersister
-
getManyToManyFilterFragment
- Specified by:
getManyToManyFilterFragmentin interfaceCollectionPersister
-
toColumns
Given a query alias and a property path, return the qualified column name- Specified by:
toColumnsin interfacePropertyMapping- Throws:
QueryException
-
toColumns
Given a property path, return the corresponding column name(s).- Specified by:
toColumnsin interfacePropertyMapping- Throws:
QueryException
-
getType
Description copied from interface:PropertyMappingGet the type of the thing containing the properties- Specified by:
getTypein interfacePropertyMapping
-
getName
Description copied from interface:JoinableAn identifying name; a class name or collection role name. -
getElementPersister
Description copied from interface:QueryableCollectionGet the persister of the element class, if this is a collection of entities (optional operation). Note that for a one-to-many association, the returned persister must be OuterJoinLoadable.- Specified by:
getElementPersisterin interfaceQueryableCollection
-
isCollection
public boolean isCollection()Description copied from interface:JoinableIs this instance actually a CollectionPersister?- Specified by:
isCollectionin interfaceJoinable
-
getCollectionSpaces
Description copied from interface:CollectionPersisterGet the "space" that holds the persistent state- Specified by:
getCollectionSpacesin interfaceCollectionPersister
-
generateDeleteString
-
generateDeleteRowString
-
generateUpdateRowString
-
generateInsertRowString
-
updateRows
public void updateRows(PersistentCollection collection, Serializable id, SessionImplementor session) throws HibernateException Description copied from interface:CollectionPersisterUpdate the persistent state of any elements that were modified- Specified by:
updateRowsin interfaceCollectionPersister- Throws:
HibernateException
-
doUpdateRows
protected abstract int doUpdateRows(Serializable key, PersistentCollection collection, SessionImplementor session) throws HibernateException - Throws:
HibernateException
-
getCollectionMetadata
- Specified by:
getCollectionMetadatain interfaceCollectionPersister
-
getFactory
- Specified by:
getFactoryin interfaceCollectionPersister
-
filterFragment
- Throws:
MappingException
-
filterFragment
Description copied from interface:JoinableGet the where clause filter, given a query alias and considering enabled session filters- Specified by:
filterFragmentin interfaceJoinable- Throws:
MappingException
-
oneToManyFilterFragment
- Specified by:
oneToManyFilterFragmentin interfaceJoinable- Throws:
MappingException
-
isInsertCallable
protected boolean isInsertCallable() -
getInsertCheckStyle
-
isUpdateCallable
protected boolean isUpdateCallable() -
getUpdateCheckStyle
-
isDeleteCallable
protected boolean isDeleteCallable() -
getDeleteCheckStyle
-
isDeleteAllCallable
protected boolean isDeleteAllCallable() -
getDeleteAllCheckStyle
-
toString
-
isVersioned
public boolean isVersioned()Description copied from interface:CollectionPersisterDoes this collection cause version increment of the owning entity?- Specified by:
isVersionedin interfaceCollectionPersister
-
getNodeName
- Specified by:
getNodeNamein interfaceCollectionPersister
-
getElementNodeName
- Specified by:
getElementNodeNamein interfaceCollectionPersister
-
getIndexNodeName
- Specified by:
getIndexNodeNamein interfaceCollectionPersister
-
getSQLExceptionConverter
-
getCacheEntryStructure
Description copied from interface:CollectionPersisterGet the cache structure- Specified by:
getCacheEntryStructurein interfaceCollectionPersister
-
isAffectedByEnabledFilters
- Specified by:
isAffectedByEnabledFiltersin interfaceCollectionPersister
-
isSubselectLoadable
public boolean isSubselectLoadable() -
isMutable
public boolean isMutable()Description copied from interface:CollectionPersisterCan the elements of this collection change?- Specified by:
isMutablein interfaceCollectionPersister
-
getCollectionPropertyColumnAliases
- Specified by:
getCollectionPropertyColumnAliasesin interfaceSQLLoadableCollection
-
initCollectionPropertyMap
public void initCollectionPropertyMap() -
getSize
- Specified by:
getSizein interfaceCollectionPersister
-
indexExists
- Specified by:
indexExistsin interfaceCollectionPersister
-
elementExists
- Specified by:
elementExistsin interfaceCollectionPersister
-
getElementByIndex
public Object getElementByIndex(Serializable key, Object index, SessionImplementor session, Object owner) - Specified by:
getElementByIndexin interfaceCollectionPersister
-
isExtraLazy
public boolean isExtraLazy()- Specified by:
isExtraLazyin interfaceCollectionPersister
-
getDialect
-
getInitializer
Intended for internal use only. In fact really only currently used from test suite for assertion purposes.- Returns:
- The default collection initializer for this persister/collection.
-