|
||||||||||
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 | |
---|---|
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 |
call(PageContext pc,
String 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 |
Object |
callWithNamedValues(PageContext pc,
String 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(QueryImpl query,
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)
|
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 |
Object |
get(int row,
Object defaultValue)
getExpressionLess method with a int as key |
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(PageContext pc,
String key)
return property or getter of the ContextCollection |
Object |
get(PageContext pc,
String key,
Object defaultValue)
return property |
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 |
Collection.Key |
getKey()
|
String |
getKeyAsString()
|
Object |
getParent()
|
int |
getType()
|
String |
getTypeAsString()
|
int |
indexOf(Object o)
|
boolean |
isEmpty()
|
boolean |
isInitalized()
|
Iterator |
iterator()
|
Iterator |
keyIterator()
|
Collection.Key[] |
keys()
|
String[] |
keysAsString()
|
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(PageContext pc,
String propertyName,
Object value)
sets a property (Data Member) value of the object |
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(PageContext pc,
String propertyName,
Object value)
sets a property (Data Member) value of the object |
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 exists |
Object |
touchEL(int row)
touch the given line on the column at given row |
Object |
touchEL(PageContext pc)
create it when not exists |
Iterator |
valueIterator()
|
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, 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
Collection.size()
public String[] keysAsString()
keysAsString
in interface Collection
Collection.keysAsString()
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
Collection.remove(railo.runtime.type.Collection.Key)
public Object remove(int row) throws DatabaseException
QueryColumn
remove
in interface QueryColumn
DatabaseException
QueryColumn.remove(int)
public Object removeEL(Collection.Key key)
Collection
removeEL
in interface Collection
key
- key of the collection
Collection.removeEL(railo.runtime.type.Collection.Key)
public Object removeEL(int row)
QueryColumn
removeEL
in interface QueryColumn
QueryColumn.removeEL(int)
public void clear()
Collection
clear
in interface Collection
Collection.clear()
public Object remove(PageContext pc) throws PageException
Reference
remove
in interface Reference
PageException
Reference.remove(PageContext pc)
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
Collection.get(java.lang.String)
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
Collection.get(railo.runtime.type.Collection.Key)
public Object get(PageContext pc, String key) throws PageException
Objects
get
in interface Objects
pc
- PageContextkey
- Name of the Property
PageException
railo.runtime.type.ContextCollection#get(railo.runtime.PageContext, java.lang.String)
public Object get(int row)
QueryColumn
get
in interface QueryColumn
row
- row to get value
QueryColumn.get(int)
public Object touch(int row) throws DatabaseException
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
Collection.get(railo.runtime.type.Collection.Key, java.lang.Object)
public Object get(String key, Object defaultValue)
Collection
get
in interface Collection
key
- key of the value to get
Collection.get(java.lang.String, java.lang.Object)
public Object get(PageContext pc, String key, Object defaultValue)
Objects
get
in interface Objects
pc
- key
- defaultValue
-
public Object get(int row, Object defaultValue)
QueryColumn
get
in interface QueryColumn
row
- row to get value
QueryColumn.get(int, java.lang.Object)
public Object set(String key, Object value) throws PageException
Collection
set
in interface Collection
key
- key of the new valuevalue
- value to set
PageException
Collection.set(java.lang.String, java.lang.Object)
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
QueryColumn.set(int, java.lang.Object)
public Object setEL(String key, Object value)
Collection
setEL
in interface Collection
key
- key of the value to getvalue
- value to set
Collection.setEL(java.lang.String, java.lang.Object)
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
QueryColumn.setEL(int, java.lang.Object)
public void add(Object value)
QueryColumn
add
in interface QueryColumn
value
- value to addQueryColumn.add(java.lang.Object)
public void cutRowsTo(int maxrows)
QueryColumn
cutRowsTo
in interface QueryColumn
QueryColumn.cutRowsTo(int)
public void addRow(int count)
addRow
in interface QueryColumn
count
- adds count row to the columnQueryColumn.addRow(int)
public Object removeRow(int row) throws DatabaseException
QueryColumn
removeRow
in interface QueryColumn
DatabaseException
public int getType()
getType
in interface QueryColumn
reorganize
-
QueryColumn.getType()
public String getTypeAsString()
getTypeAsString
in interface QueryColumn
QueryColumn.getTypeAsString()
public DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties dp)
Dumpable
toDumpData
in interface Dumpable
railo.runtime.dump.Dumpable#toDumpData(railo.runtime.PageContext, int)
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
Reference.getKeyAsString()
public Object get(PageContext pc)
get
in interface Reference
pc
- PageContext of the actuell Request
Reference.get(railo.runtime.PageContext)
public Object get(PageContext pc, Object defaultValue)
get
in interface Reference
pc
- PageContext of the actuell Request
Reference.get(railo.runtime.PageContext, java.lang.Object)
public Object touch(PageContext pc) throws PageException
Reference
touch
in interface Reference
PageException
Reference.touch(railo.runtime.PageContext)
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
Reference.set(railo.runtime.PageContext, java.lang.Object)
public Object setEL(PageContext pc, Object value)
setEL
in interface Reference
pc
- PageContext of the actuell Requestvalue
- resets the value of the variable
Reference.setEL(railo.runtime.PageContext, java.lang.Object)
public Object getParent()
getParent
in interface Reference
Reference.getParent()
public String castToString() throws PageException
Castable
castToString
in interface Castable
PageException
Castable.castToString()
public String castToString(String defaultValue)
Castable
castToString
in interface Castable
Castable.castToString(java.lang.String)
public boolean castToBooleanValue() throws PageException
Castable
castToBooleanValue
in interface Castable
PageException
Castable.castToBooleanValue()
public Boolean castToBoolean(Boolean defaultValue)
Castable
castToBoolean
in interface Castable
Castable.castToBoolean(java.lang.Boolean)
public double castToDoubleValue() throws PageException
Castable
castToDoubleValue
in interface Castable
PageException
Castable.castToDoubleValue()
public double castToDoubleValue(double defaultValue)
Castable
castToDoubleValue
in interface Castable
Castable.castToDoubleValue(double)
public DateTime castToDateTime() throws PageException
Castable
castToDateTime
in interface Castable
PageException
Castable.castToDateTime()
public DateTime castToDateTime(DateTime defaultValue)
Castable
castToDateTime
in interface Castable
defaultValue
- returned when it is not possible to cast to a dateTime object
Castable.castToDateTime(railo.runtime.type.dt.DateTime)
public int compareTo(boolean b) throws PageException
compareTo
in interface Castable
PageException
railo.runtime.op.Castable#compare(boolean)
public int compareTo(DateTime dt) throws PageException
compareTo
in interface Castable
PageException
Castable.compareTo(railo.runtime.type.dt.DateTime)
public int compareTo(double d) throws PageException
compareTo
in interface Castable
PageException
Castable.compareTo(double)
public int compareTo(String str) throws PageException
compareTo
in interface Castable
PageException
Castable.compareTo(java.lang.String)
public Object clone()
clone
in interface Collection
clone
in class Object
Collection.clone()
public Collection duplicate(boolean deepCopy)
duplicate
in interface Collection
public QueryColumnPro cloneColumn(QueryImpl query, boolean deepCopy)
cloneColumn
in interface QueryColumnPro
public String toString()
toString
in class Object
Object.toString()
public boolean containsKey(String key)
Collection
containsKey
in interface Collection
Collection.containsKey(java.lang.String)
public boolean containsKey(Collection.Key key)
Collection
containsKey
in interface Collection
Collection.containsKey(railo.runtime.type.Collection.Key)
public long sizeOf()
Sizeable
sizeOf
in interface Sizeable
Sizeable.sizeOf()
public Iterator iterator()
iterator
in interface Iteratorable
Iteratorable.iterator()
public Iterator keyIterator()
keyIterator
in interface Iteratorable
Iteratorable.keyIterator()
public Iterator valueIterator()
valueIterator
in interface Iteratorable
Iteratorable.valueIterator()
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
Objects.callWithNamedValues(railo.runtime.PageContext, railo.runtime.type.Collection.Key, railo.runtime.type.Struct)
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
Objects.call(railo.runtime.PageContext, railo.runtime.type.Collection.Key, java.lang.Object[])
public Object call(PageContext pc, String methodName, Object[] arguments) throws PageException
Objects
call
in interface Objects
methodName
- name of the method to callarguments
- arguments to call method with
PageException
Objects.call(railo.runtime.PageContext, java.lang.String, java.lang.Object[])
public Object callWithNamedValues(PageContext pc, String methodName, Struct args) throws PageException
Objects
callWithNamedValues
in interface Objects
pc
- PageContextmethodName
- name of the methodargs
- Named Arguments for the method
PageException
Objects.callWithNamedValues(railo.runtime.PageContext, java.lang.String, railo.runtime.type.Struct)
public Object get(PageContext pc, Collection.Key key, Object defaultValue)
Objects
get
in interface Objects
pc
- PageContextkey
- Name of the Property
Objects.get(railo.runtime.PageContext, railo.runtime.type.Collection.Key, java.lang.Object)
public Object get(PageContext pc, Collection.Key key) throws PageException
Objects
get
in interface Objects
pc
- PageContextkey
- Name of the Property
PageException
Objects.get(railo.runtime.PageContext, railo.runtime.type.Collection.Key)
public boolean isInitalized()
isInitalized
in interface Objects
Objects.isInitalized()
public Object set(PageContext pc, String propertyName, Object value) throws PageException
Objects
set
in interface Objects
propertyName
- property name to setvalue
- value to insert
PageException
Objects.set(railo.runtime.PageContext, java.lang.String, java.lang.Object)
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
Objects.set(railo.runtime.PageContext, railo.runtime.type.Collection.Key, java.lang.Object)
public Object setEL(PageContext pc, String propertyName, Object value)
Objects
setEL
in interface Objects
propertyName
- property name to setvalue
- value to insert
Objects.setEL(railo.runtime.PageContext, java.lang.String, java.lang.Object)
public Object setEL(PageContext pc, Collection.Key propertyName, Object value)
Objects
setEL
in interface Objects
propertyName
- property name to setvalue
- value to insert
Objects.setEL(railo.runtime.PageContext, railo.runtime.type.Collection.Key, java.lang.Object)
public void add(int index, Object element)
List.add(int, java.lang.Object)
public boolean addAll(Collection<? extends Object> c)
List.addAll(java.util.Collection)
public boolean addAll(int index, Collection<? extends Object> c)
List.addAll(int, java.util.Collection)
public boolean contains(Object o)
List.contains(java.lang.Object)
public boolean containsAll(Collection<?> c)
List.containsAll(java.util.Collection)
public int indexOf(Object o)
List.indexOf(java.lang.Object)
public int lastIndexOf(Object o)
List.lastIndexOf(java.lang.Object)
public boolean isEmpty()
List.isEmpty()
public boolean removeAll(Collection<?> c)
List.removeAll(java.util.Collection)
public boolean retainAll(Collection<?> c)
List.retainAll(java.util.Collection)
public List<Object> subList(int fromIndex, int toIndex)
List.subList(int, int)
public Object[] toArray()
List.toArray()
public Object[] toArray(Object[] trg)
java.util.List#toArray(T[])
public boolean equals(Object obj)
equals
in class Object
public QueryColumnPro toDebugColumn()
toDebugColumn
in interface QueryColumnPro
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |