|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrailo.runtime.type.query.SimpleQueryColumn
public class SimpleQueryColumn
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface railo.runtime.type.Collection |
---|
Collection.Key |
Constructor Summary | |
---|---|
SimpleQueryColumn(SimpleQuery qry,
ResultSet res,
Collection.Key key,
int type,
int index)
|
Method Summary | |
---|---|
void |
add(Object value)
adds a value to the column |
void |
addRow(int count)
|
Boolean |
castToBoolean(Boolean defaultValue)
cast the castable value to a boolean value |
boolean |
castToBooleanValue()
cast the castable value to a boolean value |
DateTime |
castToDateTime()
cast the castable value to a date time object |
DateTime |
castToDateTime(DateTime defaultValue)
cast the castable value to a date time object |
double |
castToDoubleValue()
cast the castable value to a double value |
double |
castToDoubleValue(double defaultValue)
cast the castable value to a double value |
String |
castToString()
cast the castable value to a string, other than the Method toString, this Method can throw a Exception |
String |
castToString(String defaultValue)
cast the castable value to a string, return the default value, when the method is not castable |
void |
clear()
clears the collection |
Object |
clone()
|
int |
compareTo(boolean b)
|
int |
compareTo(DateTime dt)
|
int |
compareTo(double d)
|
int |
compareTo(String str)
|
boolean |
containsKey(Collection.Key key)
contains this key |
boolean |
containsKey(String key)
contains this key |
void |
cutRowsTo(int maxrows)
cuts row to defined size |
Collection |
duplicate(boolean deepCopy)
|
Object |
get(Collection.Key key)
return a value from the collection |
Object |
get(Collection.Key key,
Object defaultValue)
return a value from the collection, if key doesn't exist, dont throw a exception, reeturns null |
Object |
get(int row)
get method with a int as key |
Object |
get(int row,
Object defaultValue)
getExpressionLess method with a int as key |
Object |
get(PageContext pc)
|
Object |
get(PageContext pc,
Object defaultValue)
|
Object |
get(String key)
return a value from the collection |
Object |
get(String key,
Object defaultValue)
return a value from the collection, if key doesn't exist, dont throw a exception, reeturns null |
int |
getIndex()
|
Collection.Key |
getKey()
|
String |
getKeyAsString()
|
Object |
getParent()
|
int |
getType()
|
String |
getTypeAsString()
|
Iterator |
iterator()
|
Iterator |
keyIterator()
|
Collection.Key[] |
keys()
|
String[] |
keysAsString()
|
Object |
remove(Collection.Key key)
removes value from collection and return it when it exists, otherwise throws a exception |
Object |
remove(int row)
removes the value but dont the index |
Object |
remove(PageContext pc)
clears the variable from collection |
Object |
removeEL(Collection.Key key)
removes value from collection and return it when it exists, otherwise returns null |
Object |
removeEL(int row)
removes method with int as key |
Object |
removeEL(PageContext pc)
clears the variable from collection |
Object |
removeRow(int row)
remove a row from query |
Object |
set(Collection.Key key,
Object value)
sets a value to the collection |
Object |
set(int row,
Object value)
set method with a int as key |
Object |
set(PageContext pc,
Object value)
|
Object |
set(String key,
Object value)
sets a value to the collection |
Object |
setEL(Collection.Key key,
Object value)
sets a value to the collection, if key doesn't exist, dont throw a exception, returns null |
Object |
setEL(int row,
Object value)
setExpressionLess method with a int as key |
Object |
setEL(PageContext pc,
Object value)
|
Object |
setEL(String key,
Object value)
sets a value to the collection, if key doesn't exist, dont throw a exception, returns null |
int |
size()
|
DumpData |
toDumpData(PageContext pageContext,
int maxlevel,
DumpProperties properties)
method to print out information to a object as HTML |
Object |
touch(PageContext pc)
create it when not exists |
Object |
touchEL(PageContext pc)
create it when not exists |
Iterator |
valueIterator()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleQueryColumn(SimpleQuery qry, ResultSet res, Collection.Key key, int type, int index)
Method Detail |
---|
public Object get(Collection.Key key, Object defaultValue)
Collection
get
in interface Collection
key
- key of the value to get
public Object get(Collection.Key key) throws PageException
Collection
get
in interface Collection
key
- key of the value to get must be lower case
PageException
public int size()
size
in interface Collection
public Collection.Key[] keys()
keys
in interface Collection
public String[] keysAsString()
keysAsString
in interface Collection
public Object remove(Collection.Key key) throws PageException
Collection
remove
in interface Collection
key
- key of the collection
PageException
public Object removeEL(Collection.Key key)
Collection
removeEL
in interface Collection
key
- key of the collection
public void clear()
Collection
clear
in interface Collection
public Object get(String key) throws PageException
Collection
get
in interface Collection
key
- key of the value to get
PageException
public Object get(String key, Object defaultValue)
Collection
get
in interface Collection
key
- key of the value to get
public Object set(String key, Object value) throws PageException
Collection
set
in interface Collection
key
- key of the new valuevalue
- value to set
PageException
public Object set(Collection.Key key, Object value) throws PageException
Collection
set
in interface Collection
key
- key of the new valuevalue
- value to set
PageException
public Object setEL(String key, Object value)
Collection
setEL
in interface Collection
key
- key of the value to getvalue
- value to set
public Object setEL(Collection.Key key, Object value)
Collection
setEL
in interface Collection
key
- key of the value to getvalue
- value to set
public Collection duplicate(boolean deepCopy)
duplicate
in interface Collection
public boolean containsKey(String key)
Collection
containsKey
in interface Collection
public boolean containsKey(Collection.Key key)
Collection
containsKey
in interface Collection
public DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties properties)
Dumpable
toDumpData
in interface Dumpable
public Iterator keyIterator()
keyIterator
in interface Iteratorable
public Iterator valueIterator()
valueIterator
in interface Iteratorable
public Iterator iterator()
iterator
in interface Iteratorable
public String castToString() throws PageException
Castable
castToString
in interface Castable
PageException
public String castToString(String defaultValue)
Castable
castToString
in interface Castable
public boolean castToBooleanValue() throws PageException
Castable
castToBooleanValue
in interface Castable
PageException
public Boolean castToBoolean(Boolean defaultValue)
Castable
castToBoolean
in interface Castable
public double castToDoubleValue() throws PageException
Castable
castToDoubleValue
in interface Castable
PageException
public double castToDoubleValue(double defaultValue)
Castable
castToDoubleValue
in interface Castable
public DateTime castToDateTime() throws PageException
Castable
castToDateTime
in interface Castable
PageException
public DateTime castToDateTime(DateTime defaultValue)
Castable
castToDateTime
in interface Castable
defaultValue
- returned when it is not possible to cast to a dateTime object
public int compareTo(String str) throws PageException
compareTo
in interface Castable
PageException
public int compareTo(boolean b) throws PageException
compareTo
in interface Castable
PageException
public int compareTo(double d) throws PageException
compareTo
in interface Castable
PageException
public int compareTo(DateTime dt) throws PageException
compareTo
in interface Castable
PageException
public String getKeyAsString()
getKeyAsString
in interface Reference
public Collection.Key getKey()
getKey
in interface Reference
public Object get(PageContext pc) throws PageException
get
in interface Reference
pc
- PageContext of the actuell Request
PageException
public Object get(PageContext pc, Object defaultValue)
get
in interface Reference
pc
- PageContext of the actuell Request
public Object set(PageContext pc, Object value) throws PageException
set
in interface Reference
pc
- PageContext of the actuell Requestvalue
- resets the value of the variable
PageException
public Object setEL(PageContext pc, Object value)
setEL
in interface Reference
pc
- PageContext of the actuell Requestvalue
- resets the value of the variable
public Object remove(PageContext pc) throws PageException
Reference
remove
in interface Reference
PageException
public Object removeEL(PageContext pc)
Reference
removeEL
in interface Reference
public Object touch(PageContext pc) throws PageException
Reference
touch
in interface Reference
PageException
public Object touchEL(PageContext pc)
Reference
touchEL
in interface Reference
public Object getParent()
getParent
in interface Reference
public Object remove(int row) throws PageException
QueryColumn
remove
in interface QueryColumn
PageException
public Object removeRow(int row) throws PageException
QueryColumn
removeRow
in interface QueryColumn
PageException
public Object removeEL(int row)
QueryColumn
removeEL
in interface QueryColumn
public Object get(int row) throws PageException
QueryColumn
get
in interface QueryColumn
row
- row to get value
PageException
public Object get(int row, Object defaultValue)
QueryColumn
get
in interface QueryColumn
row
- row to get value
public Object set(int row, Object value) throws PageException
QueryColumn
set
in interface QueryColumn
row
- row to setvalue
- value to set
PageException
public void add(Object value)
QueryColumn
add
in interface QueryColumn
value
- value to addpublic Object setEL(int row, Object value)
QueryColumn
setEL
in interface QueryColumn
row
- row to setvalue
- value to set
public void addRow(int count)
addRow
in interface QueryColumn
count
- adds count row to the columnpublic int getType()
getType
in interface QueryColumn
public String getTypeAsString()
getTypeAsString
in interface QueryColumn
public void cutRowsTo(int maxrows)
QueryColumn
cutRowsTo
in interface QueryColumn
public Object clone()
clone
in interface Collection
clone
in class Object
public int getIndex()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |