net.sourceforge.fluxion.datapublisher.mysql.impl
Class MySQLQueryFactory

java.lang.Object
  extended by net.sourceforge.fluxion.datapublisher.sql.impl.SQLQueryFactory
      extended by 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
<F> SQLQuery<F>
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 net.sourceforge.fluxion.datapublisher.sql.impl.SQLQueryFactory
generateQuery
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MySQLQueryFactory

public MySQLQueryFactory(java.lang.String dbUrl,
                         java.lang.String user,
                         java.lang.String password)
Method Detail

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 for
filter - the filter used to make this query
dbUrl - the URL of the database
user - the username to use to connect to the database
password - 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.