|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrailo.runtime.type.QueryColumnImpl
public class QueryColumnImpl
implementation of the query column
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface railo.runtime.type.Collection |
---|
Collection.Key |
Constructor Summary | |
---|---|
QueryColumnImpl()
Constructor of the class for internal usage only |
|
QueryColumnImpl(QueryImpl query,
Collection.Key key,
Array array,
int type)
constructor with array |
|
QueryColumnImpl(QueryImpl query,
Collection.Key key,
int type)
constructor with type |
|
QueryColumnImpl(QueryImpl query,
Collection.Key key,
int type,
int size)
|
Method Summary | |
---|---|
DebugQueryColumn |
_toDebugColumn()
|
void |
add(int index,
Object element)
|
void |
add(Object value)
adds a value to the column |
boolean |
addAll(Collection<? extends Object> c)
|
boolean |
addAll(int index,
Collection<? extends Object> c)
|
void |
addRow(int count)
|
Object |
call(PageContext pc,
Collection.Key methodName,
Object[] arguments)
calls a method of the object |
Object |
callWithNamedValues(PageContext pc,
Collection.Key methodName,
Struct args)
call a method of the Object with named arguments |
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()
|
QueryColumnPro |
cloneColumn(Query query,
boolean deepCopy)
|
QueryColumnImpl |
cloneColumnImpl(boolean deepCopy)
|
int |
compareTo(boolean b)
|
int |
compareTo(DateTime dt)
|
int |
compareTo(double d)
|
int |
compareTo(String str)
|
boolean |
contains(Object o)
|
boolean |
containsAll(Collection<?> c)
|
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)
|
Iterator<Map.Entry<Collection.Key,Object>> |
entryIterator()
|
boolean |
equals(Object obj)
|
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, return empty default value for invalid row |
Object |
get(int row,
Object defaultValue)
return the value in this row (can be null), when row number is invalid the default value is returned |
Object |
get(PageContext pc)
|
Object |
get(PageContext pc,
Collection.Key key)
return property or getter of the ContextCollection |
Object |
get(PageContext pc,
Collection.Key key,
Object defaultValue)
return property |
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 |
Iterator<String> |
getIterator()
|
Collection.Key |
getKey()
|
String |
getKeyAsString()
|
Object |
getParent()
|
int |
getType()
|
String |
getTypeAsString()
|
int |
hashCode()
|
int |
indexOf(Object o)
|
boolean |
isEmpty()
|
Iterator |
iterator()
|
Iterator<Collection.Key> |
keyIterator()
|
Collection.Key[] |
keys()
|
Iterator<String> |
keysAsStringIterator()
|
int |
lastIndexOf(Object o)
|
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 |
boolean |
removeAll(Collection<?> c)
|
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 |
boolean |
retainAll(Collection<?> c)
|
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,
Collection.Key propertyName,
Object value)
sets a property (Data Member) value of the object |
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,
Collection.Key propertyName,
Object value)
sets a property (Data Member) value of the object |
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 |
void |
setKey(Collection.Key key)
|
int |
size()
|
long |
sizeOf()
return the size of the object |
List<Object> |
subList(int fromIndex,
int toIndex)
|
Object[] |
toArray()
|
Object[] |
toArray(Object[] trg)
|
QueryColumnPro |
toDebugColumn()
|
DumpData |
toDumpData(PageContext pageContext,
int maxlevel,
DumpProperties dp)
method to print out information to a object as HTML |
String |
toString()
|
Object |
touch(int row)
touch the given line on the column at given row |
Object |
touch(PageContext pc)
create it when not exist |
Object |
touchEL(int row)
touch the given line on the column at given row |
Object |
touchEL(PageContext pc)
create it when not exist |
Iterator<Object> |
valueIterator()
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public QueryColumnImpl(QueryImpl query, Collection.Key key, int type)
query
- key
- type
- public QueryColumnImpl(QueryImpl query, Collection.Key key, Array array, int type)
query
- array
- type
- public QueryColumnImpl(QueryImpl query, Collection.Key key, int type, int size)
query
- type
- type as (java.sql.Types.XYZ) intsize
- public QueryColumnImpl()
Method Detail |
---|
public int size()
size
in interface Collection
public Collection.Key[] keys()
keys
in interface Collection
public Object remove(Collection.Key key) throws PageException
Collection
remove
in interface Collection
key
- key of the collection
PageException
public Object remove(int row) throws DatabaseException
QueryColumn
remove
in interface QueryColumn
DatabaseException
public Object removeEL(Collection.Key key)
Collection
removeEL
in interface Collection
key
- key of the collection
public Object removeEL(int row)
QueryColumn
removeEL
in interface QueryColumn
public void clear()
Collection
clear
in interface Collection
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 get(String key) throws PageException
Collection
get
in interface Collection
key
- key of the value to get
PageException
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 Object get(PageContext pc, Collection.Key key) throws PageException
Objects
get
in interface Objects
pc
- PageContextkey
- Name of the Property
PageException
public Object touch(int row)
row
-
DatabaseException
public Object touchEL(int row)
row
-
DatabaseException
public Object get(Collection.Key key, Object defaultValue)
Collection
get
in interface Collection
key
- key of the value to get
public Object get(PageContext pc, Collection.Key key, Object defaultValue)
Objects
get
in interface Objects
pc
- PageContextkey
- Name of the Property
public Object get(String key, Object defaultValue)
Collection
get
in interface Collection
key
- key of the value to get
public Object get(int row) throws DeprecatedException
QueryColumn
get
in interface QueryColumn
row
- row to get value
DeprecatedException
public Object get(int row, Object defaultValue)
QueryColumn
get
in interface QueryColumn
row
- row to get value
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 set(int row, Object value) throws DatabaseException
QueryColumn
set
in interface QueryColumn
row
- row to setvalue
- value to set
DatabaseException
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 Object setEL(int row, Object value)
QueryColumn
setEL
in interface QueryColumn
row
- row to setvalue
- value to set
public void add(Object value)
QueryColumn
add
in interface QueryColumn
value
- value to addpublic void cutRowsTo(int maxrows)
QueryColumn
cutRowsTo
in interface QueryColumn
public void addRow(int count)
addRow
in interface QueryColumn
count
- adds count row to the columnpublic Object removeRow(int row) throws DatabaseException
QueryColumn
removeRow
in interface QueryColumn
DatabaseException
public int getType()
getType
in interface QueryColumn
public String getTypeAsString()
getTypeAsString
in interface QueryColumn
public DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties dp)
Dumpable
toDumpData
in interface Dumpable
public Collection.Key getKey()
getKey
in interface Reference
public void setKey(Collection.Key key)
setKey
in interface QueryColumnPro
public String getKeyAsString() throws PageException
getKeyAsString
in interface Reference
PageException
public Object get(PageContext pc)
get
in interface Reference
pc
- PageContext of the actuell Request
public Object get(PageContext pc, Object defaultValue)
get
in interface Reference
pc
- PageContext of the actuell Request
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 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 getParent()
getParent
in interface Reference
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(boolean b) throws PageException
compareTo
in interface Castable
PageException
public int compareTo(DateTime dt) throws PageException
compareTo
in interface Castable
PageException
public int compareTo(double d) throws PageException
compareTo
in interface Castable
PageException
public int compareTo(String str) throws PageException
compareTo
in interface Castable
PageException
public Object clone()
clone
in interface Collection
clone
in class Object
public Collection duplicate(boolean deepCopy)
duplicate
in interface Collection
public QueryColumnPro cloneColumn(Query query, boolean deepCopy)
cloneColumn
in interface QueryColumnPro
public QueryColumnImpl cloneColumnImpl(boolean deepCopy)
public String toString()
toString
in class Object
public boolean containsKey(String key)
Collection
containsKey
in interface Collection
public boolean containsKey(Collection.Key key)
Collection
containsKey
in interface Collection
public long sizeOf()
Sizeable
sizeOf
in interface Sizeable
public Iterator iterator()
public Iterator<Collection.Key> keyIterator()
keyIterator
in interface Iteratorable
public Iterator<String> keysAsStringIterator()
keysAsStringIterator
in interface Iteratorable
public Iterator<Map.Entry<Collection.Key,Object>> entryIterator()
entryIterator
in interface Iteratorable
public Iterator<Object> valueIterator()
valueIterator
in interface Iteratorable
public Object callWithNamedValues(PageContext pc, Collection.Key methodName, Struct args) throws PageException
Objects
callWithNamedValues
in interface Objects
pc
- PageContextmethodName
- name of the methodargs
- Named Arguments for the method
PageException
public Object call(PageContext pc, Collection.Key methodName, Object[] arguments) throws PageException
Objects
call
in interface Objects
methodName
- name of the method to callarguments
- arguments to call method with
PageException
public Object set(PageContext pc, Collection.Key propertyName, Object value) throws PageException
Objects
set
in interface Objects
propertyName
- property name to setvalue
- value to insert
PageException
public Object setEL(PageContext pc, Collection.Key propertyName, Object value)
Objects
setEL
in interface Objects
propertyName
- property name to setvalue
- value to insert
public void add(int index, Object element)
public boolean addAll(Collection<? extends Object> c)
public boolean addAll(int index, Collection<? extends Object> c)
public boolean contains(Object o)
public boolean containsAll(Collection<?> c)
public int indexOf(Object o)
public int lastIndexOf(Object o)
public boolean isEmpty()
public boolean removeAll(Collection<?> c)
public boolean retainAll(Collection<?> c)
public List<Object> subList(int fromIndex, int toIndex)
public Object[] toArray()
public Object[] toArray(Object[] trg)
public QueryColumnPro toDebugColumn()
toDebugColumn
in interface QueryColumnPro
public DebugQueryColumn _toDebugColumn()
public Iterator<String> getIterator()
getIterator
in interface ForEachIteratorable
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |