org.rimudb.types
Class TinyIntType

java.lang.Object
  extended by org.rimudb.types.AbstractDatabaseType
      extended by org.rimudb.types.TinyIntType

public class TinyIntType
extends AbstractDatabaseType


Field Summary
 
Fields inherited from class org.rimudb.types.AbstractDatabaseType
ZERO
 
Constructor Summary
TinyIntType()
           
 
Method Summary
 java.lang.String getDDSCode()
           
 java.lang.Object getDefaultValue()
           
 java.lang.Class<? extends java.lang.Object> getJavaClass()
           
 java.lang.String getJavaClassOrPrimitive()
           
 java.lang.String getJavaWrapperClass()
           
 java.lang.String getName()
           
 java.lang.Object getResultSetValue(java.sql.ResultSet rs, int columnIndex)
           
 int getSQLType()
           
 java.lang.String getSQLTypeString()
           
 boolean hasPrecision()
           
 boolean hasScale()
           
 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
 

Constructor Detail

TinyIntType

public TinyIntType()
Method Detail

getDDSCode

public java.lang.String getDDSCode()
Specified by:
getDDSCode in class AbstractDatabaseType

getJavaWrapperClass

public java.lang.String getJavaWrapperClass()
Specified by:
getJavaWrapperClass in class AbstractDatabaseType

getName

public java.lang.String getName()
Specified by:
getName in class AbstractDatabaseType

getSQLType

public int getSQLType()
Specified by:
getSQLType in class AbstractDatabaseType

getSQLTypeString

public java.lang.String getSQLTypeString()
Specified by:
getSQLTypeString in class AbstractDatabaseType

getJavaClassOrPrimitive

public java.lang.String getJavaClassOrPrimitive()
Specified by:
getJavaClassOrPrimitive in class AbstractDatabaseType

getResultSetValue

public java.lang.Object getResultSetValue(java.sql.ResultSet rs,
                                          int columnIndex)
                                   throws java.sql.SQLException
Specified by:
getResultSetValue in class AbstractDatabaseType
Throws:
java.sql.SQLException

setParameterValue

public void setParameterValue(java.sql.PreparedStatement ps,
                              int parameterIndex,
                              java.lang.Object value,
                              int valueLength,
                              boolean doVersionIncrement)
                       throws java.sql.SQLException
Specified by:
setParameterValue in class AbstractDatabaseType
Throws:
java.sql.SQLException

hasScale

public boolean hasScale()
Specified by:
hasScale in class AbstractDatabaseType

hasPrecision

public boolean hasPrecision()
Specified by:
hasPrecision in class AbstractDatabaseType

getDefaultValue

public java.lang.Object getDefaultValue()
Specified by:
getDefaultValue in class AbstractDatabaseType

getJavaClass

public java.lang.Class<? extends java.lang.Object> getJavaClass()
Specified by:
getJavaClass in class AbstractDatabaseType


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