net.sourceforge.fluxion.datapublisher.mysql.impl
Class MySQLQuery<T>
java.lang.Object
net.sourceforge.fluxion.datapublisher.sql.impl.SQLQuery<T>
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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MySQLQuery
public MySQLQuery(java.lang.Class<T> beanClass,
Filter filter,
java.lang.String dbUrl,
java.lang.String user,
java.lang.String password)
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.