net.sourceforge.fluxion.datasource.query
Interface QueryGenerator

All Known Implementing Classes:
BiomartQueryFactory, MySQLQueryFactory, ODBCQueryFactory, PostgresqlQueryFactory, SQLQueryFactory

@Spi
public interface QueryGenerator

Interface for generating queries against a particular type of bean. This should be implemented separately for each datasource syntax, so that the query generated is in the correct syntax for the underlying database.

Version:
0.2
Author:
Tony Burdett

Method Summary
<F> Query<F>
generateQuery(Filter<F> filter)
          Create a query that can then be used to obtain data from a database.
 

Method Detail

generateQuery

<F> Query<F> generateQuery(Filter<F> filter)
                       throws QueryGenerationException
Create a query that can then be used to obtain data from a database. The returned query will be typed by the bean which the Filter is typed by - so if generateQuery(Filter?Foo>) is called, a Query?Foo> will be returned.

Parameters:
filter - the filter to use to make the query
Returns:
the query, typed by the bean being queried
Throws:
QueryGenerationException - if there was a probelm generating the query


Copyright © 2010. All Rights Reserved.