org.edg.info
Class QueryHandler

java.lang.Object
  extended byorg.edg.info.QueryHandler

public class QueryHandler
extends java.lang.Object

QueryHandler acts as an interface to parsql, the SQL Parser. It has methods for extracting column names, column values etc. from an sql query.


Constructor Summary
QueryHandler(java.lang.String query)
          Creates a new QueryHandler object.
 
Method Summary
 void checkDuplicateSelectedColumn()
          Throws an RGMAException if there are duplicate column names in the SELECT statement.
 void checkJoinStar()
          Throws an RGMAException if the SELECT includes a join and selects on all columns (*).
 void checkQueryIsSimple()
          Check that the query is simple
 boolean hasPredicate()
          DOCUMENT ME!
 boolean isSimpleQuery()
          Checks whether the query would be a valid continuous query.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryHandler

public QueryHandler(java.lang.String query)
             throws org.glite.rgma.system.RGMAUserException
Creates a new QueryHandler object.

Parameters:
query - DOCUMENT ME!
Throws:
org.glite.rgma.system.RGMAUserException - DOCUMENT ME!
Method Detail

checkQueryIsSimple

public void checkQueryIsSimple()
                        throws org.glite.rgma.system.RGMAUserException
Check that the query is simple

Throws:
org.glite.rgma.system.RGMAUserException - if the query is not a simple query

isSimpleQuery

public boolean isSimpleQuery()
Checks whether the query would be a valid continuous query.

Returns:
DOCUMENT ME!
Throws:
org.glite.rgma.system.RGMAException - DOCUMENT ME!

hasPredicate

public boolean hasPredicate()
DOCUMENT ME!

Returns:
DOCUMENT ME!

checkDuplicateSelectedColumn

public void checkDuplicateSelectedColumn()
                                  throws org.glite.rgma.system.RGMAUserException
Throws an RGMAException if there are duplicate column names in the SELECT statement.

Throws:
org.glite.rgma.system.RGMAException
org.glite.rgma.system.RGMAUserException

checkJoinStar

public void checkJoinStar()
                   throws org.glite.rgma.system.RGMAUserException
Throws an RGMAException if the SELECT includes a join and selects on all columns (*).

Throws:
org.glite.rgma.system.RGMAUserException