dsql.value
Class List

java.lang.Object
  extended bydsql.DMExecuted
      extended bydsql.value.Value
          extended bydsql.value.NonScalarValue
              extended bydsql.value.JavaObject
                  extended bydsql.value.List
All Implemented Interfaces:
RecordHolder

public class List
extends JavaObject
implements RecordHolder

A list


Field Summary
 
Fields inherited from class dsql.value.JavaObject
obj
 
Constructor Summary
List(DSQL _caller)
           
List(DSQL _caller, java.util.AbstractList obj)
           
List(DSQL _caller, int size)
           
List(DSQL _caller, java.lang.Object[] list)
           
 
Method Summary
protected  void checkRange(int i)
           
 boolean getBoolean()
           
 java.util.AbstractList getList()
           
 Value getRecord(int i)
           
 int getRecordCount()
          this function should be called with care as it can be computationaly expensive for SQL Cursors!
 void setRecord(int i, Value val)
           
 
Methods inherited from class dsql.value.JavaObject
create, getMeta, getObject, getObjectClass, getString, print, toString
 
Methods inherited from class dsql.value.NonScalarValue
getField, getFields, isScalar, setField
 
Methods inherited from class dsql.value.Value
getFloat, getInt, getRecordHolder, getType, getValue, getValue
 
Methods inherited from class dsql.DMExecuted
getCaller, setCaller
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

List

public List(DSQL _caller)

List

public List(DSQL _caller,
            int size)

List

public List(DSQL _caller,
            java.lang.Object[] list)

List

public List(DSQL _caller,
            java.util.AbstractList obj)
Method Detail

getList

public java.util.AbstractList getList()

getBoolean

public boolean getBoolean()
Overrides:
getBoolean in class JavaObject

getRecordCount

public int getRecordCount()
Description copied from interface: RecordHolder
this function should be called with care as it can be computationaly expensive for SQL Cursors!

Specified by:
getRecordCount in interface RecordHolder
Returns:
number of records

getRecord

public Value getRecord(int i)
                throws ExecuteException
Specified by:
getRecord in interface RecordHolder
Returns:
record at position i (first record is 1). For SQL cursors, the returned Value can be a ProxyRecord
Throws:
ExecuteException

setRecord

public void setRecord(int i,
                      Value val)
               throws ExecuteException
Specified by:
setRecord in interface RecordHolder
Throws:
ExecuteException

checkRange

protected void checkRange(int i)
                   throws ExecuteException
Throws:
ExecuteException