org.openanzo.common.rdb.sql
Class SequencesSQL.BatchInsertLiteral
java.lang.Object
org.openanzo.jdbc.utils.batchable.Batchable.BatchOperation
org.openanzo.common.rdb.sql.SequencesSQL.BatchInsertLiteral
- Enclosing class:
- SequencesSQL
public static class SequencesSQL.BatchInsertLiteral
- extends Batchable.BatchOperation
Batch operation for adding parameters to the InsertLiteral 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 java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SequencesSQL.BatchInsertLiteral
public SequencesSQL.BatchInsertLiteral(SequencesSQL.InsertLiteralParams params,
java.lang.String literalNodeTableName,
java.lang.String sequenceName)
- Create a batchable object for the insertLiteral prepared statement.
- Parameters:
params - InsertLiteralParams containg input parametersliteralNodeTableName - template parametersequenceName - template parameter
SequencesSQL.BatchInsertLiteral
public SequencesSQL.BatchInsertLiteral(java.lang.String value,
long modifier_id,
java.lang.String literalNodeTableName,
java.lang.String sequenceName)
- Create a batchable object for the insertLiteral prepared statement.
- Parameters:
value - template parametermodifier_id - template parameterliteralNodeTableName - template parametersequenceName - template parameter
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.