com.ibatis.sqlmap.engine.type
Class ParameterSetterImpl
java.lang.Object
com.ibatis.sqlmap.engine.type.ParameterSetterImpl
- All Implemented Interfaces:
- ParameterSetter
- public class ParameterSetterImpl
- extends java.lang.Object
- implements ParameterSetter
Field Summary |
private int |
index
|
private java.sql.PreparedStatement |
ps
|
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ps
private java.sql.PreparedStatement ps
index
private int index
ParameterSetterImpl
public ParameterSetterImpl(java.sql.PreparedStatement statement,
int columnIndex)
setArray
public void setArray(java.sql.Array x)
throws java.sql.SQLException
- Specified by:
setArray
in interface ParameterSetter
- Throws:
java.sql.SQLException
setAsciiStream
public void setAsciiStream(java.io.InputStream x,
int length)
throws java.sql.SQLException
- Specified by:
setAsciiStream
in interface ParameterSetter
- Throws:
java.sql.SQLException
setBigDecimal
public void setBigDecimal(java.math.BigDecimal x)
throws java.sql.SQLException
- Specified by:
setBigDecimal
in interface ParameterSetter
- Throws:
java.sql.SQLException
setBinaryStream
public void setBinaryStream(java.io.InputStream x,
int length)
throws java.sql.SQLException
- Specified by:
setBinaryStream
in interface ParameterSetter
- Throws:
java.sql.SQLException
setBlob
public void setBlob(java.sql.Blob x)
throws java.sql.SQLException
- Specified by:
setBlob
in interface ParameterSetter
- Throws:
java.sql.SQLException
setBoolean
public void setBoolean(boolean x)
throws java.sql.SQLException
- Specified by:
setBoolean
in interface ParameterSetter
- Throws:
java.sql.SQLException
setByte
public void setByte(byte x)
throws java.sql.SQLException
- Specified by:
setByte
in interface ParameterSetter
- Throws:
java.sql.SQLException
setBytes
public void setBytes(byte[] x)
throws java.sql.SQLException
- Specified by:
setBytes
in interface ParameterSetter
- Throws:
java.sql.SQLException
setCharacterStream
public void setCharacterStream(java.io.Reader reader,
int length)
throws java.sql.SQLException
- Specified by:
setCharacterStream
in interface ParameterSetter
- Throws:
java.sql.SQLException
setClob
public void setClob(java.sql.Clob x)
throws java.sql.SQLException
- Specified by:
setClob
in interface ParameterSetter
- Throws:
java.sql.SQLException
setDate
public void setDate(java.sql.Date x)
throws java.sql.SQLException
- Specified by:
setDate
in interface ParameterSetter
- Throws:
java.sql.SQLException
setDate
public void setDate(java.sql.Date x,
java.util.Calendar cal)
throws java.sql.SQLException
- Specified by:
setDate
in interface ParameterSetter
- Throws:
java.sql.SQLException
setDouble
public void setDouble(double x)
throws java.sql.SQLException
- Specified by:
setDouble
in interface ParameterSetter
- Throws:
java.sql.SQLException
setFloat
public void setFloat(float x)
throws java.sql.SQLException
- Specified by:
setFloat
in interface ParameterSetter
- Throws:
java.sql.SQLException
setInt
public void setInt(int x)
throws java.sql.SQLException
- Specified by:
setInt
in interface ParameterSetter
- Throws:
java.sql.SQLException
setLong
public void setLong(long x)
throws java.sql.SQLException
- Specified by:
setLong
in interface ParameterSetter
- Throws:
java.sql.SQLException
setNull
public void setNull(int sqlType)
throws java.sql.SQLException
- Specified by:
setNull
in interface ParameterSetter
- Throws:
java.sql.SQLException
setNull
public void setNull(int sqlType,
java.lang.String typeName)
throws java.sql.SQLException
- Specified by:
setNull
in interface ParameterSetter
- Throws:
java.sql.SQLException
setObject
public void setObject(java.lang.Object x)
throws java.sql.SQLException
- Specified by:
setObject
in interface ParameterSetter
- Throws:
java.sql.SQLException
setObject
public void setObject(java.lang.Object x,
int targetSqlType)
throws java.sql.SQLException
- Specified by:
setObject
in interface ParameterSetter
- Throws:
java.sql.SQLException
setObject
public void setObject(java.lang.Object x,
int targetSqlType,
int scale)
throws java.sql.SQLException
- Specified by:
setObject
in interface ParameterSetter
- Throws:
java.sql.SQLException
setRef
public void setRef(java.sql.Ref x)
throws java.sql.SQLException
- Specified by:
setRef
in interface ParameterSetter
- Throws:
java.sql.SQLException
setShort
public void setShort(short x)
throws java.sql.SQLException
- Specified by:
setShort
in interface ParameterSetter
- Throws:
java.sql.SQLException
setString
public void setString(java.lang.String x)
throws java.sql.SQLException
- Specified by:
setString
in interface ParameterSetter
- Throws:
java.sql.SQLException
setTime
public void setTime(java.sql.Time x)
throws java.sql.SQLException
- Specified by:
setTime
in interface ParameterSetter
- Throws:
java.sql.SQLException
setTime
public void setTime(java.sql.Time x,
java.util.Calendar cal)
throws java.sql.SQLException
- Specified by:
setTime
in interface ParameterSetter
- Throws:
java.sql.SQLException
setTimestamp
public void setTimestamp(java.sql.Timestamp x)
throws java.sql.SQLException
- Specified by:
setTimestamp
in interface ParameterSetter
- Throws:
java.sql.SQLException
setTimestamp
public void setTimestamp(java.sql.Timestamp x,
java.util.Calendar cal)
throws java.sql.SQLException
- Specified by:
setTimestamp
in interface ParameterSetter
- Throws:
java.sql.SQLException
setURL
public void setURL(java.net.URL x)
throws java.sql.SQLException
- Specified by:
setURL
in interface ParameterSetter
- Throws:
java.sql.SQLException