com.atlassian.confluence.core.persistence.hibernate
Class SimpleHibernateBatchOperationManager

java.lang.Object
  extended by com.atlassian.confluence.core.persistence.hibernate.SimpleHibernateBatchOperationManager
All Implemented Interfaces:
BatchOperationManager

public class SimpleHibernateBatchOperationManager
extends Object
implements BatchOperationManager

Performs a batch operation in a series of independent transactions containing an arbitrary number of operations (which happens to be 50).

Warning: using this batcher will clear the current session!


Constructor Summary
SimpleHibernateBatchOperationManager(HibernateSessionManager sessionManager)
           
 
Method Summary
<I,O> Iterable<O>
performAsBatch(Iterable<I> input, int expectedTotal, com.google.common.base.Function<I,O> task)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleHibernateBatchOperationManager

public SimpleHibernateBatchOperationManager(HibernateSessionManager sessionManager)
Method Detail

performAsBatch

public <I,O> Iterable<O> performAsBatch(Iterable<I> input,
                                        int expectedTotal,
                                        com.google.common.base.Function<I,O> task)
Specified by:
performAsBatch in interface BatchOperationManager


Copyright © 2003-2012 Atlassian. All Rights Reserved.