dsql.value
Class FloatValue

java.lang.Object
  extended bydsql.DMExecuted
      extended bydsql.value.Value
          extended bydsql.value.ScalarValue
              extended bydsql.value.NumericValue
                  extended bydsql.value.FloatValue

public class FloatValue
extends NumericValue

A float return value


Constructor Summary
FloatValue(DSQL _caller, float newValue)
           
FloatValue(DSQL _caller, java.lang.Float newValue)
           
FloatValue(java.lang.String newValue)
           
 
Method Summary
 boolean getBoolean()
           
 float getFloat()
           
 int getInt()
           
 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()
 java.lang.String getSQLTypeName()
           
 java.lang.String getString()
           
 java.lang.String getTypeName()
           
 java.lang.String toString()
           
 
Methods inherited from class dsql.value.NumericValue
equals
 
Methods inherited from class dsql.value.ScalarValue
getMeta, isScalar, print
 
Methods inherited from class dsql.value.Value
getField, getRecordHolder, getType, getValue, getValue, setField
 
Methods inherited from class dsql.DMExecuted
getCaller, setCaller
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FloatValue

public FloatValue(DSQL _caller,
                  float newValue)

FloatValue

public FloatValue(DSQL _caller,
                  java.lang.Float newValue)

FloatValue

public FloatValue(java.lang.String newValue)
           throws ExecuteException
Method Detail

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()
           throws ExecuteException
Overrides:
getInt in class Value
Returns:
this Value as an integer
Throws:
ExecuteException

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"