net.sourceforge.fluxion.datapublisher.odbc.impl
Class ODBCQuery<T>

java.lang.Object
  extended by net.sourceforge.fluxion.datapublisher.sql.impl.SQLQuery<T>
      extended by net.sourceforge.fluxion.datapublisher.odbc.impl.ODBCQuery<T>
All Implemented Interfaces:
Query<T>

public class ODBCQuery<T>
extends SQLQuery<T>

Models a query against an odbc bean. Queries are typed with the type of bean the query acts against. A ODBCQuery would usually be generated from a ODBCQueryFactory.

Version:
0.3
Author:
Tony Burdett, Trevor

Field Summary
 
Fields inherited from class net.sourceforge.fluxion.datapublisher.sql.impl.SQLQuery
connection, dbUri, password, user
 
Constructor Summary
ODBCQuery(java.lang.Class<T> beanClass, Filter filter, java.lang.String dbUrl, java.lang.String user, java.lang.String password)
           
 
Method Summary
protected  void closeConnection()
          Close the connection to a oracle database
protected  void openConnection()
          Open a connection to a oracle database.
 
Methods inherited from class net.sourceforge.fluxion.datapublisher.sql.impl.SQLQuery
addFromClause, addSelectClause, addWhereClause, execute, hasMoreResults, nextResult
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ODBCQuery

public ODBCQuery(java.lang.Class<T> beanClass,
                 Filter filter,
                 java.lang.String dbUrl,
                 java.lang.String user,
                 java.lang.String password)
Method Detail

openConnection

protected void openConnection()
                       throws QueryExecutionException
Open a connection to a oracle database.

Specified by:
openConnection in class SQLQuery<T>
Throws:
QueryExecutionException - if opening the connection fails

closeConnection

protected void closeConnection()
                        throws QueryExecutionException
Close the connection to a oracle database

Specified by:
closeConnection in class SQLQuery<T>
Throws:
QueryExecutionException - if closing the connection fails


Copyright © 2010. All Rights Reserved.