public abstract class AbstractCollectionPersister extends java.lang.Object implements CollectionMetadata, SQLLoadableCollection
BasicCollectionPersister,
OneToManyPersister| Modifier and Type | Field and Description |
|---|---|
protected int |
batchSize |
protected java.lang.String[] |
elementColumnAliases |
protected boolean[] |
elementColumnIsInPrimaryKey |
protected boolean[] |
elementColumnIsSettable |
protected java.lang.String[] |
elementColumnNames |
protected java.lang.String[] |
elementColumnReaders |
protected java.lang.String[] |
elementColumnReaderTemplates |
protected java.lang.String[] |
elementColumnWriters |
protected java.lang.String[] |
elementFormulas |
protected java.lang.String[] |
elementFormulaTemplates |
protected boolean |
elementIsPureFormula |
protected Type |
elementType |
protected boolean |
hasIdentifier |
protected boolean |
hasIndex |
protected boolean |
hasWhere |
protected java.lang.String |
identifierColumnName |
protected java.lang.String[] |
indexColumnAliases |
protected boolean[] |
indexColumnIsGettable |
protected boolean[] |
indexColumnIsSettable |
protected java.lang.String[] |
indexColumnNames |
protected boolean |
indexContainsFormula |
protected java.lang.String[] |
indexFormulas |
protected java.lang.String[] |
indexFormulaTemplates |
protected boolean |
isInverse |
protected java.lang.String[] |
keyColumnAliases |
protected java.lang.String[] |
keyColumnNames |
protected java.lang.String |
qualifiedTableName |
protected BasicBatchKey |
recreateBatchKey |
protected SqlExceptionHelper |
sqlExceptionHelper |
protected java.lang.String |
sqlWhereString |
| Constructor and Description |
|---|
AbstractCollectionPersister(Collection collectionBinding,
CollectionRegionAccessStrategy cacheAccessStrategy,
PersisterCreationContext creationContext) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendElementColumns(SelectFragment frag,
java.lang.String elemAlias) |
protected void |
appendIdentifierColumns(SelectFragment frag,
java.lang.String alias) |
protected void |
appendIndexColumns(SelectFragment frag,
java.lang.String alias) |
protected abstract CollectionInitializer |
createCollectionInitializer(LoadQueryInfluencers loadQueryInfluencers) |
protected abstract CollectionInitializer |
createSubselectInitializer(SubselectFetch subselect,
SessionImplementor session) |
protected java.lang.Object |
decrementIndexByBase(java.lang.Object index) |
void |
deleteRows(PersistentCollection collection,
java.io.Serializable id,
SessionImplementor session)
Delete the persistent state of any elements that were removed from
the collection
|
protected java.lang.String |
determineTableName(Table table,
JdbcEnvironment jdbcEnvironment) |
protected void |
doProcessQueuedOps(PersistentCollection collection,
java.io.Serializable key,
int nextIndex,
SessionImplementor session)
|
protected abstract void |
doProcessQueuedOps(PersistentCollection collection,
java.io.Serializable key,
SessionImplementor session) |
protected abstract int |
doUpdateRows(java.io.Serializable key,
PersistentCollection collection,
SessionImplementor session) |
boolean |
elementExists(java.io.Serializable key,
java.lang.Object element,
SessionImplementor session) |
protected java.lang.String |
filterFragment(java.lang.String alias) |
java.lang.String |
filterFragment(java.lang.String alias,
java.util.Map enabledFilters)
Get the where clause filter, given a query alias and considering enabled session filters
|
java.lang.String |
filterFragment(java.lang.String alias,
java.util.Map enabledFilters,
java.util.Set<java.lang.String> treatAsDeclarations)
Get the where clause filter, given a query alias and considering enabled session filters
|
protected java.lang.String |
filterFragment(java.lang.String alias,
java.util.Set<java.lang.String> treatAsDeclarations) |
protected abstract java.lang.String |
generateDeleteRowString() |
protected abstract java.lang.String |
generateDeleteString() |
protected java.lang.String |
generateDetectRowByElementString() |
protected java.lang.String |
generateDetectRowByIndexString() |
protected abstract java.lang.String |
generateInsertRowString() |
protected SelectFragment |
generateSelectFragment(java.lang.String alias,
java.lang.String columnSuffix) |
protected java.lang.String |
generateSelectRowByIndexString() |
protected java.lang.String |
generateSelectSizeString(boolean isIntegerIndexed) |
protected abstract java.lang.String |
generateUpdateRowString() |
protected CollectionInitializer |
getAppropriateInitializer(java.io.Serializable key,
SessionImplementor session) |
int |
getBatchSize() |
CollectionRegionAccessStrategy |
getCacheAccessStrategy()
Get the cache
|
CacheEntryStructure |
getCacheEntryStructure()
Get the cache structure
|
CollectionMetadata |
getCollectionMetadata() |
CollectionPersister |
getCollectionPersister() |
java.lang.String[] |
getCollectionPropertyColumnAliases(java.lang.String propertyName,
java.lang.String suffix) |
java.io.Serializable[] |
getCollectionSpaces()
Get the "space" that holds the persistent state
|
CollectionType |
getCollectionType()
Get the associated Type
|
protected ExecuteUpdateResultCheckStyle |
getDeleteAllCheckStyle() |
protected ExecuteUpdateResultCheckStyle |
getDeleteCheckStyle() |
protected Dialect |
getDialect() |
java.lang.Object |
getElementByIndex(java.io.Serializable key,
java.lang.Object index,
SessionImplementor session,
java.lang.Object owner) |
java.lang.Class |
getElementClass()
Return the element class of an array, or null otherwise.
|
java.lang.String[] |
getElementColumnAliases(java.lang.String suffix)
Generates the collection's element column aliases, based on the given
suffix.
|
java.lang.String[] |
getElementColumnNames()
Get the names of the collection element columns (or the primary
key columns in the case of a one-to-many association)
|
java.lang.String[] |
getElementColumnNames(java.lang.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 alias
|
CollectionElementDefinition |
getElementDefinition() |
EntityPersister |
getElementPersister()
Get the persister of the element class, if this is a
collection of entities (optional operation).
|
Type |
getElementType()
The collection element type
|
SessionFactoryImplementor |
getFactory() |
FetchMode |
getFetchMode()
Should we load this collection role by outerjoining?
|
abstract FilterAliasGenerator |
getFilterAliasGenerator(java.lang.String rootAlias) |
java.lang.String |
getIdentifierColumnAlias(java.lang.String suffix)
Generates the collection's identifier column aliases, based on the given
suffix.
|
java.lang.String |
getIdentifierColumnName() |
IdentifierGenerator |
getIdentifierGenerator()
Get the surrogate key generation strategy (optional operation)
|
Type |
getIdentifierType()
Get the type of the surrogate key
|
java.lang.String[] |
getIndexColumnAliases(java.lang.String suffix)
Generates the collection's index column aliases, based on the given
suffix.
|
java.lang.String[] |
getIndexColumnNames()
Get the names of the collection index columns if
this is an indexed collection (optional operation)
|
java.lang.String[] |
getIndexColumnNames(java.lang.String alias)
Get the names of the collection index columns if
this is an indexed collection (optional operation),
aliased by the given table alias
|
CollectionIndexDefinition |
getIndexDefinition() |
java.lang.String[] |
getIndexFormulas()
Get the index formulas if this is an indexed collection
(optional operation)
|
Type |
getIndexType()
The collection index type (or null if the collection has no index)
|
CollectionInitializer |
getInitializer()
Intended for internal use only.
|
protected ExecuteUpdateResultCheckStyle |
getInsertCheckStyle() |
java.lang.String[] |
getKeyColumnAliases(java.lang.String suffix)
Generates the collection's key column aliases, based on the given
suffix.
|
java.lang.String[] |
getKeyColumnNames()
The columns to join on
|
Type |
getKeyType()
The collection key type
|
java.lang.String |
getManyToManyFilterFragment(java.lang.String alias,
java.util.Map enabledFilters) |
java.lang.String |
getManyToManyOrderByString(java.lang.String alias)
Get the order-by to be applied at the target table of a many to many
|
java.lang.String |
getMappedByProperty() |
java.lang.String |
getName()
An identifying name; a class name or collection role name.
|
java.lang.String |
getOwnerEntityName() |
EntityPersister |
getOwnerEntityPersister()
Get the persister of the entity that "owns" this collection
|
java.lang.String |
getRole()
The name of this collection role
|
int |
getSize(java.io.Serializable key,
SessionImplementor session) |
protected java.lang.String |
getSQLDeleteRowString() |
protected java.lang.String |
getSQLDeleteString() |
protected SQLExceptionConverter |
getSQLExceptionConverter() |
protected SqlExceptionHelper |
getSQLExceptionHelper() |
protected java.lang.String |
getSQLInsertRowString() |
java.lang.String |
getSQLOrderByString(java.lang.String alias)
Get the order by SQL
|
protected java.lang.String |
getSQLUpdateRowString() |
protected java.lang.String |
getSQLWhereString(java.lang.String alias) |
java.lang.String |
getTableName()
The table to join to.
|
Type |
getType()
Get the type of the thing containing the properties
|
protected ExecuteUpdateResultCheckStyle |
getUpdateCheckStyle() |
boolean |
hasCache()
Is this collection role cacheable
|
boolean |
hasIndex()
Is this collection indexed?
|
boolean |
hasManyToManyOrdering() |
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.)
|
boolean |
hasOrphanDelete()
Does this collection implement "orphan delete"?
|
boolean |
hasWhere()
Does this collection role have a where clause filter?
|
protected java.lang.Object |
incrementIndexByBase(java.lang.Object index) |
boolean |
indexExists(java.io.Serializable key,
java.lang.Object index,
SessionImplementor session) |
void |
initCollectionPropertyMap() |
void |
initialize(java.io.Serializable key,
SessionImplementor session)
Initialize the given collection with the given key
|
void |
insertRows(PersistentCollection collection,
java.io.Serializable id,
SessionImplementor session)
Insert the persistent state of any new collection elements
|
boolean |
isAffectedByEnabledFilters(SessionImplementor session) |
boolean |
isArray()
Is the collection an array?
|
boolean |
isCollection()
Is this instance actually a CollectionPersister?
|
protected boolean |
isDeleteAllCallable() |
protected boolean |
isDeleteCallable() |
boolean |
isExtraLazy() |
protected boolean |
isInsertCallable() |
boolean |
isInverse()
Is this collection "inverse", so state changes are not
propogated to the database.
|
boolean |
isLazy()
Is the collection lazily initialized?
|
abstract 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.
|
boolean |
isMutable()
Can the elements of this collection change?
|
boolean |
isPrimitiveArray()
Is the collection a primitive array?
|
protected boolean |
isRowDeleteEnabled() |
protected boolean |
isRowInsertEnabled() |
boolean |
isSubselectLoadable() |
protected boolean |
isUpdateCallable() |
boolean |
isVersioned()
Does this collection cause version increment of the
owning entity?
|
protected void |
logStaticSQL() |
java.lang.String |
oneToManyFilterFragment(java.lang.String alias) |
java.lang.String |
oneToManyFilterFragment(java.lang.String alias,
java.util.Set<java.lang.String> treatAsDeclarations) |
void |
postInstantiate() |
void |
processQueuedOps(PersistentCollection collection,
java.io.Serializable key,
SessionImplementor session)
Process queued operations within the PersistentCollection.
|
java.lang.Object |
readElement(java.sql.ResultSet rs,
java.lang.Object owner,
java.lang.String[] aliases,
SessionImplementor session)
Read the element from a row of the JDBC ResultSet
|
java.lang.Object |
readIdentifier(java.sql.ResultSet rs,
java.lang.String alias,
SessionImplementor session)
Read the identifier from a row of the JDBC ResultSet
|
java.lang.Object |
readIndex(java.sql.ResultSet rs,
java.lang.String[] aliases,
SessionImplementor session)
Read the index from a row of the JDBC ResultSet
|
java.lang.Object |
readKey(java.sql.ResultSet rs,
java.lang.String[] aliases,
SessionImplementor session)
Read the key from a row of the JDBC ResultSet
|
void |
recreate(PersistentCollection collection,
java.io.Serializable id,
SessionImplementor session)
(Re)create the collection's persistent state
|
void |
remove(java.io.Serializable id,
SessionImplementor session)
Completely remove the persistent state of the collection
|
java.lang.String |
selectFragment(java.lang.String alias,
java.lang.String columnSuffix)
Generate a list of collection index, key and element columns
|
java.lang.String[] |
toColumns(java.lang.String propertyName)
Given a property path, return the corresponding column name(s).
|
java.lang.String[] |
toColumns(java.lang.String alias,
java.lang.String propertyName)
Obtain aliased column/formula fragments for the specified property path.
|
java.lang.String |
toString() |
Type |
toType(java.lang.String propertyName)
Given a component path expression, get the type of the property
|
void |
updateRows(PersistentCollection collection,
java.io.Serializable id,
SessionImplementor session)
Update the persistent state of any elements that were modified
|
protected int |
writeElement(java.sql.PreparedStatement st,
java.lang.Object elt,
int i,
SessionImplementor session)
Write the element to a JDBC PreparedStatement
|
protected int |
writeElementToWhere(java.sql.PreparedStatement st,
java.lang.Object elt,
int i,
SessionImplementor session)
Write the element to a JDBC PreparedStatement
|
int |
writeIdentifier(java.sql.PreparedStatement st,
java.lang.Object id,
int i,
SessionImplementor session)
Write the identifier to a JDBC PreparedStatement
|
protected int |
writeIndex(java.sql.PreparedStatement st,
java.lang.Object index,
int i,
SessionImplementor session)
Write the index to a JDBC PreparedStatement
|
protected int |
writeIndexToWhere(java.sql.PreparedStatement st,
java.lang.Object index,
int i,
SessionImplementor session)
Write the index to a JDBC PreparedStatement
|
protected int |
writeKey(java.sql.PreparedStatement st,
java.io.Serializable key,
int i,
SessionImplementor session)
Write the key to a JDBC PreparedStatement
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitconsumesCollectionAlias, consumesEntityAlias, fromJoinFragment, fromJoinFragment, selectFragment, whereJoinFragment, whereJoinFragmentisCascadeDeleteEnabled, isOneToManyprotected final boolean hasWhere
protected final java.lang.String sqlWhereString
protected final boolean indexContainsFormula
protected final boolean elementIsPureFormula
protected final Type elementType
protected final java.lang.String[] keyColumnNames
protected final java.lang.String[] indexColumnNames
protected final java.lang.String[] indexFormulaTemplates
protected final java.lang.String[] indexFormulas
protected final boolean[] indexColumnIsGettable
protected final boolean[] indexColumnIsSettable
protected final java.lang.String[] elementColumnNames
protected final java.lang.String[] elementColumnWriters
protected final java.lang.String[] elementColumnReaders
protected final java.lang.String[] elementColumnReaderTemplates
protected final java.lang.String[] elementFormulaTemplates
protected final java.lang.String[] elementFormulas
protected final boolean[] elementColumnIsSettable
protected final boolean[] elementColumnIsInPrimaryKey
protected final java.lang.String[] indexColumnAliases
protected final java.lang.String[] elementColumnAliases
protected final java.lang.String[] keyColumnAliases
protected final java.lang.String identifierColumnName
protected final java.lang.String qualifiedTableName
protected final boolean hasIndex
protected final boolean hasIdentifier
protected final boolean isInverse
protected final int batchSize
protected final SqlExceptionHelper sqlExceptionHelper
protected BasicBatchKey recreateBatchKey
public AbstractCollectionPersister(Collection collectionBinding, CollectionRegionAccessStrategy cacheAccessStrategy, PersisterCreationContext creationContext) throws MappingException, CacheException
MappingExceptionCacheExceptionprotected java.lang.String determineTableName(Table table, JdbcEnvironment jdbcEnvironment)
public void postInstantiate()
throws MappingException
postInstantiate in interface CollectionPersisterMappingExceptionprotected void logStaticSQL()
public void initialize(java.io.Serializable key,
SessionImplementor session)
throws HibernateException
CollectionPersisterinitialize in interface CollectionPersisterHibernateExceptionprotected CollectionInitializer getAppropriateInitializer(java.io.Serializable key, SessionImplementor session)
protected abstract CollectionInitializer createSubselectInitializer(SubselectFetch subselect, SessionImplementor session)
protected abstract CollectionInitializer createCollectionInitializer(LoadQueryInfluencers loadQueryInfluencers) throws MappingException
MappingExceptionpublic CollectionRegionAccessStrategy getCacheAccessStrategy()
CollectionPersistergetCacheAccessStrategy in interface CollectionPersisterpublic boolean hasCache()
CollectionPersisterhasCache in interface CollectionPersisterpublic CollectionType getCollectionType()
CollectionPersistergetCollectionType in interface CollectionPersistergetCollectionType in interface CollectionDefinitionprotected java.lang.String getSQLWhereString(java.lang.String alias)
public java.lang.String getSQLOrderByString(java.lang.String alias)
QueryableCollectiongetSQLOrderByString in interface QueryableCollectionpublic java.lang.String getManyToManyOrderByString(java.lang.String alias)
QueryableCollectiongetManyToManyOrderByString in interface QueryableCollectionalias - The alias for the many-to-many target tablepublic FetchMode getFetchMode()
QueryableCollectiongetFetchMode in interface QueryableCollectionpublic boolean hasOrdering()
CollectionPersisterhasOrdering in interface CollectionPersisterpublic boolean hasManyToManyOrdering()
hasManyToManyOrdering in interface CollectionPersisterpublic boolean hasWhere()
QueryableCollectionhasWhere in interface QueryableCollectionprotected java.lang.String getSQLDeleteString()
protected java.lang.String getSQLInsertRowString()
protected java.lang.String getSQLUpdateRowString()
protected java.lang.String getSQLDeleteRowString()
public Type getKeyType()
CollectionMetadatagetKeyType in interface CollectionMetadatagetKeyType in interface CollectionPersisterpublic Type getIndexType()
CollectionMetadatagetIndexType in interface CollectionMetadatagetIndexType in interface CollectionPersisterpublic Type getElementType()
CollectionMetadatagetElementType in interface CollectionMetadatagetElementType in interface CollectionPersisterpublic java.lang.Class getElementClass()
getElementClass in interface CollectionPersisterpublic java.lang.Object readElement(java.sql.ResultSet rs,
java.lang.Object owner,
java.lang.String[] aliases,
SessionImplementor session)
throws HibernateException,
java.sql.SQLException
CollectionPersisterreadElement in interface CollectionPersisterHibernateExceptionjava.sql.SQLExceptionpublic java.lang.Object readIndex(java.sql.ResultSet rs,
java.lang.String[] aliases,
SessionImplementor session)
throws HibernateException,
java.sql.SQLException
CollectionPersisterreadIndex in interface CollectionPersisterHibernateExceptionjava.sql.SQLExceptionprotected java.lang.Object decrementIndexByBase(java.lang.Object index)
public java.lang.Object readIdentifier(java.sql.ResultSet rs,
java.lang.String alias,
SessionImplementor session)
throws HibernateException,
java.sql.SQLException
CollectionPersisterreadIdentifier in interface CollectionPersisterHibernateExceptionjava.sql.SQLExceptionpublic java.lang.Object readKey(java.sql.ResultSet rs,
java.lang.String[] aliases,
SessionImplementor session)
throws HibernateException,
java.sql.SQLException
CollectionPersisterreadKey in interface CollectionPersisterHibernateExceptionjava.sql.SQLExceptionprotected int writeKey(java.sql.PreparedStatement st,
java.io.Serializable key,
int i,
SessionImplementor session)
throws HibernateException,
java.sql.SQLException
HibernateExceptionjava.sql.SQLExceptionprotected int writeElement(java.sql.PreparedStatement st,
java.lang.Object elt,
int i,
SessionImplementor session)
throws HibernateException,
java.sql.SQLException
HibernateExceptionjava.sql.SQLExceptionprotected int writeIndex(java.sql.PreparedStatement st,
java.lang.Object index,
int i,
SessionImplementor session)
throws HibernateException,
java.sql.SQLException
HibernateExceptionjava.sql.SQLExceptionprotected java.lang.Object incrementIndexByBase(java.lang.Object index)
protected int writeElementToWhere(java.sql.PreparedStatement st,
java.lang.Object elt,
int i,
SessionImplementor session)
throws HibernateException,
java.sql.SQLException
HibernateExceptionjava.sql.SQLExceptionprotected int writeIndexToWhere(java.sql.PreparedStatement st,
java.lang.Object index,
int i,
SessionImplementor session)
throws HibernateException,
java.sql.SQLException
HibernateExceptionjava.sql.SQLExceptionpublic int writeIdentifier(java.sql.PreparedStatement st,
java.lang.Object id,
int i,
SessionImplementor session)
throws HibernateException,
java.sql.SQLException
HibernateExceptionjava.sql.SQLExceptionpublic boolean isPrimitiveArray()
CollectionMetadataisPrimitiveArray in interface CollectionMetadataisPrimitiveArray in interface CollectionPersisterpublic boolean isArray()
CollectionMetadataisArray in interface CollectionMetadataisArray in interface CollectionPersisterpublic java.lang.String[] getKeyColumnAliases(java.lang.String suffix)
CollectionPersistergetKeyColumnAliases in interface CollectionPersistersuffix - The suffix to use in the key column alias generation.public java.lang.String[] getElementColumnAliases(java.lang.String suffix)
CollectionPersistergetElementColumnAliases in interface CollectionPersistersuffix - The suffix to use in the element column alias generation.public java.lang.String[] getIndexColumnAliases(java.lang.String suffix)
CollectionPersistergetIndexColumnAliases in interface CollectionPersistersuffix - The suffix to use in the index column alias generation.public java.lang.String getIdentifierColumnAlias(java.lang.String suffix)
CollectionPersistergetIdentifierColumnAlias in interface CollectionPersistersuffix - The suffix to use in the key column alias generation.public java.lang.String getIdentifierColumnName()
getIdentifierColumnName in interface SQLLoadableCollectionpublic java.lang.String selectFragment(java.lang.String alias,
java.lang.String columnSuffix)
selectFragment in interface QueryableCollectionprotected java.lang.String generateSelectSizeString(boolean isIntegerIndexed)
protected java.lang.String generateDetectRowByIndexString()
protected java.lang.String generateSelectRowByIndexString()
protected java.lang.String generateDetectRowByElementString()
protected SelectFragment generateSelectFragment(java.lang.String alias, java.lang.String columnSuffix)
protected void appendElementColumns(SelectFragment frag, java.lang.String elemAlias)
protected void appendIndexColumns(SelectFragment frag, java.lang.String alias)
protected void appendIdentifierColumns(SelectFragment frag, java.lang.String alias)
public java.lang.String[] getIndexColumnNames()
QueryableCollectiongetIndexColumnNames in interface QueryableCollectionpublic java.lang.String[] getIndexFormulas()
QueryableCollectiongetIndexFormulas in interface QueryableCollectionpublic java.lang.String[] getIndexColumnNames(java.lang.String alias)
QueryableCollectiongetIndexColumnNames in interface QueryableCollectionpublic java.lang.String[] getElementColumnNames(java.lang.String alias)
QueryableCollectiongetElementColumnNames in interface QueryableCollectionpublic java.lang.String[] getElementColumnNames()
QueryableCollectiongetElementColumnNames in interface QueryableCollectionpublic java.lang.String[] getKeyColumnNames()
JoinablegetKeyColumnNames in interface Joinablepublic boolean hasIndex()
CollectionMetadatahasIndex in interface CollectionMetadatahasIndex in interface CollectionPersisterpublic boolean isLazy()
CollectionMetadataisLazy in interface CollectionMetadataisLazy in interface CollectionPersisterpublic boolean isInverse()
CollectionPersisterisInverse in interface CollectionPersisterpublic java.lang.String getTableName()
JoinablegetTableName in interface Joinablepublic void remove(java.io.Serializable id,
SessionImplementor session)
throws HibernateException
CollectionPersisterremove in interface CollectionPersisterHibernateExceptionpublic void recreate(PersistentCollection collection, java.io.Serializable id, SessionImplementor session) throws HibernateException
CollectionPersisterrecreate in interface CollectionPersisterHibernateExceptionprotected boolean isRowDeleteEnabled()
public void deleteRows(PersistentCollection collection, java.io.Serializable id, SessionImplementor session) throws HibernateException
CollectionPersisterdeleteRows in interface CollectionPersisterHibernateExceptionprotected boolean isRowInsertEnabled()
public void insertRows(PersistentCollection collection, java.io.Serializable id, SessionImplementor session) throws HibernateException
CollectionPersisterinsertRows in interface CollectionPersisterHibernateExceptionpublic java.lang.String getRole()
CollectionMetadatagetRole in interface CollectionMetadatagetRole in interface CollectionPersisterpublic java.lang.String getOwnerEntityName()
public EntityPersister getOwnerEntityPersister()
CollectionPersistergetOwnerEntityPersister in interface CollectionPersisterpublic IdentifierGenerator getIdentifierGenerator()
CollectionPersistergetIdentifierGenerator in interface CollectionPersisterpublic Type getIdentifierType()
CollectionPersistergetIdentifierType in interface CollectionPersisterpublic boolean hasOrphanDelete()
CollectionPersisterhasOrphanDelete in interface CollectionPersisterpublic Type toType(java.lang.String propertyName) throws QueryException
PropertyMappingtoType in interface PropertyMappingQueryExceptionpublic abstract boolean isManyToMany()
CollectionPersisterisManyToMany in interface CollectionPersisterpublic java.lang.String getManyToManyFilterFragment(java.lang.String alias,
java.util.Map enabledFilters)
getManyToManyFilterFragment in interface CollectionPersisterpublic java.lang.String[] toColumns(java.lang.String alias,
java.lang.String propertyName)
throws QueryException
PropertyMappingtoColumns in interface PropertyMappingQueryExceptionpublic java.lang.String[] toColumns(java.lang.String propertyName)
throws QueryException
PropertyMappingtoColumns in interface PropertyMappingQueryExceptionpublic Type getType()
PropertyMappinggetType in interface PropertyMappingpublic java.lang.String getName()
Joinablepublic EntityPersister getElementPersister()
QueryableCollectiongetElementPersister in interface QueryableCollectionpublic boolean isCollection()
JoinableisCollection in interface Joinablepublic java.io.Serializable[] getCollectionSpaces()
CollectionPersistergetCollectionSpaces in interface CollectionPersisterprotected abstract java.lang.String generateDeleteString()
protected abstract java.lang.String generateDeleteRowString()
protected abstract java.lang.String generateUpdateRowString()
protected abstract java.lang.String generateInsertRowString()
public void updateRows(PersistentCollection collection, java.io.Serializable id, SessionImplementor session) throws HibernateException
CollectionPersisterupdateRows in interface CollectionPersisterHibernateExceptionprotected abstract int doUpdateRows(java.io.Serializable key,
PersistentCollection collection,
SessionImplementor session)
throws HibernateException
HibernateExceptionpublic void processQueuedOps(PersistentCollection collection, java.io.Serializable key, SessionImplementor session) throws HibernateException
CollectionPersisterprocessQueuedOps in interface CollectionPersisterHibernateException@Deprecated protected void doProcessQueuedOps(PersistentCollection collection, java.io.Serializable key, int nextIndex, SessionImplementor session) throws HibernateException
doProcessQueuedOps(org.hibernate.collection.spi.PersistentCollection, java.io.Serializable, org.hibernate.engine.spi.SessionImplementor)collection - The collectionkey - The collection keynextIndex - The next index to writesession - The sessionHibernateExceptionprotected abstract void doProcessQueuedOps(PersistentCollection collection, java.io.Serializable key, SessionImplementor session) throws HibernateException
HibernateExceptionpublic CollectionMetadata getCollectionMetadata()
getCollectionMetadata in interface CollectionPersisterpublic SessionFactoryImplementor getFactory()
getFactory in interface CollectionPersisterprotected java.lang.String filterFragment(java.lang.String alias)
throws MappingException
MappingExceptionprotected java.lang.String filterFragment(java.lang.String alias,
java.util.Set<java.lang.String> treatAsDeclarations)
throws MappingException
MappingExceptionpublic java.lang.String filterFragment(java.lang.String alias,
java.util.Map enabledFilters)
throws MappingException
JoinablefilterFragment in interface JoinableMappingExceptionpublic java.lang.String filterFragment(java.lang.String alias,
java.util.Map enabledFilters,
java.util.Set<java.lang.String> treatAsDeclarations)
JoinablefilterFragment in interface Joinablepublic java.lang.String oneToManyFilterFragment(java.lang.String alias)
throws MappingException
oneToManyFilterFragment in interface JoinableMappingExceptionpublic java.lang.String oneToManyFilterFragment(java.lang.String alias,
java.util.Set<java.lang.String> treatAsDeclarations)
oneToManyFilterFragment in interface Joinableprotected boolean isInsertCallable()
protected ExecuteUpdateResultCheckStyle getInsertCheckStyle()
protected boolean isUpdateCallable()
protected ExecuteUpdateResultCheckStyle getUpdateCheckStyle()
protected boolean isDeleteCallable()
protected ExecuteUpdateResultCheckStyle getDeleteCheckStyle()
protected boolean isDeleteAllCallable()
protected ExecuteUpdateResultCheckStyle getDeleteAllCheckStyle()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean isVersioned()
CollectionPersisterisVersioned in interface CollectionPersisterprotected SQLExceptionConverter getSQLExceptionConverter()
protected SqlExceptionHelper getSQLExceptionHelper()
public CacheEntryStructure getCacheEntryStructure()
CollectionPersistergetCacheEntryStructure in interface CollectionPersisterpublic boolean isAffectedByEnabledFilters(SessionImplementor session)
isAffectedByEnabledFilters in interface CollectionPersisterpublic boolean isSubselectLoadable()
public boolean isMutable()
CollectionPersisterisMutable in interface CollectionPersisterpublic java.lang.String[] getCollectionPropertyColumnAliases(java.lang.String propertyName,
java.lang.String suffix)
getCollectionPropertyColumnAliases in interface SQLLoadableCollectionpublic void initCollectionPropertyMap()
public int getSize(java.io.Serializable key,
SessionImplementor session)
getSize in interface CollectionPersisterpublic boolean indexExists(java.io.Serializable key,
java.lang.Object index,
SessionImplementor session)
indexExists in interface CollectionPersisterpublic boolean elementExists(java.io.Serializable key,
java.lang.Object element,
SessionImplementor session)
elementExists in interface CollectionPersisterpublic java.lang.Object getElementByIndex(java.io.Serializable key,
java.lang.Object index,
SessionImplementor session,
java.lang.Object owner)
getElementByIndex in interface CollectionPersisterpublic boolean isExtraLazy()
isExtraLazy in interface CollectionPersisterprotected Dialect getDialect()
public CollectionInitializer getInitializer()
public int getBatchSize()
getBatchSize in interface CollectionPersisterpublic java.lang.String getMappedByProperty()
getMappedByProperty in interface CollectionPersisterpublic abstract FilterAliasGenerator getFilterAliasGenerator(java.lang.String rootAlias)
public CollectionPersister getCollectionPersister()
getCollectionPersister in interface CollectionDefinitionpublic CollectionIndexDefinition getIndexDefinition()
getIndexDefinition in interface CollectionDefinitionpublic CollectionElementDefinition getElementDefinition()
getElementDefinition in interface CollectionDefinitionCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.