|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdsql.DMExecuted
dsql.value.Value
A value, ie the result of a DSQL expression.
Constructor Summary | |
Value()
|
Method Summary | |
abstract boolean |
getBoolean()
|
java.lang.Object |
getField(java.lang.String name)
Access an object's field |
float |
getFloat()
|
int |
getInt()
|
abstract ConstructedResults |
getMeta()
|
java.lang.Object |
getObject()
Attempt to return a Java object, e.g. |
java.lang.Class |
getObjectClass()
return the object class; some scalars return the primitive class (eg Integer.TYPE, rather than Integer.getClass() |
RecordHolder |
getRecordHolder()
XmlDataValue uses this
to provide an iterator for XML documents |
abstract java.lang.String |
getString()
|
java.lang.Object |
getType(java.lang.Class cl)
|
static Value |
getValue(DSQL _caller,
java.lang.Object obj)
Cast an arbitrary object to a Value. |
static Value |
getValue(DSQL _caller,
java.lang.Object obj,
java.lang.Class cl)
This method is used by ASTMethodCall because of primitive return types; it will cast an IntValue for a primitive int, but will make a JavaObject for an Integer object |
abstract boolean |
isScalar()
|
abstract void |
print(ASTPrint printer)
Print this value using printer |
void |
setField(java.lang.String name,
Value val)
|
Methods inherited from class dsql.DMExecuted |
getCaller, setCaller |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Value()
Method Detail |
public abstract java.lang.String getString() throws ExecuteException
ExecuteException
public abstract boolean getBoolean() throws ExecuteException
ExecuteException
public int getInt() throws ExecuteException
ExecuteException
public float getFloat() throws ExecuteException
ExecuteException
public RecordHolder getRecordHolder() throws ExecuteException
XmlDataValue
uses this
to provide an iterator for XML documents
ExecuteException
public java.lang.Object getType(java.lang.Class cl) throws ExecuteException
ExecuteException
public java.lang.Object getObject()
public java.lang.Class getObjectClass()
public java.lang.Object getField(java.lang.String name) throws ExecuteException
ExecuteException
public void setField(java.lang.String name, Value val) throws ExecuteException
ExecuteException
public abstract boolean isScalar()
public static Value getValue(DSQL _caller, java.lang.Object obj)
public static Value getValue(DSQL _caller, java.lang.Object obj, java.lang.Class cl)
public abstract ConstructedResults getMeta() throws ExecuteException
ExecuteException
public abstract void print(ASTPrint printer) throws ExecuteException
ExecuteException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |