public class QueryColumnImpl extends Object implements QueryColumnPro, Sizeable, Objects
Collection.Key
Constructor and Description |
---|
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) |
Modifier and Type | Method and Description |
---|---|
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 |
append(Object o)
append a new value to the end of the array
|
Object |
appendEL(Object o) |
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(int 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 emptyValue)
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
|
int |
getDimension()
return dimension of the array
|
Object |
getE(int row)
return object a given position, key can only be a integer from 1 to array len
|
Iterator<String> |
getIterator() |
Collection.Key |
getKey() |
String |
getKeyAsString() |
Object |
getParent() |
int |
getType() |
String |
getTypeAsString() |
int |
indexOf(Object o) |
boolean |
insert(int key,
Object value)
insert a value add defined position
|
int[] |
intKeys() |
boolean |
isEmpty() |
Iterator |
iterator() |
Iterator<Collection.Key> |
keyIterator() |
Collection.Key[] |
keys() |
Iterator<String> |
keysAsStringIterator() |
int |
lastIndexOf(Object o) |
Object |
prepend(Object o)
add a new value to the begin of the array
|
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 |
removeE(int key)
removes a value ad defined key
|
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
|
void |
resize(int to)
resize array to defined size
|
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 |
setE(int key,
Object value)
set value at defined position
|
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
|
void |
sort(Comparator comp) |
void |
sort(String sortType,
String sortOrder)
sort values of a array
|
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
|
List |
toList() |
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() |
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()
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 collectionPageException
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 collectionpublic Object removeEL(int row)
QueryColumn
removeEL
in interface Array
removeEL
in interface QueryColumn
row
- key to removepublic 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
public Object get(String key) throws PageException
Collection
get
in interface Collection
key
- key of the value to getPageException
public Object get(Collection.Key key) throws PageException
Collection
get
in interface Collection
key
- key of the value to get must be lower casePageException
public Object get(PageContext pc, Collection.Key key) throws PageException
Objects
get
in interface Objects
pc
- PageContextkey
- Name of the PropertyPageException
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 getpublic Object get(PageContext pc, Collection.Key key, Object defaultValue)
Objects
public Object get(String key, Object defaultValue)
Collection
get
in interface Collection
key
- key of the value to getpublic Object get(int row) throws DeprecatedException
QueryColumn
get
in interface QueryColumn
row
- row to get valueDeprecatedException
public Object get(int row, Object emptyValue)
QueryColumn
get
in interface Array
get
in interface QueryColumn
row
- row to get valueemptyValue
- value returned when row does not exists or the rows value is nullpublic Object set(String key, Object value) throws PageException
Collection
set
in interface Collection
key
- key of the new valuevalue
- value to setPageException
public Object set(Collection.Key key, Object value) throws PageException
Collection
set
in interface Collection
key
- key of the new valuevalue
- value to setPageException
public Object set(int row, Object value) throws DatabaseException
QueryColumn
set
in interface QueryColumn
row
- row to setvalue
- value to setDatabaseException
public Object setEL(String key, Object value)
Collection
setEL
in interface Collection
key
- key of the value to getvalue
- value to setpublic Object setEL(Collection.Key key, Object value)
Collection
setEL
in interface Collection
key
- key of the value to getvalue
- value to setpublic Object setEL(int row, Object value)
QueryColumn
setEL
in interface Array
setEL
in interface QueryColumn
row
- row to setvalue
- value to setpublic 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()
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)
public Object get(PageContext pc, Object defaultValue)
public Object touch(PageContext pc) throws PageException
Reference
touch
in interface Reference
PageException
public Object touchEL(PageContext pc)
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 variablePageException
public Object setEL(PageContext pc, Object value)
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 objectpublic 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 boolean containsKey(String key)
Collection
containsKey
in interface Collection
public boolean containsKey(Collection.Key key)
Collection
containsKey
in interface Collection
public long sizeOf()
Sizeable
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 methodPageException
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 withPageException
public Object set(PageContext pc, Collection.Key propertyName, Object value) throws PageException
Objects
set
in interface Objects
propertyName
- property name to setvalue
- value to insertPageException
public Object setEL(PageContext pc, Collection.Key propertyName, Object value)
Objects
public boolean addAll(Collection<? extends Object> c)
public boolean addAll(int index, Collection<? extends Object> c)
public boolean containsAll(Collection<?> c)
public int lastIndexOf(Object o)
public boolean isEmpty()
public boolean removeAll(Collection<?> c)
public boolean retainAll(Collection<?> c)
public QueryColumnPro toDebugColumn()
toDebugColumn
in interface QueryColumnPro
public DebugQueryColumn _toDebugColumn()
public Iterator<String> getIterator()
getIterator
in interface ForEachIteratorable
public int getDimension()
Array
getDimension
in interface Array
public Object getE(int row) throws PageException
Array
getE
in interface Array
row
- key as integerPageException
public Object setE(int key, Object value) throws PageException
Array
setE
in interface Array
PageException
public int[] intKeys()
public boolean insert(int key, Object value) throws PageException
Array
insert
in interface Array
key
- position to insertvalue
- value to insertPageException
public Object append(Object o) throws PageException
Array
append
in interface Array
o
- value to insertPageException
public Object prepend(Object o) throws PageException
Array
prepend
in interface Array
o
- value to insertPageException
public void resize(int to) throws PageException
Array
resize
in interface Array
to
- new minimum size of the arrayPageException
public void sort(String sortType, String sortOrder) throws PageException
Array
sort
in interface Array
sortType
- search type (text,textnocase,numeric)sortOrder
- (asc,desc)PageException
public void sort(Comparator comp)
public Object removeE(int key) throws PageException
Array
removeE
in interface Array
key
- key to removePageException
public boolean containsKey(int key)
Array
containsKey
in interface Array
Copyright © 2015 Lucee