gr.uoa.di.madgik.searchlibrary.operatorlibrary.extjdbc
Class BatchQuery
java.lang.Object
gr.uoa.di.madgik.searchlibrary.operatorlibrary.extjdbc.BatchQuery
public class BatchQuery
- extends Object
Class used to perform queries on the sql driver
- Author:
- UoA
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BatchQuery
public BatchQuery(String driverName,
String connectionString,
String sql,
int recordsPerPart)
throws Exception
- Creates a new
BatchQuery
- Parameters:
driverName - The name of the driverconnectionString - The connection stringsql - The SQL query for prepared statementrecordsPerPart - The number of records to put in each part
- Throws:
Exception - An unrecoverable for the operation error occured
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.