org.openanzo.jdbc.utils.batchable
Class Batchable.BatchGroup

java.lang.Object
  extended by org.openanzo.jdbc.utils.batchable.Batchable.BatchGroup
All Implemented Interfaces:
Batchable
Enclosing interface:
Batchable

public static class Batchable.BatchGroup
extends java.lang.Object
implements Batchable

Groups together a set of batches into one. BatchGroups can contain any Batchable, including other BatchGroups.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.openanzo.jdbc.utils.batchable.Batchable
Batchable.BatchGroup, Batchable.BatchOperation, Batchable.BatchOperationSet, Batchable.NullBatch
 
Field Summary
 
Fields inherited from interface org.openanzo.jdbc.utils.batchable.Batchable
EMPTY_BATCH
 
Constructor Summary
Batchable.BatchGroup()
          Create a new BatchGroup
Batchable.BatchGroup(Batchable... batchableItems)
          Create a new BatchGroup with 0 or more Batchable items
Batchable.BatchGroup(java.util.Collection<Batchable> batchItem)
          Create a BatchGroup with given batchItems
 
Method Summary
 void addBatchItem(Batchable item)
          Add Batchable to group
 boolean isEmpty()
          Is this group empty
 java.util.List<Batchable.BatchOperation> listBatchOperations()
          Get the current list of batch operations for this object
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Batchable.BatchGroup

public Batchable.BatchGroup()
Create a new BatchGroup


Batchable.BatchGroup

public Batchable.BatchGroup(Batchable... batchableItems)
Create a new BatchGroup with 0 or more Batchable items

Parameters:
batchableItems - 0 or more Batchable items

Batchable.BatchGroup

public Batchable.BatchGroup(java.util.Collection<Batchable> batchItem)
Create a BatchGroup with given batchItems

Parameters:
batchItem - Collection of Batchables to add
Method Detail

addBatchItem

public void addBatchItem(Batchable item)
Add Batchable to group

Parameters:
item - Batchable to add

isEmpty

public boolean isEmpty()
Is this group empty

Returns:
true this group is empty

listBatchOperations

public java.util.List<Batchable.BatchOperation> listBatchOperations()
Description copied from interface: Batchable
Get the current list of batch operations for this object

Specified by:
listBatchOperations in interface Batchable
Returns:
the current list of batch operations for this object


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.