Class ReactiveBasicCollectionPersister
- java.lang.Object
-
- org.hibernate.persister.collection.AbstractCollectionPersister
-
- org.hibernate.persister.collection.BasicCollectionPersister
-
- org.hibernate.reactive.persister.collection.impl.ReactiveBasicCollectionPersister
-
- All Implemented Interfaces:
org.hibernate.engine.profile.internal.FetchProfileAffectee
,org.hibernate.metadata.CollectionMetadata
,org.hibernate.metamodel.mapping.FilterRestrictable
,org.hibernate.metamodel.mapping.internal.PluralAttributeMappingImpl.Aware
,org.hibernate.metamodel.mapping.Restrictable
,org.hibernate.metamodel.mapping.WhereRestrictable
,org.hibernate.persister.collection.CollectionPersister
,org.hibernate.persister.collection.DeprecatedCollectionStuff
,org.hibernate.persister.collection.mutation.CollectionMutationTarget
,org.hibernate.persister.collection.QueryableCollection
,org.hibernate.persister.collection.SQLLoadableCollection
,org.hibernate.persister.entity.Joinable
,org.hibernate.persister.entity.PropertyMapping
,ReactiveAbstractCollectionPersister
,ReactiveCollectionPersister
,org.hibernate.sql.model.MutationTarget<org.hibernate.persister.collection.mutation.CollectionTableMapping>
public class ReactiveBasicCollectionPersister extends org.hibernate.persister.collection.BasicCollectionPersister implements ReactiveAbstractCollectionPersister
A reactiveBasicCollectionPersister
-
-
Field Summary
-
Fields inherited from class org.hibernate.persister.collection.AbstractCollectionPersister
batchSize, elementColumnAliases, elementColumnIsGettable, elementColumnIsSettable, elementColumnNames, elementColumnReaders, elementColumnReaderTemplates, elementColumnWriters, elementFormulas, elementFormulaTemplates, elementIsPureFormula, elementType, hasWhere, identifierColumnName, indexColumnAliases, indexColumnIsGettable, indexColumnIsSettable, indexColumnNames, indexContainsFormula, indexFormulas, indexFormulaTemplates, isInverse, keyColumnAliases, keyColumnNames, qualifiedTableName, sqlExceptionHelper, sqlWhereString
-
-
Constructor Summary
Constructors Constructor Description ReactiveBasicCollectionPersister(org.hibernate.mapping.Collection collectionBinding, org.hibernate.cache.spi.access.CollectionDataAccess cacheAccessStrategy, org.hibernate.metamodel.spi.RuntimeModelCreationContext creationContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.hibernate.loader.ast.spi.CollectionLoader
createCollectionLoader(org.hibernate.engine.spi.LoadQueryInfluencers loadQueryInfluencers)
protected org.hibernate.loader.ast.spi.CollectionLoader
createSubSelectLoader(org.hibernate.engine.spi.SubselectFetch subselect, org.hibernate.engine.spi.SharedSessionContractImplementor session)
protected ReactiveInsertRowsCoordinator
getCreateEntryCoordinator()
ReactiveRemoveCoordinator
getRemoveCoordinator()
protected ReactiveDeleteRowsCoordinator
getRemoveEntryCoordinator()
protected ReactiveUpdateRowsCoordinator
getUpdateEntryCoordinator()
boolean
isRowDeleteEnabled()
boolean
isRowInsertEnabled()
java.util.concurrent.CompletionStage<java.lang.Void>
reactiveDeleteRows(org.hibernate.collection.spi.PersistentCollection<?> collection, java.lang.Object id, org.hibernate.engine.spi.SharedSessionContractImplementor session)
Reactive version ofCollectionPersister.deleteRows(PersistentCollection, Object, SharedSessionContractImplementor)
java.util.concurrent.CompletionStage<java.lang.Void>
reactiveInitialize(java.lang.Object key, org.hibernate.engine.spi.SharedSessionContractImplementor session)
Reactive version ofCollectionPersister.initialize(Object, SharedSessionContractImplementor)
java.util.concurrent.CompletionStage<java.lang.Void>
reactiveInsertRows(org.hibernate.collection.spi.PersistentCollection<?> collection, java.lang.Object id, org.hibernate.engine.spi.SharedSessionContractImplementor session)
Reactive version ofCollectionPersister.insertRows(PersistentCollection, Object, SharedSessionContractImplementor)
java.util.concurrent.CompletionStage<java.lang.Void>
reactiveRecreate(org.hibernate.collection.spi.PersistentCollection<?> collection, java.lang.Object id, org.hibernate.engine.spi.SharedSessionContractImplementor session)
Reactive version ofCollectionPersister.recreate(PersistentCollection, Object, SharedSessionContractImplementor)
java.util.concurrent.CompletionStage<java.lang.Void>
reactiveRemove(java.lang.Object id, org.hibernate.engine.spi.SharedSessionContractImplementor session)
Reactive version ofCollectionPersister.remove(Object, SharedSessionContractImplementor)
java.util.concurrent.CompletionStage<java.lang.Void>
reactiveUpdateRows(org.hibernate.collection.spi.PersistentCollection<?> collection, java.lang.Object id, org.hibernate.engine.spi.SharedSessionContractImplementor session)
Reactive version ofCollectionPersister.updateRows(PersistentCollection, Object, SharedSessionContractImplementor)
-
Methods inherited from class org.hibernate.persister.collection.BasicCollectionPersister
buildRowMutationOperations, consumesCollectionAlias, consumesEntityAlias, deleteRows, doProcessQueuedOps, getFilterAliasGenerator, getFilterAliasGenerator, getRowMutationOperations, insertRows, isCascadeDeleteEnabled, isManyToMany, isOneToMany, recreate, updateRows
-
Methods inherited from class org.hibernate.persister.collection.AbstractCollectionPersister
applyBaseManyToManyRestrictions, applyBaseRestrictions, applyFilterRestrictions, applyWhereFragments, applyWhereRestrictions, buildDeleteAllOperation, decrementIndexByBase, determineLoaderToUse, determineTableName, elementExists, forEachMutableTable, forEachMutableTableReverse, generateDeleteAllAst, generateDetectRowByElementString, generateDetectRowByIndexString, generateSelectSizeString, getAttributeMapping, getBatchSize, getCacheAccessStrategy, getCacheEntryStructure, getCollectionMetadata, getCollectionPropertyColumnAliases, getCollectionSemantics, getCollectionSpaces, getCollectionTableMapping, getCollectionType, getDialect, getElementByIndex, getElementClass, getElementColumnAliases, getElementColumnNames, getElementColumnNames, getElementPersister, getElementPersisterInternal, getElementType, getFactory, getFetchMode, getGenerator, getIdentifierColumnAlias, getIdentifierColumnName, getIdentifierGenerator, getIdentifierTableName, getIdentifierType, getIndexColumnAliases, getIndexColumnNames, getIndexColumnNames, getIndexFormulas, getIndexType, getKeyColumnAliases, getKeyColumnNames, getKeyType, getManyToManyFilterFragment, getManyToManyOrderByString, getMappedByProperty, getName, getNavigableRole, getOwnerEntityName, getOwnerEntityPersister, getSize, getSortingComparator, getSQLExceptionHelper, getSQLOrderByString, getStandardCollectionLoader, getTableName, getTargetPart, hasCache, hasIndex, hasManyToManyOrdering, hasOrdering, hasOrphanDelete, hasPhysicalIndexColumn, hasWhere, incrementIndexByBase, indexExists, initCollectionPropertyMap, initialize, injectAttributeMapping, isAffectedByEnabledFetchProfiles, isAffectedByEnabledFilters, isAffectedByEnabledFilters, isAffectedByEntityGraph, isArray, isCollection, isExtraLazy, isInverse, isLazy, isMutable, isPrimitiveArray, isSubselectLoadable, isVersioned, logStaticSQL, needsRemove, postInstantiate, processQueuedOps, registerAffectingFetchProfile, remove, selectFragment, toColumns, toString, toType
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.hibernate.persister.collection.mutation.CollectionMutationTarget
getIdentifierTableMapping
-
Methods inherited from interface org.hibernate.persister.collection.CollectionPersister
applyBaseManyToManyRestrictions, elementExists, getAttributeMapping, getBatchSize, getCacheAccessStrategy, getCacheEntryStructure, getCollectionMetadata, getCollectionSemantics, getCollectionSpaces, getCollectionType, getElementByIndex, getElementClass, getElementColumnAliases, getElementType, getFactory, getGenerator, getIdentifierColumnAlias, getIdentifierGenerator, getIdentifierType, getIndexColumnAliases, getIndexType, getKeyColumnAliases, getKeyType, getManyToManyFilterFragment, getMappedByProperty, getNavigableRole, getOwnerEntityPersister, getSize, getSortingComparator, hasCache, hasIndex, hasManyToManyOrdering, hasOrdering, hasOrphanDelete, indexExists, isAffectedByEnabledFetchProfiles, isAffectedByEnabledFilters, isAffectedByEnabledFilters, isAffectedByEntityGraph, isArray, isCascadeDeleteEnabled, isExtraLazy, isInverse, isLazy, isManyToMany, isMutable, isOneToMany, isPrimitiveArray, isVersioned, needsRemove, postInstantiate, processQueuedOps, recreate
-
Methods inherited from interface org.hibernate.persister.collection.DeprecatedCollectionStuff
getRole
-
Methods inherited from interface org.hibernate.metamodel.mapping.FilterRestrictable
applyFilterRestrictions
-
Methods inherited from interface org.hibernate.reactive.persister.collection.impl.ReactiveAbstractCollectionPersister
generateCollectionLoader, getReactiveConnection, isCollectionLoaderReusable
-
Methods inherited from interface org.hibernate.reactive.persister.collection.impl.ReactiveCollectionPersister
deleteRows, initialize, insertRows, remove, updateRows
-
-
-
-
Constructor Detail
-
ReactiveBasicCollectionPersister
public ReactiveBasicCollectionPersister(org.hibernate.mapping.Collection collectionBinding, org.hibernate.cache.spi.access.CollectionDataAccess cacheAccessStrategy, org.hibernate.metamodel.spi.RuntimeModelCreationContext creationContext) throws org.hibernate.MappingException, org.hibernate.cache.CacheException
- Throws:
org.hibernate.MappingException
org.hibernate.cache.CacheException
-
-
Method Detail
-
createCollectionLoader
protected org.hibernate.loader.ast.spi.CollectionLoader createCollectionLoader(org.hibernate.engine.spi.LoadQueryInfluencers loadQueryInfluencers)
- Overrides:
createCollectionLoader
in classorg.hibernate.persister.collection.AbstractCollectionPersister
-
createSubSelectLoader
protected org.hibernate.loader.ast.spi.CollectionLoader createSubSelectLoader(org.hibernate.engine.spi.SubselectFetch subselect, org.hibernate.engine.spi.SharedSessionContractImplementor session)
- Overrides:
createSubSelectLoader
in classorg.hibernate.persister.collection.AbstractCollectionPersister
-
reactiveInitialize
public java.util.concurrent.CompletionStage<java.lang.Void> reactiveInitialize(java.lang.Object key, org.hibernate.engine.spi.SharedSessionContractImplementor session)
Description copied from interface:ReactiveCollectionPersister
Reactive version ofCollectionPersister.initialize(Object, SharedSessionContractImplementor)
- Specified by:
reactiveInitialize
in interfaceReactiveCollectionPersister
-
reactiveRemove
public java.util.concurrent.CompletionStage<java.lang.Void> reactiveRemove(java.lang.Object id, org.hibernate.engine.spi.SharedSessionContractImplementor session)
Description copied from interface:ReactiveCollectionPersister
Reactive version ofCollectionPersister.remove(Object, SharedSessionContractImplementor)
- Specified by:
reactiveRemove
in interfaceReactiveAbstractCollectionPersister
- Specified by:
reactiveRemove
in interfaceReactiveCollectionPersister
- See Also:
AbstractCollectionPersister.remove(Object, SharedSessionContractImplementor)
-
reactiveRecreate
public java.util.concurrent.CompletionStage<java.lang.Void> reactiveRecreate(org.hibernate.collection.spi.PersistentCollection<?> collection, java.lang.Object id, org.hibernate.engine.spi.SharedSessionContractImplementor session)
Description copied from interface:ReactiveCollectionPersister
Reactive version ofCollectionPersister.recreate(PersistentCollection, Object, SharedSessionContractImplementor)
- Specified by:
reactiveRecreate
in interfaceReactiveAbstractCollectionPersister
- Specified by:
reactiveRecreate
in interfaceReactiveCollectionPersister
- See Also:
BasicCollectionPersister.recreate(PersistentCollection, Object, SharedSessionContractImplementor)
-
reactiveInsertRows
public java.util.concurrent.CompletionStage<java.lang.Void> reactiveInsertRows(org.hibernate.collection.spi.PersistentCollection<?> collection, java.lang.Object id, org.hibernate.engine.spi.SharedSessionContractImplementor session)
Description copied from interface:ReactiveCollectionPersister
Reactive version ofCollectionPersister.insertRows(PersistentCollection, Object, SharedSessionContractImplementor)
- Specified by:
reactiveInsertRows
in interfaceReactiveAbstractCollectionPersister
- Specified by:
reactiveInsertRows
in interfaceReactiveCollectionPersister
- See Also:
CollectionPersister.insertRows(PersistentCollection, Object, SharedSessionContractImplementor)
-
reactiveUpdateRows
public java.util.concurrent.CompletionStage<java.lang.Void> reactiveUpdateRows(org.hibernate.collection.spi.PersistentCollection<?> collection, java.lang.Object id, org.hibernate.engine.spi.SharedSessionContractImplementor session)
Description copied from interface:ReactiveCollectionPersister
Reactive version ofCollectionPersister.updateRows(PersistentCollection, Object, SharedSessionContractImplementor)
- Specified by:
reactiveUpdateRows
in interfaceReactiveAbstractCollectionPersister
- Specified by:
reactiveUpdateRows
in interfaceReactiveCollectionPersister
- See Also:
CollectionPersister.updateRows(PersistentCollection, Object, SharedSessionContractImplementor)
-
reactiveDeleteRows
public java.util.concurrent.CompletionStage<java.lang.Void> reactiveDeleteRows(org.hibernate.collection.spi.PersistentCollection<?> collection, java.lang.Object id, org.hibernate.engine.spi.SharedSessionContractImplementor session)
Description copied from interface:ReactiveCollectionPersister
Reactive version ofCollectionPersister.deleteRows(PersistentCollection, Object, SharedSessionContractImplementor)
- Specified by:
reactiveDeleteRows
in interfaceReactiveAbstractCollectionPersister
- Specified by:
reactiveDeleteRows
in interfaceReactiveCollectionPersister
- See Also:
CollectionPersister.deleteRows(PersistentCollection, Object, SharedSessionContractImplementor)
-
isRowDeleteEnabled
public boolean isRowDeleteEnabled()
- Specified by:
isRowDeleteEnabled
in interfaceReactiveAbstractCollectionPersister
- Overrides:
isRowDeleteEnabled
in classorg.hibernate.persister.collection.AbstractCollectionPersister
-
isRowInsertEnabled
public boolean isRowInsertEnabled()
- Specified by:
isRowInsertEnabled
in interfaceReactiveAbstractCollectionPersister
- Overrides:
isRowInsertEnabled
in classorg.hibernate.persister.collection.AbstractCollectionPersister
-
getCreateEntryCoordinator
protected ReactiveInsertRowsCoordinator getCreateEntryCoordinator()
- Overrides:
getCreateEntryCoordinator
in classorg.hibernate.persister.collection.BasicCollectionPersister
-
getUpdateEntryCoordinator
protected ReactiveUpdateRowsCoordinator getUpdateEntryCoordinator()
- Overrides:
getUpdateEntryCoordinator
in classorg.hibernate.persister.collection.BasicCollectionPersister
-
getRemoveCoordinator
public ReactiveRemoveCoordinator getRemoveCoordinator()
- Overrides:
getRemoveCoordinator
in classorg.hibernate.persister.collection.BasicCollectionPersister
-
getRemoveEntryCoordinator
protected ReactiveDeleteRowsCoordinator getRemoveEntryCoordinator()
- Overrides:
getRemoveEntryCoordinator
in classorg.hibernate.persister.collection.BasicCollectionPersister
-
-