railo.runtime.type.util
Class QueryUtil

java.lang.Object
  extended by railo.runtime.type.util.QueryUtil

public class QueryUtil
extends Object


Constructor Summary
QueryUtil()
           
 
Method Summary
static void checkSQLRestriction(DatasourceConnection dc, SQL sql)
          check if there is a sql restriction
static Collection.Key[] getColumnNames(Query qry)
          return column names as Key from a query
static void removeRows(Query query, int index, int count)
           
static long sizeOf(QueryColumn column)
           
static DumpData toDumpData(QueryPro query, PageContext pageContext, int maxlevel, DumpProperties dp)
           
static String[] toStringArray(Collection.Key[] keys)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryUtil

public QueryUtil()
Method Detail

sizeOf

public static long sizeOf(QueryColumn column)

getColumnNames

public static Collection.Key[] getColumnNames(Query qry)
return column names as Key from a query

Parameters:
qry -
Returns:

toStringArray

public static String[] toStringArray(Collection.Key[] keys)

checkSQLRestriction

public static void checkSQLRestriction(DatasourceConnection dc,
                                       SQL sql)
                                throws PageException
check if there is a sql restriction

Parameters:
ds -
sql -
Throws:
PageException

toDumpData

public static DumpData toDumpData(QueryPro query,
                                  PageContext pageContext,
                                  int maxlevel,
                                  DumpProperties dp)

removeRows

public static void removeRows(Query query,
                              int index,
                              int count)
                       throws PageException
Throws:
PageException


Copyright © 2012 Railo