dsql.value
Class ScalarValue

java.lang.Object
  extended bydsql.DMExecuted
      extended bydsql.value.Value
          extended bydsql.value.ScalarValue
Direct Known Subclasses:
NumericValue, StringValue

public abstract class ScalarValue
extends Value


Constructor Summary
ScalarValue()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 ConstructedResults getMeta()
           
abstract  java.lang.String getSQLTypeName()
           
abstract  java.lang.String getTypeName()
           
 boolean isScalar()
           
 void print(ASTPrint printer)
          Print this value using printer
 
Methods inherited from class dsql.value.Value
getBoolean, getField, getFloat, getInt, getObject, getObjectClass, getRecordHolder, getString, 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, toString, wait, wait, wait
 

Constructor Detail

ScalarValue

public ScalarValue()
Method Detail

equals

public boolean equals(java.lang.Object obj)

isScalar

public boolean isScalar()
Specified by:
isScalar in class Value
Returns:
true if this value is a scalar, e.g. number, string, etc.

getMeta

public ConstructedResults getMeta()
                           throws ExecuteException
Specified by:
getMeta in class Value
Returns:
meta-information about this Value, e.g. for a table, it returns the names,types,width,etc. of its columns.
Throws:
ExecuteException

print

public void print(ASTPrint printer)
           throws ExecuteException
Description copied from class: Value
Print this value using printer

Specified by:
print in class Value
Throws:
ExecuteException

getTypeName

public abstract java.lang.String getTypeName()
Returns:
the internal scalar type, e.g. "STRING"

getSQLTypeName

public abstract java.lang.String getSQLTypeName()
Returns:
the corresponding SQL type, e.g. "VARCHAR"