|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgr.uoa.di.madgik.searchlibrary.operatorlibrary.extjdbc.QueryBridge
public class QueryBridge
Class used to perform queries on the sql driver
| Constructor Summary | |
|---|---|
QueryBridge(String driverName,
String connectionString,
int recordsPerPart)
Creates a new QueryBridge |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QueryBridge(String driverName,
String connectionString,
int recordsPerPart)
throws Exception
QueryBridge
driverName - The name of the driverconnectionString - The connection stringrecordsPerPart - The number of records to put in each part
Exception - An unrecoverable for the operation error occured| Method Detail |
|---|
public ResultSet executeQuery(String query)
throws Exception
query - The query to execute
Exception - An unrecoverable for the operation error occured
public String[] getColumnNames()
throws Exception
Exception - An unrecoverable for the operation error occuredpublic void printResults()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||