public class Hibernate4BatchProcessor extends AbstractBatchProcessor<org.hibernate.Session>
| Constructor and Description |
|---|
Hibernate4BatchProcessor(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 void |
commitTransaction()
Method is protected to allow subclasses to override the transaction management if they need to (e.g.
|
protected org.hibernate.Session |
getSession()
Subclasses should use this method to provide the session to be used with any implementations of
HibernateOperation. |
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, setBatchSizepublic Hibernate4BatchProcessor(org.hibernate.SessionFactory sessionFactory)
protected org.hibernate.Session getSession()
AbstractBatchProcessorHibernateOperation.getSession in class AbstractBatchProcessor<org.hibernate.Session>protected void afterProcessBatch()
AbstractBatchProcessorafterProcessBatch in class AbstractBatchProcessor<org.hibernate.Session>protected void afterProcessCollection()
AbstractBatchProcessorafterProcessCollection in class AbstractBatchProcessor<org.hibernate.Session>protected void afterProcessIndividual()
AbstractBatchProcessorafterProcessIndividual in class AbstractBatchProcessor<org.hibernate.Session>protected void beforeProcessBatch()
AbstractBatchProcessorbeforeProcessBatch in class AbstractBatchProcessor<org.hibernate.Session>protected void beforeProcessCollection()
AbstractBatchProcessorbeforeProcessCollection in class AbstractBatchProcessor<org.hibernate.Session>protected void beforeProcessIndividual()
AbstractBatchProcessorbeforeProcessIndividual in class AbstractBatchProcessor<org.hibernate.Session>protected void commitTransaction()
protected void rollbackProcessBatch()
AbstractBatchProcessorrollbackProcessBatch in class AbstractBatchProcessor<org.hibernate.Session>protected void rollbackProcessIndividual()
AbstractBatchProcessorrollbackProcessIndividual in class AbstractBatchProcessor<org.hibernate.Session>protected void rollbackTransaction()
protected void startTransaction()
Copyright © 2017 Atlassian. All rights reserved.