railo.runtime.type
Class DebugQueryColumn

java.lang.Object
  extended by railo.runtime.type.QueryColumnImpl
      extended by railo.runtime.type.DebugQueryColumn
All Implemented Interfaces:
Serializable, Cloneable, Dumpable, Castable, Collection, ForEachIteratorable, Iteratorable, Objects, QueryColumn, QueryColumnPro, Reference, Sizeable

public final class DebugQueryColumn
extends QueryColumnImpl
implements QueryColumnPro, Sizeable, Objects

implementation of the query column

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface railo.runtime.type.Collection
Collection.Key
 
Constructor Summary
DebugQueryColumn()
          Constructor of the class for internal usage only
DebugQueryColumn(Object[] data, Collection.Key key, QueryImpl query, int size, int type, boolean typeChecked)
           
 
Method Summary
 QueryColumnPro cloneColumn(QueryImpl query, boolean deepCopy)
           
 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
 int indexOf(Object o)
           
 boolean isUsed()
           
 int lastIndexOf(Object o)
           
 List<Object> subList(int fromIndex, int toIndex)
           
 Object[] toArray()
           
 Object[] toArray(Object[] trg)
           
 QueryColumnPro toDebugColumn()
           
 Object touch(int row)
          touch the given line on the column at given row
 Object touchEL(int row)
          touch the given line on the column at given row
 Iterator<Object> valueIterator()
           
 
Methods inherited from class railo.runtime.type.QueryColumnImpl
_toDebugColumn, add, add, addAll, addAll, addRow, call, callWithNamedValues, castToBoolean, castToBooleanValue, castToDateTime, castToDateTime, castToDoubleValue, castToDoubleValue, castToString, castToString, clear, clone, cloneColumn, cloneColumnImpl, compareTo, compareTo, compareTo, compareTo, contains, containsAll, containsKey, containsKey, cutRowsTo, duplicate, entryIterator, equals, get, get, get, get, get, get, get, get, getIterator, getKey, getKeyAsString, getParent, getType, getTypeAsString, hashCode, isEmpty, iterator, keyIterator, keys, keysAsStringIterator, remove, remove, remove, removeAll, removeEL, removeEL, removeEL, removeRow, retainAll, set, set, set, set, set, setEL, setEL, setEL, setEL, setEL, setKey, size, sizeOf, toDumpData, toString, touch, touchEL
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface railo.runtime.type.QueryColumnPro
cloneColumn, setKey
 
Methods inherited from interface railo.runtime.type.QueryColumn
add, addRow, cutRowsTo, getType, getTypeAsString, remove, removeEL, removeRow, set, setEL
 
Methods inherited from interface railo.runtime.type.Collection
clear, clone, containsKey, containsKey, duplicate, get, get, get, get, keys, remove, removeEL, set, set, setEL, setEL, size
 
Methods inherited from interface railo.runtime.dump.Dumpable
toDumpData
 
Methods inherited from interface railo.runtime.type.Iteratorable
entryIterator, keyIterator, keysAsStringIterator
 
Methods inherited from interface railo.runtime.op.Castable
castToBoolean, castToBooleanValue, castToDateTime, castToDateTime, castToDoubleValue, castToDoubleValue, castToString, castToString, compareTo, compareTo, compareTo, compareTo
 
Methods inherited from interface railo.runtime.type.ForEachIteratorable
getIterator
 
Methods inherited from interface railo.runtime.type.ref.Reference
get, get, getKey, getKeyAsString, getParent, remove, removeEL, set, setEL, touch, touchEL
 
Methods inherited from interface railo.runtime.type.Sizeable
sizeOf
 
Methods inherited from interface railo.runtime.type.Objects
call, callWithNamedValues, get, get, set, setEL
 

Constructor Detail

DebugQueryColumn

public DebugQueryColumn(Object[] data,
                        Collection.Key key,
                        QueryImpl query,
                        int size,
                        int type,
                        boolean typeChecked)

DebugQueryColumn

public DebugQueryColumn()
Constructor of the class for internal usage only

Method Detail

isUsed

public boolean isUsed()
Returns:
the used

get

public Object get(int row)
           throws DeprecatedException
Description copied from interface: QueryColumn
get method with a int as key, return empty default value for invalid row

Specified by:
get in interface QueryColumn
Overrides:
get in class QueryColumnImpl
Parameters:
row - row to get value
Returns:
row value
Throws:
DeprecatedException

touch

public Object touch(int row)
touch the given line on the column at given row

Overrides:
touch in class QueryColumnImpl
Parameters:
row -
Returns:
new row or existing
Throws:
DatabaseException

touchEL

public Object touchEL(int row)
touch the given line on the column at given row

Overrides:
touchEL in class QueryColumnImpl
Parameters:
row -
Returns:
new row or existing
Throws:
DatabaseException

get

public Object get(int row,
                  Object defaultValue)
Description copied from interface: QueryColumn
return the value in this row (can be null), when row number is invalid the default value is returned

Specified by:
get in interface QueryColumn
Overrides:
get in class QueryColumnImpl
Parameters:
row - row to get value
Returns:
row value

cloneColumn

public QueryColumnPro cloneColumn(QueryImpl query,
                                  boolean deepCopy)

valueIterator

public Iterator<Object> valueIterator()
Specified by:
valueIterator in interface Iteratorable
Overrides:
valueIterator in class QueryColumnImpl
Returns:
return a Iterator for Values

indexOf

public int indexOf(Object o)
Overrides:
indexOf in class QueryColumnImpl

lastIndexOf

public int lastIndexOf(Object o)
Overrides:
lastIndexOf in class QueryColumnImpl

subList

public List<Object> subList(int fromIndex,
                            int toIndex)
Overrides:
subList in class QueryColumnImpl

toArray

public Object[] toArray()
Overrides:
toArray in class QueryColumnImpl

toArray

public Object[] toArray(Object[] trg)
Overrides:
toArray in class QueryColumnImpl

toDebugColumn

public QueryColumnPro toDebugColumn()
Specified by:
toDebugColumn in interface QueryColumnPro
Overrides:
toDebugColumn in class QueryColumnImpl


Copyright © 2012 Railo