com.atlassian.crowd.util.persistence.hibernate.batch
Class BatchResult<T>

java.lang.Object
  extended by com.atlassian.crowd.util.persistence.hibernate.batch.BatchResult<T>
Direct Known Subclasses:
BatchResultWithIdReferences

public class BatchResult<T>
extends Object

A batch mutation operation result representing the number of entities that had been attempted to be processed and the collection of entities that failed processing.


Constructor Summary
BatchResult(long totalEntities)
           
 
Method Summary
 void addFailure(T entity)
           
 void addFailures(Collection<? extends T> entities)
           
 List<T> getFailedEntities()
           
 long getTotalAttempted()
           
 long getTotalSuccessful()
           
 boolean hasFailures()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BatchResult

public BatchResult(long totalEntities)
Method Detail

addFailure

public void addFailure(T entity)

addFailures

public void addFailures(Collection<? extends T> entities)

hasFailures

public boolean hasFailures()

getTotalAttempted

public long getTotalAttempted()

getFailedEntities

public List<T> getFailedEntities()

getTotalSuccessful

public long getTotalSuccessful()


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.