Class Hibernate5BatchProcessor
java.lang.Object
com.atlassian.crowd.util.persistence.hibernate.batch.AbstractBatchProcessor<T>
com.atlassian.crowd.util.persistence.hibernate.batch.hibernate5.AbstractHibernateBatchProcessor<org.hibernate.Session>
com.atlassian.crowd.util.persistence.hibernate.batch.hibernate5.Hibernate5BatchProcessor
- All Implemented Interfaces:
BatchProcessor<org.hibernate.Session>,SessionBatchProcessor
public class Hibernate5BatchProcessor
extends AbstractHibernateBatchProcessor<org.hibernate.Session>
implements SessionBatchProcessor
The Hibernate 4 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.hibernate5.AbstractHibernateBatchProcessor
sessionFactoryFields inherited from class com.atlassian.crowd.util.persistence.hibernate.batch.AbstractBatchProcessor
batchSize, log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidauditOperations(List<AuditLogChangesetEntity> changesetEntities) protected voidprotected voidprotected voidprotected org.hibernate.SessionSubclasses should use this method to provide the session to be used with any implementations ofHibernateOperation.protected org.hibernate.SessionMethods inherited from class com.atlassian.crowd.util.persistence.hibernate.batch.hibernate5.AbstractHibernateBatchProcessor
afterProcessBatch, afterProcessCollection, afterProcessIndividual, beforeProcessBatch, beforeProcessCollection, beforeProcessIndividual, commitTransaction, rollbackProcessBatch, rollbackProcessIndividual, rollbackTransaction, startTransactionMethods inherited from class com.atlassian.crowd.util.persistence.hibernate.batch.AbstractBatchProcessor
execute, execute, setBatchSizeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.crowd.util.persistence.hibernate.batch.BatchProcessor
execute, execute
-
Constructor Details
-
Hibernate5BatchProcessor
public Hibernate5BatchProcessor(org.hibernate.SessionFactory sessionFactory)
-
-
Method Details
-
auditOperations
- Specified by:
auditOperationsin classAbstractBatchProcessor<org.hibernate.Session>
-
getSession
protected org.hibernate.Session getSession()Description copied from class:AbstractBatchProcessorSubclasses should use this method to provide the session to be used with any implementations ofHibernateOperation.- Specified by:
getSessionin classAbstractBatchProcessor<org.hibernate.Session>
-
clearSession
protected void clearSession()- Specified by:
clearSessionin classAbstractHibernateBatchProcessor<org.hibernate.Session>
-
closeSession
protected void closeSession()- Specified by:
closeSessionin classAbstractHibernateBatchProcessor<org.hibernate.Session>
-
flushSession
protected void flushSession()- Specified by:
flushSessionin classAbstractHibernateBatchProcessor<org.hibernate.Session>
-
openSession
protected org.hibernate.Session openSession()- Specified by:
openSessionin classAbstractHibernateBatchProcessor<org.hibernate.Session>
-