| |
|
| com.ibatis.sqlmap.client.extensions.ParameterSetter
All known Subclasses: com.ibatis.sqlmap.engine.type.ParameterSetterImpl,
ParameterSetter | public interface ParameterSetter (Code) | | 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 | |
public int | getParameterIndex() Returns the index of the parameter being set. | public PreparedStatement | getPreparedStatement() | public void | setArray(Array x) | public void | setAsciiStream(InputStream x, int length) | public void | setBigDecimal(BigDecimal x) | public void | setBinaryStream(InputStream x, int length) | public void | setBlob(Blob x) | public void | setBoolean(boolean x) | public void | setByte(byte x) | public void | setBytes(byte x) | public void | setCharacterStream(Reader reader, int length) | public void | setClob(Clob x) | public void | setDate(Date x) | public void | setDate(Date x, Calendar cal) | public void | setDouble(double x) | public void | setFloat(float x) | public void | setInt(int x) | public void | setLong(long x) | public void | setNull(int sqlType) | public void | setNull(int sqlType, String typeName) | public void | setObject(Object x) | public void | setObject(Object x, int targetSqlType) | public void | setObject(Object x, int targetSqlType, int scale) | public void | setRef(Ref x) | public void | setShort(short x) | public void | setString(String x) | public void | setTime(Time x) | public void | setTime(Time x, Calendar cal) | public void | setTimestamp(Timestamp x) | public void | setTimestamp(Timestamp x, Calendar cal) | public void | setURL(URL x) |
getParameterIndex | public int getParameterIndex()(Code) | | Returns the index of the parameter being set.
the parameter index used to set the value in the underlyingPreparedStatement |
getPreparedStatement | public PreparedStatement getPreparedStatement()(Code) | | Returns the underlying prepared statement...be careful!
|
setArray | public void setArray(Array x) throws SQLException(Code) | | Set an array on the underlying prepared statement
Parameters: x - - the array to set throws: SQLException - - thrown if the underlying prepared statement throws it |
setAsciiStream | public void setAsciiStream(InputStream x, int length) throws SQLException(Code) | | Set an InputStream on the underlying prepared statement
Parameters: x - - the InputStream Parameters: length - - the length of the InputStream throws: SQLException - - thrown if the underlying prepared statement throws it |
setBigDecimal | public void setBigDecimal(BigDecimal x) throws SQLException(Code) | | Set an on the underlying prepared statement
Parameters: x - throws: SQLException - - thrown if the underlying prepared statement throws it |
setBinaryStream | public void setBinaryStream(InputStream x, int length) throws SQLException(Code) | | Set an InputStream on the underlying prepared statement
Parameters: x - - the InputStream Parameters: length - - the length of the InputStream throws: SQLException - - thrown if the underlying prepared statement throws it |
setBlob | public void setBlob(Blob x) throws SQLException(Code) | | Set a blob on the underlying prepared statement
Parameters: x - - the blob throws: SQLException - - thrown if the underlying prepared statement throws it |
setBoolean | public void setBoolean(boolean x) throws SQLException(Code) | | Set a boolean on the underlying prepared statement
Parameters: x - - the boolean throws: SQLException - - thrown if the underlying prepared statement throws it |
setByte | public void setByte(byte x) throws SQLException(Code) | | Set a byte on the underlying prepared statement
Parameters: x - - the byte throws: SQLException - - thrown if the underlying prepared statement throws it |
setBytes | public void setBytes(byte x) throws SQLException(Code) | | Set a byte array on the underlying prepared statement
Parameters: x - - the byte[] throws: SQLException - - thrown if the underlying prepared statement throws it |
setCharacterStream | public void setCharacterStream(Reader reader, int length) throws SQLException(Code) | | Set a character stream on the underlying prepared statement
Parameters: reader - - the reader Parameters: length - - the length of the reader throws: SQLException - - thrown if the underlying prepared statement throws it |
setClob | public void setClob(Clob x) throws SQLException(Code) | | Set a clob on the underlying prepared statement
Parameters: x - - the clob throws: SQLException - - thrown if the underlying prepared statement throws it |
setDate | public void setDate(Date x) throws SQLException(Code) | | Set a date on the underlying prepared statement
Parameters: x - - the date throws: SQLException - - thrown if the underlying prepared statement throws it |
setDate | public void setDate(Date x, Calendar cal) throws SQLException(Code) | | Set a date with a calendar on the underlying prepared statement
Parameters: x - - the date Parameters: cal - - the calendar throws: SQLException - - thrown if the underlying prepared statement throws it |
setDouble | public void setDouble(double x) throws SQLException(Code) | | Set a double on the underlying prepared statement
Parameters: x - - the double throws: SQLException - - thrown if the underlying prepared statement throws it |
setFloat | public void setFloat(float x) throws SQLException(Code) | | Set a float on the underlying prepared statement
Parameters: x - the float throws: SQLException - - thrown if the underlying prepared statement throws it |
setInt | public void setInt(int x) throws SQLException(Code) | | Set an integer on the underlying prepared statement
Parameters: x - - the int throws: SQLException - - thrown if the underlying prepared statement throws it |
setLong | public void setLong(long x) throws SQLException(Code) | | Set a long on the underlying prepared statement
Parameters: x - - the long throws: SQLException - - thrown if the underlying prepared statement throws it |
setNull | public void setNull(int sqlType) throws SQLException(Code) | | Set a null on the underlying prepared statement
Parameters: sqlType - - the type for the null value throws: SQLException - - thrown if the underlying prepared statement throws it |
setNull | public void setNull(int sqlType, String typeName) throws SQLException(Code) | | Set a null on the underlying prepared statement
Parameters: sqlType - - the type for the null value Parameters: typeName - - the name of the type throws: SQLException - - thrown if the underlying prepared statement throws it |
setObject | public void setObject(Object x) throws SQLException(Code) | | Set an object on the underlying prepared statement
Parameters: x - - the object to set throws: SQLException - - thrown if the underlying prepared statement throws it |
setObject | public void setObject(Object x, int targetSqlType) throws SQLException(Code) | | Set an object on the underlying prepared statement
Parameters: x - - the object to set Parameters: targetSqlType - - the sql type of the object throws: SQLException - - thrown if the underlying prepared statement throws it |
setObject | public void setObject(Object x, int targetSqlType, int scale) throws SQLException(Code) | | Set an object on the underlying prepared statement
Parameters: x - - the object to set Parameters: targetSqlType - - the sql type of the object Parameters: scale - - the scale of the object throws: SQLException - - thrown if the underlying prepared statement throws it |
setRef | public void setRef(Ref x) throws SQLException(Code) | | Set a reference on the underlying prepared statement
Parameters: x - - the reference to set throws: SQLException - - thrown if the underlying prepared statement throws it |
setShort | public void setShort(short x) throws SQLException(Code) | | Set a short on the underlying prepared statement
Parameters: x - - the short to set throws: SQLException - - thrown if the underlying prepared statement throws it |
setString | public void setString(String x) throws SQLException(Code) | | Set a string on the underlying prepared statement
Parameters: x - - the string to set throws: SQLException - - thrown if the underlying prepared statement throws it |
setTime | public void setTime(Time x) throws SQLException(Code) | | Set a time on the underlying prepared statement
Parameters: x - - the time to set throws: SQLException - - thrown if the underlying prepared statement throws it |
setTime | public void setTime(Time x, Calendar cal) throws SQLException(Code) | | Set a time with a calendar on the underlying prepared statement
Parameters: x - - the time to set Parameters: cal - - the calendar to use throws: SQLException - - thrown if the underlying prepared statement throws it |
setTimestamp | public void setTimestamp(Timestamp x) throws SQLException(Code) | | Set a timestamp on the underlying prepared statement
Parameters: x - - the timestamp to set throws: SQLException - - thrown if the underlying prepared statement throws it |
setTimestamp | public void setTimestamp(Timestamp x, Calendar cal) throws SQLException(Code) | | Set a timestamp on the underlying prepared statement
Parameters: x - - the timestamp to set Parameters: cal - - the calendar to use throws: SQLException - - thrown if the underlying prepared statement throws it |
setURL | public void setURL(URL x) throws SQLException(Code) | | Set a URL on the underlying prepared statement
Parameters: x - - the url to set throws: SQLException - - thrown if the underlying prepared statement throws it |
|
|
|