public abstract class AbstractHibernateBatchProcessor<T extends org.hibernate.SharedSessionContract> extends AbstractBatchProcessor<T>
Modifier and Type | Field and Description |
---|---|
protected org.hibernate.SessionFactory |
sessionFactory |
batchSize, log
Constructor and Description |
---|
AbstractHibernateBatchProcessor(org.hibernate.SessionFactory sessionFactory) |
Modifier and Type | Method and Description |
---|---|
protected void |
afterProcessBatch()
Called after successfully processing each batch.
|
protected void |
afterProcessCollection()
Called when processing the collection has completed successfully.
|
protected void |
afterProcessIndividual()
Called after successully processing an item individually.
|
protected void |
beforeProcessBatch()
Called before processing each batch.
|
protected void |
beforeProcessCollection()
Called before the collection is processed into a batch.
|
protected void |
beforeProcessIndividual()
Called before processing an individual item.
|
protected abstract void |
clearSession() |
protected abstract void |
closeSession() |
protected void |
commitTransaction()
Method is protected to allow subclasses to override the transaction management if they need to (e.g.
|
protected abstract void |
flushSession() |
protected abstract T |
openSession() |
protected void |
rollbackProcessBatch()
Called after processing each batch where an exception was encountered.
|
protected void |
rollbackProcessIndividual()
Called after processing an individual item where an exception was encountered.
|
protected void |
rollbackTransaction()
Method is protected to allow subclasses to override the transaction management if they need to (e.g.
|
protected void |
startTransaction()
Method is protected to allow subclasses to override the transaction management if they need to (e.g.
|
auditOperations, execute, execute, getSession, setBatchSize
public AbstractHibernateBatchProcessor(org.hibernate.SessionFactory sessionFactory)
protected void afterProcessBatch()
AbstractBatchProcessor
afterProcessBatch
in class AbstractBatchProcessor<T extends org.hibernate.SharedSessionContract>
protected void afterProcessCollection()
AbstractBatchProcessor
afterProcessCollection
in class AbstractBatchProcessor<T extends org.hibernate.SharedSessionContract>
protected void afterProcessIndividual()
AbstractBatchProcessor
afterProcessIndividual
in class AbstractBatchProcessor<T extends org.hibernate.SharedSessionContract>
protected void beforeProcessBatch()
AbstractBatchProcessor
beforeProcessBatch
in class AbstractBatchProcessor<T extends org.hibernate.SharedSessionContract>
protected void beforeProcessCollection()
AbstractBatchProcessor
beforeProcessCollection
in class AbstractBatchProcessor<T extends org.hibernate.SharedSessionContract>
protected void beforeProcessIndividual()
AbstractBatchProcessor
beforeProcessIndividual
in class AbstractBatchProcessor<T extends org.hibernate.SharedSessionContract>
protected void rollbackProcessBatch()
AbstractBatchProcessor
rollbackProcessBatch
in class AbstractBatchProcessor<T extends org.hibernate.SharedSessionContract>
protected void rollbackProcessIndividual()
AbstractBatchProcessor
rollbackProcessIndividual
in class AbstractBatchProcessor<T extends org.hibernate.SharedSessionContract>
protected void commitTransaction()
protected void rollbackTransaction()
protected abstract void clearSession()
protected abstract void closeSession()
protected abstract void flushSession()
protected abstract T openSession()
protected void startTransaction()
Copyright © 2021 Atlassian. All rights reserved.