org.rimudb.types
Class AbstractDatabaseType

java.lang.Object
  extended by org.rimudb.types.AbstractDatabaseType
Direct Known Subclasses:
ArrayType, BigIntType, BinaryType, BitType, BlobType, BooleanType, CharType, ClobType, DataLink, DateType, DecimalType, DoubleType, FloatType, IntegerType, JavaObjectType, LongVarBinaryType, LongVarCharType, NumericType, RealType, SmallIntType, TimestampType, TimeType, TinyIntType, VarBinaryType, VarCharType

public abstract class AbstractDatabaseType
extends java.lang.Object


Field Summary
static java.math.BigDecimal ZERO
           
 
Constructor Summary
AbstractDatabaseType()
           
 
Method Summary
abstract  java.lang.String getDDSCode()
           
abstract  java.lang.Object getDefaultValue()
           
abstract  java.lang.Class<? extends java.lang.Object> getJavaClass()
           
abstract  java.lang.String getJavaClassOrPrimitive()
           
abstract  java.lang.String getJavaWrapperClass()
           
abstract  java.lang.String getName()
           
abstract  java.lang.Object getResultSetValue(java.sql.ResultSet rs, int columnIndex)
           
abstract  int getSQLType()
           
abstract  java.lang.String getSQLTypeString()
           
abstract  boolean hasPrecision()
           
abstract  boolean hasScale()
           
abstract  void setParameterValue(java.sql.PreparedStatement ps, int parameterIndex, java.lang.Object value, int valueLength, boolean doVersionIncrement)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ZERO

public static final java.math.BigDecimal ZERO
Constructor Detail

AbstractDatabaseType

public AbstractDatabaseType()
Method Detail

getDDSCode

public abstract java.lang.String getDDSCode()

getName

public abstract java.lang.String getName()

getSQLType

public abstract int getSQLType()

getSQLTypeString

public abstract java.lang.String getSQLTypeString()

getJavaWrapperClass

public abstract java.lang.String getJavaWrapperClass()

getJavaClassOrPrimitive

public abstract java.lang.String getJavaClassOrPrimitive()

getResultSetValue

public abstract java.lang.Object getResultSetValue(java.sql.ResultSet rs,
                                                   int columnIndex)
                                            throws java.sql.SQLException
Throws:
java.sql.SQLException

setParameterValue

public abstract void setParameterValue(java.sql.PreparedStatement ps,
                                       int parameterIndex,
                                       java.lang.Object value,
                                       int valueLength,
                                       boolean doVersionIncrement)
                                throws java.sql.SQLException
Throws:
java.sql.SQLException

hasScale

public abstract boolean hasScale()

hasPrecision

public abstract boolean hasPrecision()

getDefaultValue

public abstract java.lang.Object getDefaultValue()

getJavaClass

public abstract java.lang.Class<? extends java.lang.Object> getJavaClass()


Copyright © 2008-2011 Simon Ritchie. All Rights Reserved.