org.openanzo.common.rdb.sql
Class GraphSQL.BatchInsertStatement
java.lang.Object
org.openanzo.jdbc.utils.batchable.Batchable.BatchOperation
org.openanzo.common.rdb.sql.GraphSQL.BatchInsertStatement
- Enclosing class:
- GraphSQL
public static class GraphSQL.BatchInsertStatement
- extends Batchable.BatchOperation
Batch operation for adding parameters to the InsertStatement 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 |
GraphSQL.BatchInsertStatement
public GraphSQL.BatchInsertStatement(GraphSQL.InsertStatementParams params,
java.lang.String graphTableName)
- Create a batchable object for the insertStatement prepared statement.
- Parameters:
params - InsertStatementParams containg input parametersgraphTableName - template parameter
GraphSQL.BatchInsertStatement
public GraphSQL.BatchInsertStatement(int metadata,
long namedgraphId,
long subj,
long prop,
long obj,
java.lang.String graphTableName)
- Create a batchable object for the insertStatement prepared statement.
- Parameters:
metadata - template parameternamedgraphId - template parametersubj - template parameterprop - template parameterobj - template parametergraphTableName - 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.