net.sourceforge.fluxion.datapublisher.biomart.impl
Class BiomartQuery<T>

java.lang.Object
  extended by net.sourceforge.fluxion.datapublisher.biomart.impl.BiomartQuery<T>
All Implemented Interfaces:
Query<T>

public class BiomartQuery<T>
extends java.lang.Object
implements Query<T>

Javadocs go here.

Version:
1.0
Author:
Tony Burdett

Constructor Summary
BiomartQuery()
           
 
Method Summary
 java.lang.String execute()
          Execute this query.
 boolean hasMoreResults()
          True if there are more results, false otherwise
 T nextResult()
          Returns the next result in the sequence
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BiomartQuery

public BiomartQuery()
Method Detail

execute

public java.lang.String execute()
                         throws QueryExecutionException
Description copied from interface: Query
Execute this query. Queries should know how to acquire a connection to the datasource. Once executed, results can be pulled from this query using nextResult(), which will return the next bean instance. This method returns a String that describes the query that has been executed. This is used for logging purposes, and will usually look something like "LANG: SQL; STATEMENT: SELECT * FROM foo WHERE bar"

Specified by:
execute in interface Query<T>
Returns:
a string that describes the query
Throws:
QueryExecutionException - if the query failed to execute

hasMoreResults

public boolean hasMoreResults()
                       throws QueryExecutionException
Description copied from interface: Query
True if there are more results, false otherwise

Specified by:
hasMoreResults in interface Query<T>
Returns:
true if there are more results, false otherwise
Throws:
QueryExecutionException - if there is some problem with retrieving the results of the query

nextResult

public T nextResult()
             throws QueryExecutionException
Description copied from interface: Query
Returns the next result in the sequence

Specified by:
nextResult in interface Query<T>
Returns:
the next result
Throws:
QueryExecutionException - if there is a problem retrieving the next result


Copyright © 2010. All Rights Reserved.