public class QueryBridge extends Object
| Constructor and Description |
|---|
QueryBridge(String driverName,
String connectionString,
int recordsPerPart)
Creates a new
QueryBridge |
| Modifier and Type | Method and Description |
|---|---|
ResultSet |
executeQuery(String query)
Exevutes the provided query
|
String[] |
getColumnNames()
Retriueves the names of the available collumns
|
void |
printResults()
Prints the results in System.err
|
public QueryBridge(String driverName, String connectionString, int recordsPerPart) throws Exception
QueryBridgedriverName - The name of the driverconnectionString - The connection stringrecordsPerPart - The number of records to put in each partException - An unrecoverable for the operation error occuredpublic ResultSet executeQuery(String query) throws Exception
query - The query to executeException - An unrecoverable for the operation error occuredpublic String[] getColumnNames() throws Exception
Exception - An unrecoverable for the operation error occuredpublic void printResults()
Copyright © 2017. All Rights Reserved.