org.openanzo.common.rdb.sql
Class SequencesSQL.BatchInsertLongLiteral

java.lang.Object
  extended by org.openanzo.jdbc.utils.batchable.Batchable.BatchOperation
      extended by org.openanzo.common.rdb.sql.SequencesSQL.BatchInsertLongLiteral
Enclosing class:
SequencesSQL

public static class SequencesSQL.BatchInsertLongLiteral
extends Batchable.BatchOperation

Batch operation for adding parameters to the InsertLongLiteral prepared statement


Nested Class Summary
 
Nested classes/interfaces inherited from class org.openanzo.jdbc.utils.batchable.Batchable.BatchOperation
Batchable.BatchOperation.ParamKey
 
Constructor Summary
SequencesSQL.BatchInsertLongLiteral(SequencesSQL.InsertLongLiteralParams params, java.lang.String literalNodeTableName, java.lang.String sequenceName)
          Create a batchable object for the insertLongLiteral prepared statement.
SequencesSQL.BatchInsertLongLiteral(java.lang.String value, long hash, long modifier_id, java.lang.String literalNodeTableName, java.lang.String sequenceName)
          Create a batchable object for the insertLongLiteral 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

SequencesSQL.BatchInsertLongLiteral

public SequencesSQL.BatchInsertLongLiteral(SequencesSQL.InsertLongLiteralParams params,
                                           java.lang.String literalNodeTableName,
                                           java.lang.String sequenceName)
Create a batchable object for the insertLongLiteral prepared statement.

Parameters:
params - InsertLongLiteralParams containg input parameters
literalNodeTableName - template parameter
sequenceName - template parameter

SequencesSQL.BatchInsertLongLiteral

public SequencesSQL.BatchInsertLongLiteral(java.lang.String value,
                                           long hash,
                                           long modifier_id,
                                           java.lang.String literalNodeTableName,
                                           java.lang.String sequenceName)
Create a batchable object for the insertLongLiteral prepared statement.

Parameters:
value - template parameter
hash - template parameter
modifier_id - template parameter
literalNodeTableName - template parameter
sequenceName - 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.