gr.uoa.di.madgik.searchlibrary.operatorlibrary.extjdbc
Class BatchQuery

java.lang.Object
  extended by gr.uoa.di.madgik.searchlibrary.operatorlibrary.extjdbc.BatchQuery

public class BatchQuery
extends Object

Class used to perform queries on the sql driver

Author:
UoA

Constructor Summary
BatchQuery(String driverName, String connectionString, String sql, int recordsPerPart)
          Creates a new BatchQuery
 
Method Summary
 void addBatch(String... fields)
          Executes the provided query
 void executeBatch()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BatchQuery

public BatchQuery(String driverName,
                  String connectionString,
                  String sql,
                  int recordsPerPart)
           throws Exception
Creates a new BatchQuery

Parameters:
driverName - The name of the driver
connectionString - The connection string
sql - The SQL query for prepared statement
recordsPerPart - The number of records to put in each part
Throws:
Exception - An unrecoverable for the operation error occured
Method Detail

addBatch

public void addBatch(String... fields)
              throws Exception
Executes the provided query

Parameters:
fields - the updated fields
Throws:
Exception - An unrecoverable for the operation error occured

executeBatch

public void executeBatch()
                  throws SQLException
Throws:
SQLException


Copyright © 2013. All Rights Reserved.