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

java.lang.Object
  extended by com.atlassian.crowd.util.persistence.hibernate.batch.BatchResult<T>

public class BatchResult<T>
extends java.lang.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)
           
 java.util.Collection<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)

hasFailures

public boolean hasFailures()

getTotalAttempted

public long getTotalAttempted()

getFailedEntities

public java.util.Collection<T> getFailedEntities()

getTotalSuccessful

public long getTotalSuccessful()


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.