dsql.value
Class IntValue
java.lang.Object
dsql.DMExecuted
dsql.value.Value
dsql.value.ScalarValue
dsql.value.NumericValue
dsql.value.IntValue
- public class IntValue
- extends NumericValue
An integer return value
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
IntValue
public IntValue(DSQL _caller,
int newValue)
IntValue
public IntValue(DSQL _caller,
java.lang.Integer newValue)
IntValue
public IntValue(java.lang.String newValue)
throws ExecuteException
getString
public java.lang.String getString()
- Specified by:
getString
in class Value
- Returns:
- a string representation of this value, to be used
within dsql expressions. This is distinct from toString(),
which is used to output the object for debugging purposes.
getInt
public int getInt()
- Overrides:
getInt
in class Value
- Returns:
- this Value as an integer
getFloat
public float getFloat()
- Overrides:
getFloat
in class Value
- Returns:
- this Value as a float number
getBoolean
public boolean getBoolean()
- Specified by:
getBoolean
in class Value
- Returns:
- true if this Value is "non-zero", e.g. non-empty string,
tables has some record, etc.
toString
public java.lang.String toString()
getObject
public java.lang.Object getObject()
- Description copied from class:
Value
- Attempt to return a Java object, e.g. StringValue returns String,
JavaObject returns the embedded object, etc. This is used when
passing values to java constructors and methods
- Overrides:
getObject
in class Value
getObjectClass
public java.lang.Class getObjectClass()
- Description copied from class:
Value
- return the object class; some scalars return the
primitive class (eg Integer.TYPE, rather than Integer.getClass()
- Overrides:
getObjectClass
in class Value
getTypeName
public java.lang.String getTypeName()
- Specified by:
getTypeName
in class ScalarValue
- Returns:
- the internal scalar type, e.g. "STRING"
getSQLTypeName
public java.lang.String getSQLTypeName()
- Specified by:
getSQLTypeName
in class ScalarValue
- Returns:
- the corresponding SQL type, e.g. "VARCHAR"