|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface JdbcSqlType
The contract which has to be implemented by all JDBC META types.
| Method Summary | |
|---|---|
Object |
get(ResultSet rs,
String columnLabel)
Retrieves the value of the designated column in the current row of this ResultSet object as a Java
type value. |
void |
set(PreparedStatement st,
int index,
Object value)
Sets the designated parameter to the given Java value. |
| Method Detail |
|---|
Object get(ResultSet rs,
String columnLabel)
throws SQLException
ResultSet object as a Java
type value.
rs - a ResultSet instancecolumnLabel - the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified,
then the label is the name of the column
NULL, the value returned is null
SQLException - if the columnLabel is not valid; if a database access error occurs or this method is called on a
closed result set
void set(PreparedStatement st,
int index,
Object value)
throws SQLException
st - a PreparedStatement instanceindex - the first parameter is 1, the second is 2, ...value - the parameter value
SQLException - if parameterIndex does not correspond to a parameter marker in the SQL statement; if a database
access error occurs or this method is called on a closed PreparedStatement
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||