net.sourceforge.fluxion.datapublisher.mysql.impl
Class MySQLQueryFactory
java.lang.Object
net.sourceforge.fluxion.datapublisher.sql.impl.SQLQueryFactory
net.sourceforge.fluxion.datapublisher.mysql.impl.MySQLQueryFactory
- All Implemented Interfaces:
- QueryGenerator
@ServiceProvider
public class MySQLQueryFactory
- extends SQLQueryFactory
Generates a Query
that can
be executed against a MySQL database.
- Version:
- 0.2
- Author:
- Tony Burdett
- See Also:
MySQLQuery
Constructor Summary |
MySQLQueryFactory(java.lang.String dbUrl,
java.lang.String user,
java.lang.String password)
|
Method Summary |
protected
|
makeQueryInstance(java.lang.Class<F> beanClass,
Filter filter,
java.lang.String dbUrl,
java.lang.String user,
java.lang.String password)
Instantiate a new query instance from the parameters given. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MySQLQueryFactory
public MySQLQueryFactory(java.lang.String dbUrl,
java.lang.String user,
java.lang.String password)
makeQueryInstance
protected <F> SQLQuery<F> makeQueryInstance(java.lang.Class<F> beanClass,
Filter filter,
java.lang.String dbUrl,
java.lang.String user,
java.lang.String password)
- Description copied from class:
SQLQueryFactory
- Instantiate a new query instance from the parameters given. This
effectively defers the decision about the type of the Query to be
instantiated to the concrete implementations of this class. Usually,
implementations of this class will be extremely simple - a single line to
instantiate a new concrete implementation of the appropriate class.
- Specified by:
makeQueryInstance
in class SQLQueryFactory
- Parameters:
beanClass
- the beanClass a Query is needed forfilter
- the filter used to make this querydbUrl
- the URL of the databaseuser
- the username to use to connect to the databasepassword
- the password to connect to the database with @return a new
SQLQuery instance of appropriate type
- Returns:
- the SQLQuery that can be executed
Copyright © 2010. All Rights Reserved.