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

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

public class QueryBridge
extends Object

Class used to perform queries on the sql driver

Author:
UoA

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

QueryBridge

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

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

executeQuery

public ResultSet executeQuery(String query)
                       throws Exception
Exevutes the provided query

Parameters:
query - The query to execute
Returns:
The produced result set
Throws:
Exception - An unrecoverable for the operation error occured

getColumnNames

public String[] getColumnNames()
                        throws Exception
Retriueves the names of the available collumns

Returns:
The column names
Throws:
Exception - An unrecoverable for the operation error occured

printResults

public void printResults()
Prints the results in System.err



Copyright © 2013. All Rights Reserved.