|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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. |
static org.hibernate.classic.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. |
| 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.classic.Session getSession()
protected void beforeProcessCollection()
AbstractBatchProcessor
beforeProcessCollection in class AbstractBatchProcessorprotected void afterProcessCollection()
AbstractBatchProcessor
afterProcessCollection in class AbstractBatchProcessorprotected void beforeProcessBatch()
AbstractBatchProcessor
beforeProcessBatch in class AbstractBatchProcessorprotected void afterProcessBatch()
AbstractBatchProcessor
afterProcessBatch in class AbstractBatchProcessorprotected void rollbackProcessBatch()
AbstractBatchProcessor
rollbackProcessBatch in class AbstractBatchProcessorprotected void beforeProcessIndividual()
AbstractBatchProcessor
beforeProcessIndividual in class AbstractBatchProcessorprotected void afterProcessIndividual()
AbstractBatchProcessor
afterProcessIndividual in class AbstractBatchProcessorprotected void rollbackProcessIndividual()
AbstractBatchProcessor
rollbackProcessIndividual in class AbstractBatchProcessor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||