railo.runtime.util
Class QueryStackImpl

java.lang.Object
  extended by railo.runtime.util.QueryStackImpl
All Implemented Interfaces:
QueryStack

public final class QueryStackImpl
extends Object
implements QueryStack

Stack for Query Objects


Constructor Summary
QueryStackImpl()
           
 
Method Summary
 void addQuery(Query query)
          adds a Query to the Stack
 void clear()
          clear the collection stack
 QueryStack duplicate(boolean deepCopy)
           
 QueryColumn getColumnFromACollection(Collection.Key key)
          loop over all Queries and return value as QueryColumn at first ocurrence
 QueryColumn getColumnFromACollection(String key)
          loop over all Queries and return value as QueryColumn at first ocurrence
 Object getDataFromACollection(Collection.Key key)
          loop over all Queries and return value at first ocurrence
 Object getDataFromACollection(PageContext pc, Collection.Key key)
          loop over all Queries and return value at first ocurrence
 Object getDataFromACollection(PageContext pc, String key)
          loop over all Queries and return value at first ocurrence
 Object getDataFromACollection(String key)
          loop over all Queries and return value at first ocurrence
 Query[] getQueries()
           
 boolean isEmpty()
           
 void removeQuery()
          removes a Query from Stack
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryStackImpl

public QueryStackImpl()
Method Detail

duplicate

public QueryStack duplicate(boolean deepCopy)

addQuery

public void addQuery(Query query)
Description copied from interface: QueryStack
adds a Query to the Stack

Specified by:
addQuery in interface QueryStack
See Also:
QueryStack.addQuery(railo.runtime.type.Query)

removeQuery

public void removeQuery()
Description copied from interface: QueryStack
removes a Query from Stack

Specified by:
removeQuery in interface QueryStack
See Also:
QueryStack.removeQuery()

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface QueryStack
Returns:
returns if stack is empty or not
See Also:
QueryStack.isEmpty()

getDataFromACollection

public Object getDataFromACollection(String key)
Description copied from interface: QueryStack
loop over all Queries and return value at first ocurrence

Specified by:
getDataFromACollection in interface QueryStack
Parameters:
key - column name of the value to get
Returns:
value
See Also:
QueryStack.getDataFromACollection(java.lang.String)

getDataFromACollection

public Object getDataFromACollection(PageContext pc,
                                     String key)
Description copied from interface: QueryStack
loop over all Queries and return value at first ocurrence

Specified by:
getDataFromACollection in interface QueryStack
key - column name of the value to get
Returns:
value
See Also:
QueryStack.getDataFromACollection(railo.runtime.PageContext, java.lang.String)

getDataFromACollection

public Object getDataFromACollection(Collection.Key key)
Description copied from interface: QueryStack
loop over all Queries and return value at first ocurrence

Specified by:
getDataFromACollection in interface QueryStack
Parameters:
key - column name of the value to get
Returns:
value
See Also:
QueryStack.getDataFromACollection(railo.runtime.type.Collection.Key)

getDataFromACollection

public Object getDataFromACollection(PageContext pc,
                                     Collection.Key key)
Description copied from interface: QueryStack
loop over all Queries and return value at first ocurrence

Specified by:
getDataFromACollection in interface QueryStack
key - column name of the value to get
Returns:
value
See Also:
QueryStack.getDataFromACollection(railo.runtime.PageContext, railo.runtime.type.Collection.Key)

getColumnFromACollection

public QueryColumn getColumnFromACollection(String key)
Description copied from interface: QueryStack
loop over all Queries and return value as QueryColumn at first ocurrence

Specified by:
getColumnFromACollection in interface QueryStack
Parameters:
key - column name of the value to get
Returns:
value
See Also:
QueryStack.getColumnFromACollection(java.lang.String)

getColumnFromACollection

public QueryColumn getColumnFromACollection(Collection.Key key)
Description copied from interface: QueryStack
loop over all Queries and return value as QueryColumn at first ocurrence

Specified by:
getColumnFromACollection in interface QueryStack
Parameters:
key - column name of the value to get
Returns:
value
See Also:
QueryStack.getColumnFromACollection(railo.runtime.type.Collection.Key)

clear

public void clear()
Description copied from interface: QueryStack
clear the collection stack

Specified by:
clear in interface QueryStack
See Also:
QueryStack.clear()

getQueries

public Query[] getQueries()
Specified by:
getQueries in interface QueryStack
Returns:
returns all queries in the stack
See Also:
QueryStack.getQueries()


Copyright © 2012 Railo