public class Hibernate4BatchProcessor extends AbstractBatchProcessor
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.
|
static org.hibernate.Session |
getSession() |
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 static void |
setSession(org.hibernate.Session session)
Sets the session in the internal currentSessionHolder.
|
protected void |
startTransaction()
Method is protected to allow subclasses to override the transaction management if they need to (e.g.
|
execute, setBatchSize
public Hibernate4BatchProcessor(org.hibernate.SessionFactory sessionFactory)
public static org.hibernate.Session getSession()
protected void afterProcessBatch()
AbstractBatchProcessor
afterProcessBatch
in class AbstractBatchProcessor
protected void afterProcessCollection()
AbstractBatchProcessor
afterProcessCollection
in class AbstractBatchProcessor
protected void afterProcessIndividual()
AbstractBatchProcessor
afterProcessIndividual
in class AbstractBatchProcessor
protected void beforeProcessBatch()
AbstractBatchProcessor
beforeProcessBatch
in class AbstractBatchProcessor
protected void beforeProcessCollection()
AbstractBatchProcessor
beforeProcessCollection
in class AbstractBatchProcessor
protected void beforeProcessIndividual()
AbstractBatchProcessor
beforeProcessIndividual
in class AbstractBatchProcessor
protected void commitTransaction()
protected void rollbackProcessBatch()
AbstractBatchProcessor
rollbackProcessBatch
in class AbstractBatchProcessor
protected void rollbackProcessIndividual()
AbstractBatchProcessor
rollbackProcessIndividual
in class AbstractBatchProcessor
protected void rollbackTransaction()
protected void startTransaction()
protected static void setSession(org.hibernate.Session session)
session
- the sessionCopyright © 2013 Atlassian. All Rights Reserved.