FileDocCategorySizeDatePackage
Column.javaAPI DocExample3126Thu Jun 28 16:14:16 BST 2001com.ora.jsp.sql

Column

public abstract class Column extends Object
This class represents a column in a row returned by a SQL query. 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
protected String
name
Constructors Summary
public Column(String name)

        this.name = name;
    
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.StringgetName()

        return name;
    
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");
    
public java.lang.StringtoString()

        return getString();