org.openanzo.server.repository.rdb.sql
Class RoleRdbWrapper.BatchInsertRole

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

public static class RoleRdbWrapper.BatchInsertRole
extends Batchable.BatchOperation

Batch operation for adding parameters to the InsertRole prepared statement


Nested Class Summary
 
Nested classes/interfaces inherited from class org.openanzo.jdbc.utils.batchable.Batchable.BatchOperation
Batchable.BatchOperation.ParamKey
 
Constructor Summary
RoleRdbWrapper.BatchInsertRole(long id, java.lang.Long modified)
          Create a batchable object for the insertRole prepared statement.
RoleRdbWrapper.BatchInsertRole(RoleRdbWrapper.InsertRoleParams params)
          Create a batchable object for the insertRole 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

RoleRdbWrapper.BatchInsertRole

public RoleRdbWrapper.BatchInsertRole(RoleRdbWrapper.InsertRoleParams params)
Create a batchable object for the insertRole prepared statement.

Parameters:
params - InsertRoleParams containg input parameters

RoleRdbWrapper.BatchInsertRole

public RoleRdbWrapper.BatchInsertRole(long id,
                                      java.lang.Long modified)
Create a batchable object for the insertRole prepared statement.

Parameters:
id - template parameter
modified - 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.