uk.org.ogsadai.client.databrowser.sql
Class DBQuery

java.lang.Object
  |
  +--uk.org.ogsadai.client.databrowser.sql.DBAbstractSQL
        |
        +--uk.org.ogsadai.client.databrowser.sql.DBQuery

public class DBQuery
extends DBAbstractSQL

Holds info for an OGSA-DAI SQLQuery

Author:
The OGSA-DAI team., Paul Graham, EPCC

Field Summary
private static java.lang.String COPYRIGHT_NOTICE
          Copyright statement
private  SQLQuery mSQLQuery
           
private  WebRowSet mWebRowSet
           
 
Fields inherited from class uk.org.ogsadai.client.databrowser.sql.DBAbstractSQL
 
Constructor Summary
DBQuery(java.lang.String name, DBDataResource resource, java.lang.String statement)
          Construct a query
 
Method Summary
 java.sql.ResultSet getResultSet()
           
 SQLQuery getSQLQuery()
           
 WebRowSet getWebRowSet()
           
 
Methods inherited from class uk.org.ogsadai.client.databrowser.sql.DBAbstractSQL
getDataResource, getDataResourceName, getDataServiceURL, getName, getStatement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPYRIGHT_NOTICE

private static final java.lang.String COPYRIGHT_NOTICE
Copyright statement

See Also:
Constant Field Values

mSQLQuery

private SQLQuery mSQLQuery

mWebRowSet

private WebRowSet mWebRowSet
Constructor Detail

DBQuery

public DBQuery(java.lang.String name,
               DBDataResource resource,
               java.lang.String statement)
Construct a query

Parameters:
name - The name of this SQL query
resource - data resource to run the query against
statement - The query statement
Method Detail

getSQLQuery

public SQLQuery getSQLQuery()
Returns:
The OGSADAI client toolkit SQL query

getWebRowSet

public WebRowSet getWebRowSet()
Returns:
The OGSA-DAI client toolkit WebRowSet object

getResultSet

public java.sql.ResultSet getResultSet()
                                throws java.lang.Exception
Returns:
The ResultSet from a query that has been run
Throws:
java.lang.Exception