com.hardcode.gdbms.engine.customQuery
Interface CustomQuery


public interface CustomQuery

Interface to implement by the custom queries

Author:
Fernando González Cortés

Method Summary
 OperationDataSource evaluate(DataSource[] tables, Expression[] values)
          Executes the custom query
 java.lang.String getName()
          Gets the query name.
 

Method Detail

evaluate

OperationDataSource evaluate(DataSource[] tables,
                             Expression[] values)
                             throws ExecutionException
Executes the custom query

Parameters:
tables - tables involved in the query
values - values passed to the query
Returns:
DataSource result of the query
Throws:
ExecutionException - if the custom query execution fails

getName

java.lang.String getName()
Gets the query name. Must ve a valid SQL identifier (i.e.: '.' is not allowed)

Returns:
query name


Copyright © 2005-2006 . All Rights Reserved.