com.ibm.db.base
Class DatabaseBinaryField
java.lang.Object
|
+--com.ibm.db.base.DatabaseTypeField
|
+--com.ibm.db.base.DatabaseBinaryField
- public class DatabaseBinaryField
- extends DatabaseTypeField
- See Also:
- Serialized Form
Fields inherited from class com.ibm.db.base.DatabaseTypeField |
copyright,
INOUT,
INPUT,
length,
mode,
name,
OUTPUT,
scale,
searchable,
serialVersionUID,
sqlType,
sqlTypeName |
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 |
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. |
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 |
serialVersionUID
static final long serialVersionUID
copyright
private static final java.lang.String copyright
DatabaseBinaryField
public DatabaseBinaryField()
- Constructs a new DatabaseBinaryField.
DatabaseBinaryField
public DatabaseBinaryField(java.lang.String aName)
- Constructs a new DatabaseBinaryField with the specified name.
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 columnaStatement
- 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:
anIndex
- the index of columnaResult
- the ResultSet that contains the values
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 parametersStatement
- the PreparedStatementanIndex
- the index of the parameter