|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrailo.runtime.util.VariableUtilImpl
public final class VariableUtilImpl
Class to handle CF Variables (set,get,call)
Constructor Summary | |
---|---|
VariableUtilImpl()
|
Method Summary | |
---|---|
Object |
callFunction(PageContext pc,
Object coll,
String key,
Object[] args)
call a Function (UDF, Method) with or witout named values |
Object |
callFunctionWithNamedValues(PageContext pc,
Object coll,
Collection.Key key,
Object[] args)
|
Object |
callFunctionWithNamedValues(PageContext pc,
Object coll,
Collection.Key key,
Struct args)
|
Object |
callFunctionWithNamedValues(PageContext pc,
Object coll,
String key,
Object[] args)
call a Function (UDF, Method) with Named Values |
Object |
callFunctionWithoutNamedValues(PageContext pc,
Object coll,
Collection.Key key,
Object[] args)
|
Object |
callFunctionWithoutNamedValues(PageContext pc,
Object coll,
String key,
Object[] args)
call a Function (UDF, Method) without Named Values |
static Object |
columnlist(PageContext pc,
Object obj)
|
static Object |
currentrow(PageContext pc,
Object obj)
|
Object |
get(PageContext pc,
Object coll,
Collection.Key key)
|
Object |
get(PageContext pc,
Object coll,
Collection.Key key,
Object defaultValue)
|
Object |
get(PageContext pc,
Object coll,
String key)
return a property from the given Object, when property doesn't exists throw exception |
Object |
get(PageContext pc,
Object coll,
String key,
Object defaultValue)
return a property from the given Object, when property doesn't exists return null |
Object |
getCollection(PageContext pc,
Object coll,
Collection.Key key)
|
Object |
getCollection(PageContext pc,
Object coll,
Collection.Key key,
Object defaultValue)
|
Object |
getCollection(PageContext pc,
Object coll,
String key)
return a property from the given Object, when coll is a query return a Column,when property doesn't exists throw exception |
Object |
getCollection(PageContext pc,
Object coll,
String key,
Object defaultValue)
return a property from the given Object, when property doesn't exists return null |
Object |
getLight(PageContext pc,
Object coll,
Collection.Key key,
Object defaultValue)
|
Object |
getLight(PageContext pc,
Object coll,
String key,
Object defaultValue)
return a property from the given Object, when property doesn't exists return null |
static Object |
recordcount(PageContext pc,
Object obj)
|
Object |
remove(Object coll,
Collection.Key key)
|
Object |
remove(Object coll,
String key)
clear value from Collection |
Object |
removeEL(Object coll,
Collection.Key key)
|
Object |
removeEL(Object coll,
String key)
remove value from Collection |
Object |
set(PageContext pc,
Object coll,
Collection.Key key,
Object value)
|
Object |
set(PageContext pc,
Object coll,
String key,
Object value)
sets a value to the Object |
Object |
setEL(PageContext pc,
Object coll,
Collection.Key key,
Object value)
|
Object |
setEL(PageContext pc,
Object coll,
String key,
Object value)
sets a value to the Object |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VariableUtilImpl()
Method Detail |
---|
public Object getCollection(PageContext pc, Object coll, String key, Object defaultValue)
VariableUtil
getCollection
in interface VariableUtil
coll
- Collection to checkkey
- to get from Collection
railo.runtime.util.VariableUtil#getCollectionEL(railo.runtime.PageContext, java.lang.Object, java.lang.String)
public Object getCollection(PageContext pc, Object coll, Collection.Key key, Object defaultValue)
public Object get(PageContext pc, Object coll, String key, Object defaultValue)
VariableUtil
get
in interface VariableUtil
coll
- Collection to checkkey
- to get from Collection
VariableUtil.get(railo.runtime.PageContext, java.lang.Object, java.lang.String, java.lang.Object)
public Object get(PageContext pc, Object coll, Collection.Key key, Object defaultValue)
public Object getLight(PageContext pc, Object coll, Collection.Key key, Object defaultValue)
public Object getLight(PageContext pc, Object coll, String key, Object defaultValue)
VariableUtil
getLight
in interface VariableUtil
coll
- Collection to checkkey
- to get from Collection
railo.runtime.util.VariableUtil#getLightEL(railo.runtime.PageContext, java.lang.Object, java.lang.String)
public Object getCollection(PageContext pc, Object coll, String key) throws PageException
VariableUtil
getCollection
in interface VariableUtil
coll
- Collection to checkkey
- to get from Collection
PageException
VariableUtil.getCollection(railo.runtime.PageContext, java.lang.Object, java.lang.String)
public Object getCollection(PageContext pc, Object coll, Collection.Key key) throws PageException
PageException
public Object get(PageContext pc, Object coll, Collection.Key key) throws PageException
PageException
public Object get(PageContext pc, Object coll, String key) throws PageException
VariableUtil
get
in interface VariableUtil
coll
- Collection to checkkey
- to get from Collection
PageException
VariableUtil.get(railo.runtime.PageContext, java.lang.Object, java.lang.String)
public Object set(PageContext pc, Object coll, Collection.Key key, Object value) throws PageException
PageException
public Object set(PageContext pc, Object coll, String key, Object value) throws PageException
VariableUtil
set
in interface VariableUtil
coll
- Collection to checkkey
- to get from Collectionvalue
- Value to set
PageException
VariableUtil.set(railo.runtime.PageContext, java.lang.Object, java.lang.String, java.lang.Object)
public Object setEL(PageContext pc, Object coll, String key, Object value)
VariableUtil
setEL
in interface VariableUtil
coll
- Collection to checkkey
- to get from Collectionvalue
- Value to set
VariableUtil.setEL(railo.runtime.PageContext, java.lang.Object, java.lang.String, java.lang.Object)
public Object setEL(PageContext pc, Object coll, Collection.Key key, Object value)
public Object removeEL(Object coll, String key)
VariableUtil
removeEL
in interface VariableUtil
VariableUtil.removeEL(java.lang.Object, java.lang.String)
public Object removeEL(Object coll, Collection.Key key)
public Object remove(Object coll, String key) throws PageException
VariableUtil
remove
in interface VariableUtil
PageException
VariableUtil.remove(java.lang.Object, java.lang.String)
public Object remove(Object coll, Collection.Key key) throws PageException
PageException
public Object callFunction(PageContext pc, Object coll, String key, Object[] args) throws PageException
VariableUtil
callFunction
in interface VariableUtil
coll
- Collection of the UDF Functionkey
- name of the functionargs
- arguments to call the function
PageException
VariableUtil.callFunction(railo.runtime.PageContext, java.lang.Object, java.lang.String, java.lang.Object[])
public Object callFunctionWithoutNamedValues(PageContext pc, Object coll, String key, Object[] args) throws PageException
VariableUtil
callFunctionWithoutNamedValues
in interface VariableUtil
coll
- Collection of the UDF Functionkey
- name of the functionargs
- arguments to call the function
PageException
VariableUtil.callFunctionWithoutNamedValues(railo.runtime.PageContext, java.lang.Object, java.lang.String, java.lang.Object[])
public Object callFunctionWithoutNamedValues(PageContext pc, Object coll, Collection.Key key, Object[] args) throws PageException
PageException
public Object callFunctionWithNamedValues(PageContext pc, Object coll, String key, Object[] args) throws PageException
VariableUtil
callFunctionWithNamedValues
in interface VariableUtil
coll
- Collection of the UDF Functionkey
- name of the functionargs
- arguments to call the function
PageException
VariableUtil.callFunctionWithNamedValues(railo.runtime.PageContext, java.lang.Object, java.lang.String, java.lang.Object[])
public Object callFunctionWithNamedValues(PageContext pc, Object coll, Collection.Key key, Object[] args) throws PageException
PageException
public Object callFunctionWithNamedValues(PageContext pc, Object coll, Collection.Key key, Struct args) throws PageException
PageException
public static Object recordcount(PageContext pc, Object obj) throws PageException
PageException
public static Object currentrow(PageContext pc, Object obj) throws PageException
PageException
public static Object columnlist(PageContext pc, Object obj) throws PageException
PageException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |