FileDocCategorySizeDatePackage
Value.javaAPI DocExample2878Thu Jun 28 16:14:16 BST 2001com.ora.jsp.sql

Value

public abstract class Value extends Object
This class represents a value used by the SQL tags. It contains default implementations of get methods for all supported types, to avoid casting when using a concrete implementation. All default implementations throw an UnsupportedConversionException. Each subclass must override the getString() method, returning the value as a String, plus the get method for the appropriate data type, and provide a constructor to set the value.
author
Hans Bergsten, Gefion software
version
1.0

Fields Summary
Constructors Summary
Methods Summary
public java.math.BigDecimalgetBigDecimal()

        throw new UnsupportedConversionException("No conversion to BigDecimal");
    
public booleangetBoolean()

        throw new UnsupportedConversionException("No conversion to boolean");
    
public bytegetByte()

        throw new UnsupportedConversionException("No conversion to byte");
    
public byte[]getBytes()

        throw new UnsupportedConversionException("No conversion to byte[]");
    
public java.sql.DategetDate()

        throw new UnsupportedConversionException("No conversion to Date");
    
public doublegetDouble()

        throw new UnsupportedConversionException("No conversion to double");
    
public floatgetFloat()

        throw new UnsupportedConversionException("No conversion to float");
    
public intgetInt()

        throw new UnsupportedConversionException("No conversion to int");
    
public longgetLong()

        throw new UnsupportedConversionException("No conversion to long");
    
public java.lang.ObjectgetObject()

        throw new UnsupportedConversionException("No conversion to Object");
    
public shortgetShort()

        throw new UnsupportedConversionException("No conversion to short");
    
public abstract java.lang.StringgetString()
This method must be implemented by all subclasses. All data types can be converted to a String.

public java.sql.TimegetTime()

        throw new UnsupportedConversionException("No conversion to Time");
    
public java.sql.TimestampgetTimestamp()

        throw new UnsupportedConversionException("No conversion to Timestamp");