Class Hibernate6BatchProcessor
java.lang.Object
com.atlassian.crowd.util.persistence.hibernate.batch.AbstractBatchProcessor<T>
com.atlassian.crowd.util.persistence.hibernate.batch.hibernate6.AbstractHibernateBatchProcessor<org.hibernate.Session>
com.atlassian.crowd.util.persistence.hibernate.batch.hibernate6.Hibernate6BatchProcessor
- All Implemented Interfaces:
BatchProcessor<org.hibernate.Session>
,SessionBatchProcessor
public class Hibernate6BatchProcessor
extends AbstractHibernateBatchProcessor<org.hibernate.Session>
implements SessionBatchProcessor
The Hibernate 6 implementation of the batch processor runs each collection in a new session, and each batch in
a separate transaction.
-
Field Summary
Fields inherited from class com.atlassian.crowd.util.persistence.hibernate.batch.hibernate6.AbstractHibernateBatchProcessor
sessionFactory
Fields inherited from class com.atlassian.crowd.util.persistence.hibernate.batch.AbstractBatchProcessor
batchSize, log
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
auditOperations
(List<AuditLogChangesetEntity> changesetEntities) protected void
protected void
protected void
protected org.hibernate.Session
Subclasses should use this method to provide the session to be used with any implementations ofHibernateOperation
.protected org.hibernate.Session
Methods inherited from class com.atlassian.crowd.util.persistence.hibernate.batch.hibernate6.AbstractHibernateBatchProcessor
afterProcessBatch, afterProcessCollection, afterProcessIndividual, beforeProcessBatch, beforeProcessCollection, beforeProcessIndividual, commitTransaction, rollbackProcessBatch, rollbackProcessIndividual, rollbackTransaction, startTransaction
Methods inherited from class com.atlassian.crowd.util.persistence.hibernate.batch.AbstractBatchProcessor
execute, execute, setBatchSize
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.atlassian.crowd.util.persistence.hibernate.batch.BatchProcessor
execute, execute
-
Constructor Details
-
Hibernate6BatchProcessor
public Hibernate6BatchProcessor(org.hibernate.SessionFactory sessionFactory)
-
-
Method Details
-
auditOperations
- Specified by:
auditOperations
in classAbstractBatchProcessor<org.hibernate.Session>
-
getSession
protected org.hibernate.Session getSession()Description copied from class:AbstractBatchProcessor
Subclasses should use this method to provide the session to be used with any implementations ofHibernateOperation
.- Specified by:
getSession
in classAbstractBatchProcessor<org.hibernate.Session>
-
clearSession
protected void clearSession()- Specified by:
clearSession
in classAbstractHibernateBatchProcessor<org.hibernate.Session>
-
closeSession
protected void closeSession()- Specified by:
closeSession
in classAbstractHibernateBatchProcessor<org.hibernate.Session>
-
flushSession
protected void flushSession()- Specified by:
flushSession
in classAbstractHibernateBatchProcessor<org.hibernate.Session>
-
openSession
protected org.hibernate.Session openSession()- Specified by:
openSession
in classAbstractHibernateBatchProcessor<org.hibernate.Session>
-