public class OgmCollectionPersister extends AbstractCollectionPersister implements CollectionPhysicalModel
| Constructor and Description |
|---|
OgmCollectionPersister(Collection collection,
CollectionRegionAccessStrategy cacheAccessStrategy,
PersisterCreationContext persisterCreationContext) |
elementExists, filterFragment, filterFragment, getBatchSize, getCacheAccessStrategy, getCacheEntryStructure, getCollectionMetadata, getCollectionPersister, getCollectionPropertyColumnAliases, getCollectionSpaces, getCollectionType, getElementByIndex, getElementClass, getElementColumnAliases, getElementColumnNames, getElementColumnNames, getElementDefinition, getElementPersister, getElementType, getFactory, getFetchMode, getIdentifierColumnAlias, getIdentifierColumnName, getIdentifierGenerator, getIdentifierType, getIndexColumnAliases, getIndexColumnNames, getIndexColumnNames, getIndexDefinition, getIndexFormulas, getIndexType, getInitializer, getKeyColumnAliases, getKeyColumnNames, getKeyType, getManyToManyFilterFragment, getManyToManyOrderByString, getMappedByProperty, getName, getOwnerEntityName, getOwnerEntityPersister, getRole, getSQLOrderByString, getTableName, getType, hasCache, hasIndex, hasManyToManyOrdering, hasOrdering, hasOrphanDelete, hasWhere, indexExists, initCollectionPropertyMap, initialize, isAffectedByEnabledFilters, isArray, isCollection, isExtraLazy, isInverse, isLazy, isMutable, isPrimitiveArray, isSubselectLoadable, isVersioned, oneToManyFilterFragment, oneToManyFilterFragment, processQueuedOps, selectFragment, toColumns, toColumns, toString, toType, updateRows, writeIdentifierequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetElementColumnNames, getIdentifierColumnName, getIndexColumnNames, getKeyColumnNames, getTableNameelementExists, getBatchSize, getCacheAccessStrategy, getCacheEntryStructure, getCollectionMetadata, getCollectionSpaces, getCollectionType, getElementByIndex, getElementClass, getElementColumnAliases, getElementType, getFactory, getIdentifierColumnAlias, getIdentifierGenerator, getIdentifierType, getIndexColumnAliases, getIndexType, getKeyColumnAliases, getKeyType, getManyToManyFilterFragment, getMappedByProperty, getOwnerEntityPersister, getRole, hasCache, hasIndex, hasManyToManyOrdering, hasOrdering, hasOrphanDelete, indexExists, initialize, isAffectedByEnabledFilters, isArray, isExtraLazy, isInverse, isLazy, isMutable, isPrimitiveArray, isVersioned, processQueuedOps, updateRowsgetCollectionPersister, getElementDefinition, getIndexDefinitionpublic OgmCollectionPersister(Collection collection, CollectionRegionAccessStrategy cacheAccessStrategy, PersisterCreationContext persisterCreationContext) throws MappingException, CacheException
MappingExceptionCacheExceptionpublic String getUnqualifiedRole()
public AssociationKeyMetadata getAssociationKeyMetadata()
public Object readKey(ResultSet rs, String[] aliases, SessionImplementor session) throws HibernateException, SQLException
readKey in interface CollectionPersisterreadKey in class AbstractCollectionPersisterHibernateExceptionSQLExceptionpublic Object readElement(ResultSet rs, Object owner, String[] aliases, SessionImplementor session) throws HibernateException, SQLException
readElement in interface CollectionPersisterreadElement in class AbstractCollectionPersisterHibernateExceptionSQLExceptionpublic Object readIdentifier(ResultSet rs, String alias, SessionImplementor session) throws HibernateException, SQLException
readIdentifier in interface CollectionPersisterreadIdentifier in class AbstractCollectionPersisterHibernateExceptionSQLExceptionpublic Object readIndex(ResultSet rs, String[] aliases, SessionImplementor session) throws HibernateException, SQLException
readIndex in interface CollectionPersisterreadIndex in class AbstractCollectionPersisterHibernateExceptionSQLExceptionpublic GridType getKeyGridType()
getKeyGridType in interface CollectionPhysicalModelpublic GridType getElementGridType()
getElementGridType in interface CollectionPhysicalModelpublic boolean isOneToMany()
isOneToMany in interface CollectionPersisterpublic boolean isManyToMany()
isManyToMany in interface CollectionPersisterisManyToMany in class AbstractCollectionPersisterpublic boolean isCascadeDeleteEnabled()
isCascadeDeleteEnabled in interface CollectionPersisterpublic int getSize(Serializable key, SessionImplementor session)
getSize in interface CollectionPersistergetSize in class AbstractCollectionPersisterpublic FilterAliasGenerator getFilterAliasGenerator(String rootAlias)
getFilterAliasGenerator in class AbstractCollectionPersisterpublic void deleteRows(PersistentCollection collection, Serializable id, SessionImplementor session) throws HibernateException
deleteRows in interface CollectionPersisterdeleteRows in class AbstractCollectionPersisterHibernateExceptionpublic void insertRows(PersistentCollection collection, Serializable id, SessionImplementor session) throws HibernateException
insertRows in interface CollectionPersisterinsertRows in class AbstractCollectionPersisterHibernateExceptionpublic void recreate(PersistentCollection collection, Serializable id, SessionImplementor session) throws HibernateException
recreate in interface CollectionPersisterrecreate in class AbstractCollectionPersisterHibernateExceptionpublic void remove(Serializable id, SessionImplementor session) throws HibernateException
remove in interface CollectionPersisterremove in class AbstractCollectionPersisterHibernateExceptionpublic String selectFragment(Joinable rhs, String rhsAlias, String lhsAlias, String currentEntitySuffix, String currentCollectionSuffix, boolean includeCollectionColumns)
selectFragment in interface Joinablepublic String whereJoinFragment(String alias, boolean innerJoin, boolean includeSubclasses)
whereJoinFragment in interface Joinablepublic String fromJoinFragment(String alias, boolean innerJoin, boolean includeSubclasses)
fromJoinFragment in interface Joinablepublic boolean consumesEntityAlias()
consumesEntityAlias in interface Joinablepublic boolean consumesCollectionAlias()
consumesCollectionAlias in interface Joinablepublic void postInstantiate()
throws MappingException
postInstantiate in interface CollectionPersisterpostInstantiate in class AbstractCollectionPersisterMappingExceptionpublic String whereJoinFragment(String alias, boolean innerJoin, boolean includeSubclasses, Set<String> treatAsDeclarations)
whereJoinFragment in interface Joinablepublic String fromJoinFragment(String alias, boolean innerJoin, boolean includeSubclasses, Set<String> treatAsDeclarations)
fromJoinFragment in interface Joinablepublic String getMainSidePropertyName()
public AssociationTypeContext getAssociationTypeContext()
Note: Due to initialization order related constraints, this method may only be invoked after all
collection and entity persisters have been set up. Use getAssociationTypeContext(String) when in need of
a context prior to that point.
nullpublic AssociationTypeContext getAssociationTypeContext(String mainSidePropertyName)
Copyright © 2010-2017 Red Hat, Inc., Emmanuel Bernard and various contributors. All Rights Reserved.