com.ibm.db.base
Class DatabaseShortIntegerField

java.lang.Object
  |
  +--com.ibm.db.base.DatabaseTypeField
        |
        +--com.ibm.db.base.DatabaseShortIntegerField

public class DatabaseShortIntegerField
extends DatabaseTypeField

See Also:
Serialized Form

Field Summary
private static java.lang.String copyright
           
(package private) static long serialVersionUID
           
 
Fields inherited from class com.ibm.db.base.DatabaseTypeField
copyright, INOUT, INPUT, length, mode, name, OUTPUT, scale, searchable, serialVersionUID, sqlType, sqlTypeName
 
Constructor Summary
DatabaseShortIntegerField()
          Constructs a new DatabaseShortIntegerField.
DatabaseShortIntegerField(java.lang.String aName)
          Constructs a new DatabaseShortIntegerField with the specified name.
 
Method Summary
 java.lang.Class getFieldClass()
          Returns the Java class used to hold a value of this field.
 java.lang.Object getObject(java.sql.CallableStatement aStatement, int anIndex)
          Retrieves the parameter value at the specified column index from the specified CallableStatement
 java.lang.Object getObject(java.sql.ResultSet aResultSet, int anIndex)
          Retrieves the column value at the specified column index from the specified ResultSet
 short getPrimObject(java.sql.ResultSet aResultSet, int anIndex)
          Retrieves the column value at the specified column index from the specified ResultSet
 int getSQLType()
          Returns the SQLType associated with this DatabaseTypeField.
 void setFieldObject(java.lang.Object anObject, java.sql.PreparedStatement aStatement, int anIndex)
          Sets the parameter with the specified index in the specified PreparedStatement to the specified value.
 void setPrimObject(short aShort, java.sql.PreparedStatement aStatement, int anIndex)
          Sets the parameter with the specified index in the specified PreparedStatement to the specified value.
 
Methods inherited from class com.ibm.db.base.DatabaseTypeField
clone, getLength, getMode, getName, getScale, getSQLTypeName, isSearchable, setLength, setMode, setName, setObject, setScale, setSearchable, setSQLType, setSQLTypeName, toString
 
Methods inherited from class java.lang.Object
, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

serialVersionUID

static final long serialVersionUID

copyright

private static final java.lang.String copyright
Constructor Detail

DatabaseShortIntegerField

public DatabaseShortIntegerField()
Constructs a new DatabaseShortIntegerField.

DatabaseShortIntegerField

public DatabaseShortIntegerField(java.lang.String aName)
Constructs a new DatabaseShortIntegerField with the specified name.
Method Detail

getFieldClass

public java.lang.Class getFieldClass()
Returns the Java class used to hold a value of this field.
Overrides:
getFieldClass in class DatabaseTypeField
Returns:
the java class of the field

getObject

public java.lang.Object getObject(java.sql.CallableStatement aStatement,
                                  int anIndex)
                           throws java.sql.SQLException
Retrieves the parameter value at the specified column index from the specified CallableStatement
Overrides:
getObject in class DatabaseTypeField
Parameters:
anIndex - the index of column
aStatement - the CallableStatement that contains the values

getObject

public java.lang.Object getObject(java.sql.ResultSet aResultSet,
                                  int anIndex)
                           throws java.sql.SQLException
Retrieves the column value at the specified column index from the specified ResultSet
Overrides:
getObject in class DatabaseTypeField
Parameters:
aResult - the ResultSet that contains the values
anIndex - the index of column

getPrimObject

public short getPrimObject(java.sql.ResultSet aResultSet,
                           int anIndex)
                    throws java.sql.SQLException
Retrieves the column value at the specified column index from the specified ResultSet
Parameters:
aResult - the ResultSet that contains the values
anIndex - the index of column

getSQLType

public int getSQLType()
Returns the SQLType associated with this DatabaseTypeField. If no SQLType has been specified, the default SQLType for this DatabaseTypeField is returned.
Overrides:
getSQLType in class DatabaseTypeField

setFieldObject

public void setFieldObject(java.lang.Object anObject,
                           java.sql.PreparedStatement aStatement,
                           int anIndex)
                    throws java.sql.SQLException
Sets the parameter with the specified index in the specified PreparedStatement to the specified value.
Overrides:
setFieldObject in class DatabaseTypeField
Parameters:
anObject - the object value for the parameter
sStatement - the PreparedStatement
anIndex - the index of the parameter

setPrimObject

public void setPrimObject(short aShort,
                          java.sql.PreparedStatement aStatement,
                          int anIndex)
                   throws java.sql.SQLException
Sets the parameter with the specified index in the specified PreparedStatement to the specified value.
Parameters:
aShort - the value for the parameter
sStatement - the PreparedStatement
anIndex - the index of the parameter