public class QueryStruct extends StructSupport
Collection.Key
TYPE_LINKED, TYPE_REGULAR, TYPE_SOFT, TYPE_SYNC, TYPE_WEAKED
Constructor and Description |
---|
QueryStruct(Query qry,
int row) |
Modifier and Type | Method and Description |
---|---|
void |
clear()
clears the collection
|
boolean |
containsKey(Collection.Key key)
contains this key
|
Collection |
duplicate(boolean deepCopy) |
Iterator<Map.Entry<Collection.Key,Object>> |
entryIterator() |
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
|
Iterator<Collection.Key> |
keyIterator() |
Collection.Key[] |
keys() |
Object |
remove(Collection.Key key)
removes value from collection and return it when it exists, otherwise throws a exception
|
Object |
removeEL(Collection.Key key)
removes value from collection and return it when it exists, otherwise returns null
|
Object |
set(Collection.Key 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
|
int |
size() |
Iterator<Object> |
valueIterator() |
call, callWithNamedValues, castToBoolean, castToBooleanValue, castToDateTime, castToDateTime, castToDoubleValue, castToDoubleValue, castToString, castToString, clone, compareTo, compareTo, compareTo, compareTo, containsKey, containsKey, containsValue, entrySet, equals, get, get, get, get, get, getIterator, invalidKey, isEmpty, keysAsStringIterator, keySet, put, putAll, remove, set, set, setEL, setEL, sizeOf, toDumpData, toString, values
public QueryStruct(Query qry, int row)
public void clear()
Collection
public Object remove(Collection.Key key) throws PageException
Collection
key
- key of the collectionPageException
public Object removeEL(Collection.Key key)
Collection
key
- key of the collectionpublic Object set(Collection.Key key, Object value) throws PageException
Collection
key
- key of the new valuevalue
- value to setPageException
public Object setEL(Collection.Key key, Object value)
Collection
key
- key of the value to getvalue
- value to setpublic int size()
public Collection.Key[] keys()
public Object get(Collection.Key key) throws PageException
Collection
key
- key of the value to get must be lower casePageException
public Object get(Collection.Key key, Object defaultValue)
Collection
key
- key of the value to getpublic Collection duplicate(boolean deepCopy)
public boolean containsKey(Collection.Key key)
Collection
public Iterator<Collection.Key> keyIterator()
public Iterator<Object> valueIterator()
public Iterator<Map.Entry<Collection.Key,Object>> entryIterator()
Copyright © 2015 Lucee