|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibatis.sqlmap.engine.type.ParameterSetterImpl
A ParameterSetter implementation
Constructor Summary | |
ParameterSetterImpl(java.sql.PreparedStatement statement,
int columnIndex)
Creates an instance for a PreparedStatement and column index |
Method Summary | |
int |
getParameterIndex()
Returns the index of the parameter being set. |
java.sql.PreparedStatement |
getPreparedStatement()
Returns the underlying prepared statement...be careful! |
void |
setArray(java.sql.Array x)
Set an array on the underlying prepared statement |
void |
setAsciiStream(java.io.InputStream x,
int length)
Set an InputStream on the underlying prepared statement |
void |
setBigDecimal(java.math.BigDecimal x)
Set an on the underlying prepared statement |
void |
setBinaryStream(java.io.InputStream x,
int length)
Set an InputStream on the underlying prepared statement |
void |
setBlob(java.sql.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(java.io.Reader reader,
int length)
Set a character stream on the underlying prepared statement |
void |
setClob(java.sql.Clob x)
Set a clob on the underlying prepared statement |
void |
setDate(java.sql.Date x)
Set a date on the underlying prepared statement |
void |
setDate(java.sql.Date x,
java.util.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,
java.lang.String typeName)
Set a null on the underlying prepared statement |
void |
setObject(java.lang.Object x)
Set an object on the underlying prepared statement |
void |
setObject(java.lang.Object x,
int targetSqlType)
Set an object on the underlying prepared statement |
void |
setObject(java.lang.Object x,
int targetSqlType,
int scale)
Set an object on the underlying prepared statement |
void |
setRef(java.sql.Ref x)
Set a reference on the underlying prepared statement |
void |
setShort(short x)
Set a short on the underlying prepared statement |
void |
setString(java.lang.String x)
Set a string on the underlying prepared statement |
void |
setTime(java.sql.Time x)
Set a time on the underlying prepared statement |
void |
setTime(java.sql.Time x,
java.util.Calendar cal)
Set a time with a calendar on the underlying prepared statement |
void |
setTimestamp(java.sql.Timestamp x)
Set a timestamp on the underlying prepared statement |
void |
setTimestamp(java.sql.Timestamp x,
java.util.Calendar cal)
Set a timestamp on the underlying prepared statement |
void |
setURL(java.net.URL x)
Set a URL on the underlying prepared statement |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ParameterSetterImpl(java.sql.PreparedStatement statement, int columnIndex)
statement
- - the PreparedStatementcolumnIndex
- - the column indexMethod Detail |
public void setArray(java.sql.Array x) throws java.sql.SQLException
ParameterSetter
setArray
in interface ParameterSetter
x
- - the array to set
java.sql.SQLException
- - thrown if the underlying prepared statement throws itpublic void setAsciiStream(java.io.InputStream x, int length) throws java.sql.SQLException
ParameterSetter
setAsciiStream
in interface ParameterSetter
x
- - the InputStreamlength
- - the length of the InputStream
java.sql.SQLException
- - thrown if the underlying prepared statement throws itpublic void setBigDecimal(java.math.BigDecimal x) throws java.sql.SQLException
ParameterSetter
setBigDecimal
in interface ParameterSetter
x
-
java.sql.SQLException
- - thrown if the underlying prepared statement throws itpublic void setBinaryStream(java.io.InputStream x, int length) throws java.sql.SQLException
ParameterSetter
setBinaryStream
in interface ParameterSetter
x
- - the InputStreamlength
- - the length of the InputStream
java.sql.SQLException
- - thrown if the underlying prepared statement throws itpublic void setBlob(java.sql.Blob x) throws java.sql.SQLException
ParameterSetter
setBlob
in interface ParameterSetter
x
- - the blob
java.sql.SQLException
- - thrown if the underlying prepared statement throws itpublic void setBoolean(boolean x) throws java.sql.SQLException
ParameterSetter
setBoolean
in interface ParameterSetter
x
- - the boolean
java.sql.SQLException
- - thrown if the underlying prepared statement throws itpublic void setByte(byte x) throws java.sql.SQLException
ParameterSetter
setByte
in interface ParameterSetter
x
- - the byte
java.sql.SQLException
- - thrown if the underlying prepared statement throws itpublic void setBytes(byte[] x) throws java.sql.SQLException
ParameterSetter
setBytes
in interface ParameterSetter
x
- - the byte[]
java.sql.SQLException
- - thrown if the underlying prepared statement throws itpublic void setCharacterStream(java.io.Reader reader, int length) throws java.sql.SQLException
ParameterSetter
setCharacterStream
in interface ParameterSetter
reader
- - the readerlength
- - the length of the reader
java.sql.SQLException
- - thrown if the underlying prepared statement throws itpublic void setClob(java.sql.Clob x) throws java.sql.SQLException
ParameterSetter
setClob
in interface ParameterSetter
x
- - the clob
java.sql.SQLException
- - thrown if the underlying prepared statement throws itpublic void setDate(java.sql.Date x) throws java.sql.SQLException
ParameterSetter
setDate
in interface ParameterSetter
x
- - the date
java.sql.SQLException
- - thrown if the underlying prepared statement throws itpublic void setDate(java.sql.Date x, java.util.Calendar cal) throws java.sql.SQLException
ParameterSetter
setDate
in interface ParameterSetter
x
- - the datecal
- - the calendar
java.sql.SQLException
- - thrown if the underlying prepared statement throws itpublic void setDouble(double x) throws java.sql.SQLException
ParameterSetter
setDouble
in interface ParameterSetter
x
- - the double
java.sql.SQLException
- - thrown if the underlying prepared statement throws itpublic void setFloat(float x) throws java.sql.SQLException
ParameterSetter
setFloat
in interface ParameterSetter
x
- the float
java.sql.SQLException
- - thrown if the underlying prepared statement throws itpublic void setInt(int x) throws java.sql.SQLException
ParameterSetter
setInt
in interface ParameterSetter
x
- - the int
java.sql.SQLException
- - thrown if the underlying prepared statement throws itpublic void setLong(long x) throws java.sql.SQLException
ParameterSetter
setLong
in interface ParameterSetter
x
- - the long
java.sql.SQLException
- - thrown if the underlying prepared statement throws itpublic void setNull(int sqlType) throws java.sql.SQLException
ParameterSetter
setNull
in interface ParameterSetter
sqlType
- - the type for the null value
java.sql.SQLException
- - thrown if the underlying prepared statement throws itpublic void setNull(int sqlType, java.lang.String typeName) throws java.sql.SQLException
ParameterSetter
setNull
in interface ParameterSetter
sqlType
- - the type for the null valuetypeName
- - the name of the type
java.sql.SQLException
- - thrown if the underlying prepared statement throws itpublic void setObject(java.lang.Object x) throws java.sql.SQLException
ParameterSetter
setObject
in interface ParameterSetter
x
- - the object to set
java.sql.SQLException
- - thrown if the underlying prepared statement throws itpublic void setObject(java.lang.Object x, int targetSqlType) throws java.sql.SQLException
ParameterSetter
setObject
in interface ParameterSetter
x
- - the object to settargetSqlType
- - the sql type of the object
java.sql.SQLException
- - thrown if the underlying prepared statement throws itpublic void setObject(java.lang.Object x, int targetSqlType, int scale) throws java.sql.SQLException
ParameterSetter
setObject
in interface ParameterSetter
x
- - the object to settargetSqlType
- - the sql type of the objectscale
- - the scale of the object
java.sql.SQLException
- - thrown if the underlying prepared statement throws itpublic void setRef(java.sql.Ref x) throws java.sql.SQLException
ParameterSetter
setRef
in interface ParameterSetter
x
- - the reference to set
java.sql.SQLException
- - thrown if the underlying prepared statement throws itpublic void setShort(short x) throws java.sql.SQLException
ParameterSetter
setShort
in interface ParameterSetter
x
- - the short to set
java.sql.SQLException
- - thrown if the underlying prepared statement throws itpublic void setString(java.lang.String x) throws java.sql.SQLException
ParameterSetter
setString
in interface ParameterSetter
x
- - the string to set
java.sql.SQLException
- - thrown if the underlying prepared statement throws itpublic void setTime(java.sql.Time x) throws java.sql.SQLException
ParameterSetter
setTime
in interface ParameterSetter
x
- - the time to set
java.sql.SQLException
- - thrown if the underlying prepared statement throws itpublic void setTime(java.sql.Time x, java.util.Calendar cal) throws java.sql.SQLException
ParameterSetter
setTime
in interface ParameterSetter
x
- - the time to setcal
- - the calendar to use
java.sql.SQLException
- - thrown if the underlying prepared statement throws itpublic void setTimestamp(java.sql.Timestamp x) throws java.sql.SQLException
ParameterSetter
setTimestamp
in interface ParameterSetter
x
- - the timestamp to set
java.sql.SQLException
- - thrown if the underlying prepared statement throws itpublic void setTimestamp(java.sql.Timestamp x, java.util.Calendar cal) throws java.sql.SQLException
ParameterSetter
setTimestamp
in interface ParameterSetter
x
- - the timestamp to setcal
- - the calendar to use
java.sql.SQLException
- - thrown if the underlying prepared statement throws itpublic void setURL(java.net.URL x) throws java.sql.SQLException
ParameterSetter
setURL
in interface ParameterSetter
x
- - the url to set
java.sql.SQLException
- - thrown if the underlying prepared statement throws itpublic java.sql.PreparedStatement getPreparedStatement()
ParameterSetter
getPreparedStatement
in interface ParameterSetter
public int getParameterIndex()
ParameterSetter
getParameterIndex
in interface ParameterSetter
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |