org.openanzo.server.repository.rdb.sql
Class NamedGraphRdbWrapper.BatchInsertNamedGraph

java.lang.Object
  extended by org.openanzo.jdbc.utils.batchable.Batchable.BatchOperation
      extended by org.openanzo.server.repository.rdb.sql.NamedGraphRdbWrapper.BatchInsertNamedGraph
Enclosing class:
NamedGraphRdbWrapper

public static class NamedGraphRdbWrapper.BatchInsertNamedGraph
extends Batchable.BatchOperation

Batch operation for adding parameters to the InsertNamedGraph prepared statement


Nested Class Summary
 
Nested classes/interfaces inherited from class org.openanzo.jdbc.utils.batchable.Batchable.BatchOperation
Batchable.BatchOperation.ParamKey
 
Constructor Summary
NamedGraphRdbWrapper.BatchInsertNamedGraph(java.lang.Long modified, long namedgraphid, long metaId, long aclid, long createdBy, long revision, long lastModifiedBy)
          Create a batchable object for the insertNamedGraph prepared statement.
NamedGraphRdbWrapper.BatchInsertNamedGraph(NamedGraphRdbWrapper.InsertNamedGraphParams params)
          Create a batchable object for the insertNamedGraph prepared statement.
 
Method Summary
 void addBatch(java.sql.PreparedStatement ps)
          Called by BatchExecutor when prepared statement is being readied for execution.
 
Methods inherited from class org.openanzo.jdbc.utils.batchable.Batchable.BatchOperation
commitImmediate, getPreparedStatementName, getTemplateParamKey, getTemplateParams
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamedGraphRdbWrapper.BatchInsertNamedGraph

public NamedGraphRdbWrapper.BatchInsertNamedGraph(NamedGraphRdbWrapper.InsertNamedGraphParams params)
Create a batchable object for the insertNamedGraph prepared statement.

Parameters:
params - InsertNamedGraphParams containg input parameters

NamedGraphRdbWrapper.BatchInsertNamedGraph

public NamedGraphRdbWrapper.BatchInsertNamedGraph(java.lang.Long modified,
                                                  long namedgraphid,
                                                  long metaId,
                                                  long aclid,
                                                  long createdBy,
                                                  long revision,
                                                  long lastModifiedBy)
Create a batchable object for the insertNamedGraph prepared statement.

Parameters:
modified - template parameter
namedgraphid - template parameter
metaId - template parameter
aclid - template parameter
createdBy - template parameter
revision - template parameter
lastModifiedBy - template parameter
Method Detail

addBatch

public void addBatch(java.sql.PreparedStatement ps)
              throws java.sql.SQLException
Description copied from class: Batchable.BatchOperation
Called by BatchExecutor when prepared statement is being readied for execution. This adds a new batch onto the preparedStatement in question.

Specified by:
addBatch in class Batchable.BatchOperation
Parameters:
ps - preparedStatement onto which batch is added
Throws:
java.sql.SQLException - if there was an error adding a batch to the preparedStatement


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