org.openanzo.jdbc.utils.batchable
Interface Batchable

All Known Implementing Classes:
ACI, ACL, Batchable.BatchGroup, Batchable.BatchOperationSet, Batchable.NullBatch, NamedGraph, Statement

public interface Batchable

Provides a mechanism for holding onto yet-to-be-committed prepared statements calls to a JDBC database (inserts/updates and deletes) with all the parameters set for later batch commits via the BatchExecuter class. This interface may be implemented by classes providing access to relational data allowing an application request changes to the data and then add the batchable instance to a BatchOperationQueue which will handle commits to the database in an efficient manner.

Author:
Joe Betz
See Also:
BatchExecuter, Batchable.BatchOperation

Nested Class Summary
static class Batchable.BatchGroup
          Groups together a set of batches into one.
static class Batchable.BatchOperation
          Base of all operations that are to be delayed and batched later.
static class Batchable.BatchOperationSet
          BatchOperationSet combines set of BatchOperations into one Batchable object
static class Batchable.NullBatch
          Simple implementation of Batchable that does nothing except serve as a place holder.
 
Field Summary
static Batchable.NullBatch EMPTY_BATCH
          Simple reference of NullBatch that does nothing except serve as a place holder.
 
Method Summary
 java.util.List<Batchable.BatchOperation> listBatchOperations()
          Get the current list of batch operations for this object
 

Field Detail

EMPTY_BATCH

static final Batchable.NullBatch EMPTY_BATCH
Simple reference of NullBatch that does nothing except serve as a place holder.

Method Detail

listBatchOperations

java.util.List<Batchable.BatchOperation> listBatchOperations()
Get the current list of batch operations for this object

Returns:
the current list of batch operations for this object


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