net.sourceforge.fluxion.datapublisher.mysql.impl
Class MySQLQuery<T>

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

public class MySQLQuery<T>
extends SQLQuery<T>

Models a query against a MySQL bean. Queries are typed with the type of bean the query acts against. A MySQLQuery would usually be generated from a MySQLQueryFactory. This class implements the generic abstract class SQLQuery to represent an SQL query against a MySQL database.

Version:
0.3
Author:
Tony Burdett
See Also:
MySQLQueryFactory

Field Summary
 
Fields inherited from class net.sourceforge.fluxion.datapublisher.sql.impl.SQLQuery
connection, dbUri, password, user
 
Constructor Summary
MySQLQuery(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 a SQL database connection to a MySQL database.
protected  void openConnection()
          Opens a SQL database connection to a MySQL 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

MySQLQuery

public MySQLQuery(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
Opens a SQL database connection to a MySQL database.

Specified by:
openConnection in class SQLQuery<T>
Throws:
QueryExecutionException

closeConnection

protected void closeConnection()
                        throws QueryExecutionException
Close a SQL database connection to a MySQL database.

Specified by:
closeConnection in class SQLQuery<T>
Throws:
QueryExecutionException


Copyright © 2010. All Rights Reserved.