jxUtil 0.6

org.sourceforge.jxutil.sql.type
Class AbstractDOUBLE

java.lang.Object
  |
  +--org.sourceforge.jxutil.sql.type.AbstractType
        |
        +--org.sourceforge.jxutil.sql.type.AbstractDOUBLE
Direct Known Subclasses:
DefaultDOUBLE

public abstract class AbstractDOUBLE
extends AbstractType

A type defining the generics of the DOUBLE type.


Field Summary
 
Fields inherited from class org.sourceforge.jxutil.sql.type.AbstractType
BD_ONE, BD_ZERO, name
 
Constructor Summary
protected AbstractDOUBLE(String name)
           
 
Method Summary
 BigDecimal getBigDecimal(Object row, ConversionContext ctx)
          Get a BigDecimal.
 boolean getBoolean(Object row, ConversionContext ctx)
          Get a boolean.
 byte getByte(Object row, ConversionContext ctx)
          Get a byte.
abstract  double getDouble(Object row, ConversionContext ctx)
          Get a double.
 float getFloat(Object row, ConversionContext ctx)
          Get a float.
 int getInt(Object row, ConversionContext ctx)
          Get an int.
 Class getJavaClass()
          Get the Java Class returned when calling getObject on this type.
 Class getJavaType()
          Get the Java Class of the primitive type best representing data of this database type.
 int getJDBCType()
          Get the type's closest representation as a JDBC type.
 long getLong(Object row, ConversionContext ctx)
          Get a long.
 Object getObject(Object row, Map map, ConversionContext ctx)
           
 short getShort(Object row, ConversionContext ctx)
          Get a short.
 String getString(Object row, ConversionContext ctx)
           
 void setBigDecimal(Object row, BigDecimal val, ConversionContext ctx)
           
 void setBoolean(Object row, boolean val, ConversionContext ctx)
           
 void setByte(Object row, byte val, ConversionContext ctx)
           
abstract  void setDouble(Object row, double val, ConversionContext ctx)
           
 void setFloat(Object row, float val, ConversionContext ctx)
           
 void setInt(Object row, int val, ConversionContext ctx)
           
 void setLong(Object row, long val, ConversionContext ctx)
           
 void setShort(Object row, short val, ConversionContext ctx)
           
 void setString(Object row, String val, ConversionContext ctx)
           
 
Methods inherited from class org.sourceforge.jxutil.sql.type.AbstractType
dataTruncationRead, dataTruncationWrite, deriveType, getArray, getAsciiStream, getAutoInc, getBinaryStream, getBlob, getBytes, getCaseSensitive, getCharacterStream, getClob, getCreateParams, getCurrency, getDate, getDate, getLiteral, getLiteralPrefix, getLiteralSuffix, getLocalName, getMaxScale, getMinScale, getName, getNullable, getNumRadix, getObject, getPrecision, getRef, getScale, getSearchable, getTime, getTime, getTimestamp, getTimestamp, getUnsigned, getURL, noConversion, noConversion, noConversion, setArray, setAsciiStream, setBinaryStream, setBlob, setBytes, setCharacterStream, setClob, setDate, setDate, setNull, setNull, setNull, setObject, setObject, setObject, setRef, setStruct, setTime, setTime, setTimestamp, setTimestamp, setURL, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractDOUBLE

protected AbstractDOUBLE(String name)
Method Detail

getBigDecimal

public final BigDecimal getBigDecimal(Object row,
                                      ConversionContext ctx)
                               throws SQLException
Description copied from class: AbstractType
Get a BigDecimal.

Overrides:
getBigDecimal in class AbstractType
SQLException

getBoolean

public final boolean getBoolean(Object row,
                                ConversionContext ctx)
                         throws SQLException
Description copied from class: AbstractType
Get a boolean.

Overrides:
getBoolean in class AbstractType
SQLException

getByte

public final byte getByte(Object row,
                          ConversionContext ctx)
                   throws SQLException
Description copied from class: AbstractType
Get a byte.

Overrides:
getByte in class AbstractType
SQLException

getDouble

public abstract double getDouble(Object row,
                                 ConversionContext ctx)
                          throws SQLException
Description copied from class: AbstractType
Get a double.

Overrides:
getDouble in class AbstractType
SQLException

getFloat

public final float getFloat(Object row,
                            ConversionContext ctx)
                     throws SQLException
Description copied from class: AbstractType
Get a float.

Overrides:
getFloat in class AbstractType
SQLException

getInt

public final int getInt(Object row,
                        ConversionContext ctx)
                 throws SQLException
Description copied from class: AbstractType
Get an int.

Overrides:
getInt in class AbstractType
SQLException

getJavaClass

public final Class getJavaClass()
Description copied from class: AbstractType
Get the Java Class returned when calling getObject on this type.

Overrides:
getJavaClass in class AbstractType

getJavaType

public final Class getJavaType()
Description copied from class: AbstractType
Get the Java Class of the primitive type best representing data of this database type.

Overrides:
getJavaType in class AbstractType

getJDBCType

public final int getJDBCType()
Description copied from class: AbstractType
Get the type's closest representation as a JDBC type.

Specified by:
getJDBCType in class AbstractType
See Also:
Types

getLong

public final long getLong(Object row,
                          ConversionContext ctx)
                   throws SQLException
Description copied from class: AbstractType
Get a long.

Overrides:
getLong in class AbstractType
SQLException

getObject

public final Object getObject(Object row,
                              Map map,
                              ConversionContext ctx)
                       throws SQLException
Overrides:
getObject in class AbstractType
SQLException

getShort

public final short getShort(Object row,
                            ConversionContext ctx)
                     throws SQLException
Description copied from class: AbstractType
Get a short.

Overrides:
getShort in class AbstractType
SQLException

getString

public final String getString(Object row,
                              ConversionContext ctx)
                       throws SQLException
Overrides:
getString in class AbstractType
SQLException

setBigDecimal

public final void setBigDecimal(Object row,
                                BigDecimal val,
                                ConversionContext ctx)
                         throws SQLException
Overrides:
setBigDecimal in class AbstractType
SQLException

setBoolean

public final void setBoolean(Object row,
                             boolean val,
                             ConversionContext ctx)
                      throws SQLException
Overrides:
setBoolean in class AbstractType
SQLException

setByte

public final void setByte(Object row,
                          byte val,
                          ConversionContext ctx)
                   throws SQLException
Overrides:
setByte in class AbstractType
SQLException

setDouble

public abstract void setDouble(Object row,
                               double val,
                               ConversionContext ctx)
                        throws SQLException
Overrides:
setDouble in class AbstractType
SQLException

setFloat

public final void setFloat(Object row,
                           float val,
                           ConversionContext ctx)
                    throws SQLException
Overrides:
setFloat in class AbstractType
SQLException

setInt

public final void setInt(Object row,
                         int val,
                         ConversionContext ctx)
                  throws SQLException
Overrides:
setInt in class AbstractType
SQLException

setLong

public final void setLong(Object row,
                          long val,
                          ConversionContext ctx)
                   throws SQLException
Overrides:
setLong in class AbstractType
SQLException

setShort

public final void setShort(Object row,
                           short val,
                           ConversionContext ctx)
                    throws SQLException
Overrides:
setShort in class AbstractType
SQLException

setString

public final void setString(Object row,
                            String val,
                            ConversionContext ctx)
                     throws SQLException
Overrides:
setString in class AbstractType
SQLException

jxUtil 0.6

Copyright © 2001,2002 Keve Müller, et al.; see LICENSE file for details.