org.ow2.clif.analyze.lib.oda.util.querytextutil
Class QueryTextUtil

java.lang.Object
  extended by org.ow2.clif.analyze.lib.oda.util.querytextutil.QueryTextUtil

public class QueryTextUtil
extends java.lang.Object

Utility class for splitting query text into query and columns information.


Method Summary
static java.lang.String getColumnsInfo(java.lang.String queryText)
          Gets the columns info.
static java.lang.String getQuery(java.lang.String queryText)
          Gets the query.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getQuery

public static java.lang.String getQuery(java.lang.String queryText)
                                 throws OdaException
Gets the query.

Parameters:
queryText - the query text
Returns:
the query without the columns informations from the given query text
Throws:
OdaException - the oda exception

getColumnsInfo

public static java.lang.String getColumnsInfo(java.lang.String queryText)
                                       throws OdaException
Gets the columns info.

Parameters:
queryText - the query text
Returns:
the columns informations extracted from the given query text
Throws:
OdaException - the oda exception