|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ParameterSetter
Allows parameters to be set on the underlying prepared statement. TypeHandlerCallback implementations use this interface to process values before they are set on the prepared statement. Each of these methods has a corresponding method on the PreparedStatement class, the only difference being that there is no need to specify the parameter index with these methods.
NOTE: There is no need to implement this. The implementation will be passed into the TypeHandlerCallback automatically.
| Method Summary | |
|---|---|
int |
getParameterIndex()
Returns the index of the parameter being set. |
PreparedStatement |
getPreparedStatement()
Returns the underlying prepared statement...be careful! |
void |
setArray(Array x)
Set an array on the underlying prepared statement |
void |
setAsciiStream(InputStream x,
int length)
Set an InputStream on the underlying prepared statement |
void |
setBigDecimal(BigDecimal x)
Set an on the underlying prepared statement |
void |
setBinaryStream(InputStream x,
int length)
Set an InputStream on the underlying prepared statement |
void |
setBlob(Blob x)
Set a blob on the underlying prepared statement |
void |
setBoolean(boolean x)
Set a boolean on the underlying prepared statement |
void |
setByte(byte x)
Set a byte on the underlying prepared statement |
void |
setBytes(byte[] x)
Set a byte array on the underlying prepared statement |
void |
setCharacterStream(Reader reader,
int length)
Set a character stream on the underlying prepared statement |
void |
setClob(Clob x)
Set a clob on the underlying prepared statement |
void |
setDate(Date x)
Set a date on the underlying prepared statement |
void |
setDate(Date x,
Calendar cal)
Set a date with a calendar on the underlying prepared statement |
void |
setDouble(double x)
Set a double on the underlying prepared statement |
void |
setFloat(float x)
Set a float on the underlying prepared statement |
void |
setInt(int x)
Set an integer on the underlying prepared statement |
void |
setLong(long x)
Set a long on the underlying prepared statement |
void |
setNull(int sqlType)
Set a null on the underlying prepared statement |
void |
setNull(int sqlType,
String typeName)
Set a null on the underlying prepared statement |
void |
setObject(Object x)
Set an object on the underlying prepared statement |
void |
setObject(Object x,
int targetSqlType)
Set an object on the underlying prepared statement |
void |
setObject(Object x,
int targetSqlType,
int scale)
Set an object on the underlying prepared statement |
void |
setRef(Ref x)
Set a reference on the underlying prepared statement |
void |
setShort(short x)
Set a short on the underlying prepared statement |
void |
setString(String x)
Set a string on the underlying prepared statement |
void |
setTime(Time x)
Set a time on the underlying prepared statement |
void |
setTime(Time x,
Calendar cal)
Set a time with a calendar on the underlying prepared statement |
void |
setTimestamp(Timestamp x)
Set a timestamp on the underlying prepared statement |
void |
setTimestamp(Timestamp x,
Calendar cal)
Set a timestamp on the underlying prepared statement |
void |
setURL(URL x)
Set a URL on the underlying prepared statement |
| Method Detail |
|---|
void setArray(Array x)
throws SQLException
x - - the array to set
SQLException - - thrown if the underlying prepared statement throws it
void setAsciiStream(InputStream x,
int length)
throws SQLException
x - - the InputStreamlength - - the length of the InputStream
SQLException - - thrown if the underlying prepared statement throws it
void setBigDecimal(BigDecimal x)
throws SQLException
x -
SQLException - - thrown if the underlying prepared statement throws it
void setBinaryStream(InputStream x,
int length)
throws SQLException
x - - the InputStreamlength - - the length of the InputStream
SQLException - - thrown if the underlying prepared statement throws it
void setBlob(Blob x)
throws SQLException
x - - the blob
SQLException - - thrown if the underlying prepared statement throws it
void setBoolean(boolean x)
throws SQLException
x - - the boolean
SQLException - - thrown if the underlying prepared statement throws it
void setByte(byte x)
throws SQLException
x - - the byte
SQLException - - thrown if the underlying prepared statement throws it
void setBytes(byte[] x)
throws SQLException
x - - the byte[]
SQLException - - thrown if the underlying prepared statement throws it
void setCharacterStream(Reader reader,
int length)
throws SQLException
reader - - the readerlength - - the length of the reader
SQLException - - thrown if the underlying prepared statement throws it
void setClob(Clob x)
throws SQLException
x - - the clob
SQLException - - thrown if the underlying prepared statement throws it
void setDate(Date x)
throws SQLException
x - - the date
SQLException - - thrown if the underlying prepared statement throws it
void setDate(Date x,
Calendar cal)
throws SQLException
x - - the datecal - - the calendar
SQLException - - thrown if the underlying prepared statement throws it
void setDouble(double x)
throws SQLException
x - - the double
SQLException - - thrown if the underlying prepared statement throws it
void setFloat(float x)
throws SQLException
x - the float
SQLException - - thrown if the underlying prepared statement throws it
void setInt(int x)
throws SQLException
x - - the int
SQLException - - thrown if the underlying prepared statement throws it
void setLong(long x)
throws SQLException
x - - the long
SQLException - - thrown if the underlying prepared statement throws it
void setNull(int sqlType)
throws SQLException
sqlType - - the type for the null value
SQLException - - thrown if the underlying prepared statement throws it
void setNull(int sqlType,
String typeName)
throws SQLException
sqlType - - the type for the null valuetypeName - - the name of the type
SQLException - - thrown if the underlying prepared statement throws it
void setObject(Object x)
throws SQLException
x - - the object to set
SQLException - - thrown if the underlying prepared statement throws it
void setObject(Object x,
int targetSqlType)
throws SQLException
x - - the object to settargetSqlType - - the sql type of the object
SQLException - - thrown if the underlying prepared statement throws it
void setObject(Object x,
int targetSqlType,
int scale)
throws SQLException
x - - the object to settargetSqlType - - the sql type of the objectscale - - the scale of the object
SQLException - - thrown if the underlying prepared statement throws it
void setRef(Ref x)
throws SQLException
x - - the reference to set
SQLException - - thrown if the underlying prepared statement throws it
void setShort(short x)
throws SQLException
x - - the short to set
SQLException - - thrown if the underlying prepared statement throws it
void setString(String x)
throws SQLException
x - - the string to set
SQLException - - thrown if the underlying prepared statement throws it
void setTime(Time x)
throws SQLException
x - - the time to set
SQLException - - thrown if the underlying prepared statement throws it
void setTime(Time x,
Calendar cal)
throws SQLException
x - - the time to setcal - - the calendar to use
SQLException - - thrown if the underlying prepared statement throws it
void setTimestamp(Timestamp x)
throws SQLException
x - - the timestamp to set
SQLException - - thrown if the underlying prepared statement throws it
void setTimestamp(Timestamp x,
Calendar cal)
throws SQLException
x - - the timestamp to setcal - - the calendar to use
SQLException - - thrown if the underlying prepared statement throws it
void setURL(URL x)
throws SQLException
x - - the url to set
SQLException - - thrown if the underlying prepared statement throws itPreparedStatement getPreparedStatement()
int getParameterIndex()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||