com.ibatis.sqlmap.client.extensions
Interface ParameterSetter
- All Known Implementing Classes:
- ParameterSetterImpl
- 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 |
void |
setArray(java.sql.Array x)
|
void |
setAsciiStream(java.io.InputStream x,
int length)
|
void |
setBigDecimal(java.math.BigDecimal x)
|
void |
setBinaryStream(java.io.InputStream x,
int length)
|
void |
setBlob(java.sql.Blob x)
|
void |
setBoolean(boolean x)
|
void |
setByte(byte x)
|
void |
setBytes(byte[] x)
|
void |
setCharacterStream(java.io.Reader reader,
int length)
|
void |
setClob(java.sql.Clob x)
|
void |
setDate(java.sql.Date x)
|
void |
setDate(java.sql.Date x,
java.util.Calendar cal)
|
void |
setDouble(double x)
|
void |
setFloat(float x)
|
void |
setInt(int x)
|
void |
setLong(long x)
|
void |
setNull(int sqlType)
|
void |
setNull(int sqlType,
java.lang.String typeName)
|
void |
setObject(java.lang.Object x)
|
void |
setObject(java.lang.Object x,
int targetSqlType)
|
void |
setObject(java.lang.Object x,
int targetSqlType,
int scale)
|
void |
setRef(java.sql.Ref x)
|
void |
setShort(short x)
|
void |
setString(java.lang.String x)
|
void |
setTime(java.sql.Time x)
|
void |
setTime(java.sql.Time x,
java.util.Calendar cal)
|
void |
setTimestamp(java.sql.Timestamp x)
|
void |
setTimestamp(java.sql.Timestamp x,
java.util.Calendar cal)
|
void |
setURL(java.net.URL x)
|
setArray
public void setArray(java.sql.Array x)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
setAsciiStream
public void setAsciiStream(java.io.InputStream x,
int length)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
setBigDecimal
public void setBigDecimal(java.math.BigDecimal x)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
setBinaryStream
public void setBinaryStream(java.io.InputStream x,
int length)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
setBlob
public void setBlob(java.sql.Blob x)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
setBoolean
public void setBoolean(boolean x)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
setByte
public void setByte(byte x)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
setBytes
public void setBytes(byte[] x)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
setCharacterStream
public void setCharacterStream(java.io.Reader reader,
int length)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
setClob
public void setClob(java.sql.Clob x)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
setDate
public void setDate(java.sql.Date x)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
setDate
public void setDate(java.sql.Date x,
java.util.Calendar cal)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
setDouble
public void setDouble(double x)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
setFloat
public void setFloat(float x)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
setInt
public void setInt(int x)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
setLong
public void setLong(long x)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
setNull
public void setNull(int sqlType)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
setNull
public void setNull(int sqlType,
java.lang.String typeName)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
setObject
public void setObject(java.lang.Object x)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
setObject
public void setObject(java.lang.Object x,
int targetSqlType)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
setObject
public void setObject(java.lang.Object x,
int targetSqlType,
int scale)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
setRef
public void setRef(java.sql.Ref x)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
setShort
public void setShort(short x)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
setString
public void setString(java.lang.String x)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
setTime
public void setTime(java.sql.Time x)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
setTime
public void setTime(java.sql.Time x,
java.util.Calendar cal)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
setTimestamp
public void setTimestamp(java.sql.Timestamp x)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
setTimestamp
public void setTimestamp(java.sql.Timestamp x,
java.util.Calendar cal)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
setURL
public void setURL(java.net.URL x)
throws java.sql.SQLException
- Throws:
java.sql.SQLException