public abstract class AbstractHibernateBatchProcessor<T extends org.hibernate.SharedSessionContract> extends AbstractBatchProcessor<T>
log| Constructor and Description |
|---|
AbstractHibernateBatchProcessor() |
| 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.
|
execute, getSession, setBatchSizeprotected void afterProcessBatch()
AbstractBatchProcessorafterProcessBatch in class AbstractBatchProcessor<T extends org.hibernate.SharedSessionContract>protected void afterProcessCollection()
AbstractBatchProcessorafterProcessCollection in class AbstractBatchProcessor<T extends org.hibernate.SharedSessionContract>protected void afterProcessIndividual()
AbstractBatchProcessorafterProcessIndividual in class AbstractBatchProcessor<T extends org.hibernate.SharedSessionContract>protected void beforeProcessBatch()
AbstractBatchProcessorbeforeProcessBatch in class AbstractBatchProcessor<T extends org.hibernate.SharedSessionContract>protected void beforeProcessCollection()
AbstractBatchProcessorbeforeProcessCollection in class AbstractBatchProcessor<T extends org.hibernate.SharedSessionContract>protected void beforeProcessIndividual()
AbstractBatchProcessorbeforeProcessIndividual in class AbstractBatchProcessor<T extends org.hibernate.SharedSessionContract>protected void rollbackProcessBatch()
AbstractBatchProcessorrollbackProcessBatch in class AbstractBatchProcessor<T extends org.hibernate.SharedSessionContract>protected void rollbackProcessIndividual()
AbstractBatchProcessorrollbackProcessIndividual 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 © 2018 Atlassian. All rights reserved.