|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.crowd.util.persistence.hibernate.batch.AbstractBatchProcessor com.atlassian.crowd.util.persistence.hibernate.batch.hibernate3.Hibernate3BatchProcessor
public class Hibernate3BatchProcessor
The hibernate 3 implementation of the batch processor runs each collection in a new session, and each batch in a seperate transaction.
Constructor Summary | |
---|---|
Hibernate3BatchProcessor(org.hibernate.SessionFactory sessionFactory)
|
Method Summary | |
---|---|
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. |
Methods inherited from class com.atlassian.crowd.util.persistence.hibernate.batch.AbstractBatchProcessor |
---|
execute, setBatchSize |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Hibernate3BatchProcessor(org.hibernate.SessionFactory sessionFactory)
Method Detail |
---|
public static org.hibernate.Session getSession()
protected static void setSession(org.hibernate.Session session)
session
- the sessionprotected void beforeProcessCollection()
AbstractBatchProcessor
beforeProcessCollection
in class AbstractBatchProcessor
protected void afterProcessCollection()
AbstractBatchProcessor
afterProcessCollection
in class AbstractBatchProcessor
protected void beforeProcessBatch()
AbstractBatchProcessor
beforeProcessBatch
in class AbstractBatchProcessor
protected void afterProcessBatch()
AbstractBatchProcessor
afterProcessBatch
in class AbstractBatchProcessor
protected void rollbackProcessBatch()
AbstractBatchProcessor
rollbackProcessBatch
in class AbstractBatchProcessor
protected void beforeProcessIndividual()
AbstractBatchProcessor
beforeProcessIndividual
in class AbstractBatchProcessor
protected void afterProcessIndividual()
AbstractBatchProcessor
afterProcessIndividual
in class AbstractBatchProcessor
protected void rollbackProcessIndividual()
AbstractBatchProcessor
rollbackProcessIndividual
in class AbstractBatchProcessor
protected void startTransaction()
protected void commitTransaction()
protected void rollbackTransaction()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |