类 CallableStatementWrapper
java.lang.Object
cn.featherfly.common.db.wrapper.CallableStatementWrapper
- 所有已实现的接口:
java.lang.AutoCloseable
public class CallableStatementWrapper
extends java.lang.Object
implements java.lang.AutoCloseable
java.sql.PreparedStatement的包装类,包装所有检查异常(SQLEception)为非检查异常(JdbcException)
-
构造器概要
构造器 构造器 说明 CallableStatementWrapper(java.sql.CallableStatement callableStatement, ConnectionWrapper connectionWrapper)Instantiates a new callable statement wrapper. -
方法概要
修饰符和类型 方法 说明 voidaddBatch()Adds the batch.voidaddBatch(java.lang.String sql)Adds the batch.voidcancel()Cancel.voidclearBatch()Clear batch.voidclearParameters()Clear parameters.voidclearWarnings()Clear warnings.voidclose()Close.booleanexecute()Execute.booleanexecute(java.lang.String sql)Execute.booleanexecute(java.lang.String sql, int autoGeneratedKeys)Execute.booleanexecute(java.lang.String sql, int[] columnIndexes)Execute.booleanexecute(java.lang.String sql, java.lang.String[] columnNames)Execute.int[]executeBatch()Execute batch.java.sql.ResultSetexecuteQuery()Execute query.java.sql.ResultSetexecuteQuery(java.lang.String sql)Execute query.intexecuteUpdate()Execute update.intexecuteUpdate(java.lang.String sql)Execute update.intexecuteUpdate(java.lang.String sql, int autoGeneratedKeys)Execute update.intexecuteUpdate(java.lang.String sql, int[] columnIndexes)Execute update.intexecuteUpdate(java.lang.String sql, java.lang.String[] columnNames)Execute update.java.sql.ArraygetArray(int parameterIndex)Gets the array.java.sql.ArraygetArray(java.lang.String parameterName)Gets the array.java.math.BigDecimalgetBigDecimal(int parameterIndex)Gets the big decimal.java.math.BigDecimalgetBigDecimal(int parameterIndex, int scale)已过时。java.math.BigDecimalgetBigDecimal(java.lang.String parameterName)Gets the big decimal.java.sql.BlobgetBlob(int parameterIndex)Gets the blob.java.sql.BlobgetBlob(java.lang.String parameterName)Gets the blob.booleangetBoolean(int parameterIndex)Gets the boolean.booleangetBoolean(java.lang.String parameterName)Gets the boolean.bytegetByte(int parameterIndex)Gets the byte.bytegetByte(java.lang.String parameterName)Gets the byte.byte[]getBytes(int parameterIndex)Gets the bytes.byte[]getBytes(java.lang.String parameterName)Gets the bytes.java.sql.CallableStatementgetCallableStatement()Gets the callable statement.java.io.ReadergetCharacterStream(int parameterIndex)Gets the character stream.java.io.ReadergetCharacterStream(java.lang.String parameterName)Gets the character stream.java.sql.ClobgetClob(int parameterIndex)Gets the clob.java.sql.ClobgetClob(java.lang.String parameterName)Gets the clob.ConnectionWrappergetConnection()Gets the connection.java.sql.DategetDate(int parameterIndex)Gets the date.java.sql.DategetDate(int parameterIndex, java.util.Calendar cal)Gets the date.java.sql.DategetDate(java.lang.String parameterName)Gets the date.java.sql.DategetDate(java.lang.String parameterName, java.util.Calendar cal)Gets the date.doublegetDouble(int parameterIndex)Gets the double.doublegetDouble(java.lang.String parameterName)Gets the double.intgetFetchDirection()Gets the fetch direction.intgetFetchSize()Gets the fetch size.floatgetFloat(int parameterIndex)Gets the float.floatgetFloat(java.lang.String parameterName)Gets the float.java.sql.ResultSetgetGeneratedKeys()Gets the generated keys.intgetInt(int parameterIndex)Gets the int.intgetInt(java.lang.String parameterName)Gets the int.longgetLong(int parameterIndex)Gets the long.longgetLong(java.lang.String parameterName)Gets the long.intgetMaxFieldSize()Gets the max field size.intgetMaxRows()Gets the max rows.java.sql.ResultSetMetaDatagetMetaData()Gets the meta data.booleangetMoreResults()Gets the more results.booleangetMoreResults(int current)Gets the more results.java.io.ReadergetNCharacterStream(int parameterIndex)Gets the n character stream.java.io.ReadergetNCharacterStream(java.lang.String parameterName)Gets the n character stream.java.sql.NClobgetNClob(int parameterIndex)Gets the n clob.java.sql.NClobgetNClob(java.lang.String parameterName)Gets the n clob.java.lang.StringgetNString(int parameterIndex)Gets the n string.java.lang.StringgetNString(java.lang.String parameterName)Gets the n string.java.lang.ObjectgetObject(int parameterIndex)Gets the object.java.lang.ObjectgetObject(int parameterIndex, java.util.Map<java.lang.String,java.lang.Class<?>> map)Gets the object.java.lang.ObjectgetObject(java.lang.String parameterName)Gets the object.java.lang.ObjectgetObject(java.lang.String parameterName, java.util.Map<java.lang.String,java.lang.Class<?>> map)Gets the object.java.sql.ParameterMetaDatagetParameterMetaData()Gets the parameter meta data.intgetQueryTimeout()Gets the query timeout.java.sql.RefgetRef(int parameterIndex)Gets the ref.java.sql.RefgetRef(java.lang.String parameterName)Gets the ref.java.sql.ResultSetgetResultSet()Gets the result set.intgetResultSetConcurrency()Gets the result set concurrency.intgetResultSetHoldability()Gets the result set holdability.intgetResultSetType()Gets the result set type.java.sql.RowIdgetRowId(int parameterIndex)Gets the row id.java.sql.RowIdgetRowId(java.lang.String parameterName)Gets the row id.shortgetShort(int parameterIndex)Gets the short.shortgetShort(java.lang.String parameterName)Gets the short.java.sql.SQLXMLgetSQLXML(int parameterIndex)Gets the sqlxml.java.sql.SQLXMLgetSQLXML(java.lang.String parameterName)Gets the sqlxml.java.lang.StringgetString(int parameterIndex)Gets the string.java.lang.StringgetString(java.lang.String parameterName)Gets the string.java.sql.TimegetTime(int parameterIndex)Gets the time.java.sql.TimegetTime(int parameterIndex, java.util.Calendar cal)Gets the time.java.sql.TimegetTime(java.lang.String parameterName)Gets the time.java.sql.TimegetTime(java.lang.String parameterName, java.util.Calendar cal)Gets the time.java.sql.TimestampgetTimestamp(int parameterIndex)Gets the timestamp.java.sql.TimestampgetTimestamp(int parameterIndex, java.util.Calendar cal)Gets the timestamp.java.sql.TimestampgetTimestamp(java.lang.String parameterName)Gets the timestamp.java.sql.TimestampgetTimestamp(java.lang.String parameterName, java.util.Calendar cal)Gets the timestamp.intgetUpdateCount()Gets the update count.java.net.URLgetURL(int parameterIndex)Gets the url.java.net.URLgetURL(java.lang.String parameterName)Gets the url.java.sql.SQLWarninggetWarnings()Gets the warnings.booleanisClosed()Checks if is closed.booleanisPoolable()Checks if is poolable.booleanisWrapperFor(java.lang.Class<?> iface)Checks if is wrapper for.voidregisterOutParameter(int parameterIndex, int sqlType)Register out parameter.voidregisterOutParameter(int parameterIndex, int sqlType, int scale)Register out parameter.voidregisterOutParameter(int parameterIndex, int sqlType, java.lang.String typeName)Register out parameter.voidregisterOutParameter(java.lang.String parameterName, int sqlType)Register out parameter.voidregisterOutParameter(java.lang.String parameterName, int sqlType, int scale)Register out parameter.voidregisterOutParameter(java.lang.String parameterName, int sqlType, java.lang.String typeName)Register out parameter.voidsetArray(int parameterIndex, java.sql.Array x)Sets the array.voidsetAsciiStream(int parameterIndex, java.io.InputStream x)Sets the ascii stream.voidsetAsciiStream(int parameterIndex, java.io.InputStream x, int length)Sets the ascii stream.voidsetAsciiStream(int parameterIndex, java.io.InputStream x, long length)Sets the ascii stream.voidsetAsciiStream(java.lang.String parameterName, java.io.InputStream x)Sets the ascii stream.voidsetAsciiStream(java.lang.String parameterName, java.io.InputStream x, int length)Sets the ascii stream.voidsetAsciiStream(java.lang.String parameterName, java.io.InputStream x, long length)Sets the ascii stream.voidsetBigDecimal(int parameterIndex, java.math.BigDecimal x)Sets the big decimal.voidsetBigDecimal(java.lang.String parameterName, java.math.BigDecimal x)Sets the big decimal.voidsetBinaryStream(int parameterIndex, java.io.InputStream x)Sets the binary stream.voidsetBinaryStream(int parameterIndex, java.io.InputStream x, int length)Sets the binary stream.voidsetBinaryStream(int parameterIndex, java.io.InputStream x, long length)Sets the binary stream.voidsetBinaryStream(java.lang.String parameterName, java.io.InputStream x)Sets the binary stream.voidsetBinaryStream(java.lang.String parameterName, java.io.InputStream x, int length)Sets the binary stream.voidsetBinaryStream(java.lang.String parameterName, java.io.InputStream x, long length)Sets the binary stream.voidsetBlob(int parameterIndex, java.io.InputStream inputStream)Sets the blob.voidsetBlob(int parameterIndex, java.io.InputStream inputStream, long length)Sets the blob.voidsetBlob(int parameterIndex, java.sql.Blob x)Sets the blob.voidsetBlob(java.lang.String parameterName, java.io.InputStream inputStream)Sets the blob.voidsetBlob(java.lang.String parameterName, java.io.InputStream inputStream, long length)Sets the blob.voidsetBlob(java.lang.String parameterName, java.sql.Blob x)Sets the blob.voidsetBoolean(int parameterIndex, boolean x)Sets the boolean.voidsetBoolean(java.lang.String parameterName, boolean x)Sets the boolean.voidsetByte(int parameterIndex, byte x)Sets the byte.voidsetByte(java.lang.String parameterName, byte x)Sets the byte.voidsetBytes(int parameterIndex, byte[] x)Sets the bytes.voidsetBytes(java.lang.String parameterName, byte[] x)Sets the bytes.voidsetCharacterStream(int parameterIndex, java.io.Reader reader)Sets the character stream.voidsetCharacterStream(int parameterIndex, java.io.Reader reader, int length)Sets the character stream.voidsetCharacterStream(int parameterIndex, java.io.Reader reader, long length)Sets the character stream.voidsetCharacterStream(java.lang.String parameterName, java.io.Reader reader)Sets the character stream.voidsetCharacterStream(java.lang.String parameterName, java.io.Reader reader, int length)Sets the character stream.voidsetCharacterStream(java.lang.String parameterName, java.io.Reader reader, long length)Sets the character stream.voidsetClob(int parameterIndex, java.io.Reader reader)Sets the clob.voidsetClob(int parameterIndex, java.io.Reader reader, long length)Sets the clob.voidsetClob(int parameterIndex, java.sql.Clob x)Sets the clob.voidsetClob(java.lang.String parameterName, java.io.Reader reader)Sets the clob.voidsetClob(java.lang.String parameterName, java.io.Reader reader, long length)Sets the clob.voidsetClob(java.lang.String parameterName, java.sql.Clob x)Sets the clob.voidsetCursorName(java.lang.String name)Sets the cursor name.voidsetDate(int parameterIndex, java.sql.Date x)Sets the date.voidsetDate(int parameterIndex, java.sql.Date x, java.util.Calendar cal)Sets the date.voidsetDate(java.lang.String parameterName, java.sql.Date x)Sets the date.voidsetDate(java.lang.String parameterName, java.sql.Date x, java.util.Calendar cal)Sets the date.voidsetDouble(int parameterIndex, double x)Sets the double.voidsetDouble(java.lang.String parameterName, double x)Sets the double.voidsetEscapeProcessing(boolean enable)Sets the escape processing.voidsetFetchDirection(int direction)Sets the fetch direction.voidsetFetchSize(int rows)Sets the fetch size.voidsetFloat(int parameterIndex, float x)Sets the float.voidsetFloat(java.lang.String parameterName, float x)Sets the float.voidsetInt(int parameterIndex, int x)Sets the int.voidsetInt(java.lang.String parameterName, int x)Sets the int.voidsetLong(int parameterIndex, long x)Sets the long.voidsetLong(java.lang.String parameterName, long x)Sets the long.voidsetMaxFieldSize(int max)Sets the max field size.voidsetMaxRows(int max)Sets the max rows.voidsetNCharacterStream(int parameterIndex, java.io.Reader value)Sets the N character stream.voidsetNCharacterStream(int parameterIndex, java.io.Reader value, long length)Sets the N character stream.voidsetNCharacterStream(java.lang.String parameterName, java.io.Reader value)Sets the N character stream.voidsetNCharacterStream(java.lang.String parameterName, java.io.Reader value, long length)Sets the N character stream.voidsetNClob(int parameterIndex, java.io.Reader reader)Sets the N clob.voidsetNClob(int parameterIndex, java.io.Reader reader, long length)Sets the N clob.voidsetNClob(int parameterIndex, java.sql.NClob value)Sets the N clob.voidsetNClob(java.lang.String parameterName, java.io.Reader reader)Sets the N clob.voidsetNClob(java.lang.String parameterName, java.io.Reader reader, long length)Sets the N clob.voidsetNClob(java.lang.String parameterName, java.sql.NClob value)Sets the N clob.voidsetNString(int parameterIndex, java.lang.String value)Sets the N string.voidsetNString(java.lang.String parameterName, java.lang.String value)Sets the N string.voidsetNull(int parameterIndex, int sqlType)Sets the null.voidsetNull(int parameterIndex, int sqlType, java.lang.String typeName)Sets the null.voidsetNull(java.lang.String parameterName, int sqlType)Sets the null.voidsetNull(java.lang.String parameterName, int sqlType, java.lang.String typeName)Sets the null.voidsetObject(int parameterIndex, java.lang.Object x)Sets the object.voidsetObject(int parameterIndex, java.lang.Object x, int targetSqlType)Sets the object.voidsetObject(int parameterIndex, java.lang.Object x, int targetSqlType, int scaleOrLength)Sets the object.voidsetObject(java.lang.String parameterName, java.lang.Object x)Sets the object.voidsetObject(java.lang.String parameterName, java.lang.Object x, int targetSqlType)Sets the object.voidsetObject(java.lang.String parameterName, java.lang.Object x, int targetSqlType, int scale)Sets the object.voidsetPoolable(boolean poolable)Sets the poolable.voidsetQueryTimeout(int seconds)Sets the query timeout.voidsetRef(int parameterIndex, java.sql.Ref x)Sets the ref.voidsetRowId(int parameterIndex, java.sql.RowId x)Sets the row id.voidsetRowId(java.lang.String parameterName, java.sql.RowId x)Sets the row id.voidsetShort(int parameterIndex, short x)Sets the short.voidsetShort(java.lang.String parameterName, short x)Sets the short.voidsetSQLXML(int parameterIndex, java.sql.SQLXML xmlObject)Sets the SQLXML.voidsetSQLXML(java.lang.String parameterName, java.sql.SQLXML xmlObject)Sets the SQLXML.voidsetString(int parameterIndex, java.lang.String x)Sets the string.voidsetString(java.lang.String parameterName, java.lang.String x)Sets the string.voidsetTime(int parameterIndex, java.sql.Time x)Sets the time.voidsetTime(int parameterIndex, java.sql.Time x, java.util.Calendar cal)Sets the time.voidsetTime(java.lang.String parameterName, java.sql.Time x)Sets the time.voidsetTime(java.lang.String parameterName, java.sql.Time x, java.util.Calendar cal)Sets the time.voidsetTimestamp(int parameterIndex, java.sql.Timestamp x)Sets the timestamp.voidsetTimestamp(int parameterIndex, java.sql.Timestamp x, java.util.Calendar cal)Sets the timestamp.voidsetTimestamp(java.lang.String parameterName, java.sql.Timestamp x)Sets the timestamp.voidsetTimestamp(java.lang.String parameterName, java.sql.Timestamp x, java.util.Calendar cal)Sets the timestamp.voidsetUnicodeStream(int parameterIndex, java.io.InputStream x, int length)已过时。voidsetURL(int parameterIndex, java.net.URL x)Sets the URL.voidsetURL(java.lang.String parameterName, java.net.URL val)Sets the URL.<T> Tunwrap(java.lang.Class<T> iface)Unwrap.booleanwasNull()Was null.从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
构造器详细资料
-
CallableStatementWrapper
public CallableStatementWrapper(java.sql.CallableStatement callableStatement, ConnectionWrapper connectionWrapper)Instantiates a new callable statement wrapper.- 参数:
callableStatement- callableStatementconnectionWrapper- connectionWrapper
-
-
方法详细资料
-
addBatch
public void addBatch()Adds the batch.- 另请参阅:
PreparedStatement
-
clearParameters
public void clearParameters()Clear parameters.- 另请参阅:
PreparedStatement
-
execute
public boolean execute()Execute.- 返回:
- true, if successful
- 另请参阅:
PreparedStatement
-
executeQuery
public java.sql.ResultSet executeQuery()Execute query.- 返回:
- the result set
- 另请参阅:
PreparedStatement
-
executeUpdate
public int executeUpdate()Execute update.- 返回:
- the int
- 另请参阅:
PreparedStatement
-
getMetaData
public java.sql.ResultSetMetaData getMetaData()Gets the meta data.- 返回:
- the meta data
- 另请参阅:
PreparedStatement
-
getParameterMetaData
public java.sql.ParameterMetaData getParameterMetaData()Gets the parameter meta data.- 返回:
- the parameter meta data
- 另请参阅:
PreparedStatement
-
setArray
public void setArray(int parameterIndex, java.sql.Array x)Sets the array.- 参数:
parameterIndex- the parameter indexx- the x- 另请参阅:
PreparedStatement
-
setAsciiStream
public void setAsciiStream(int parameterIndex, java.io.InputStream x)Sets the ascii stream.- 参数:
parameterIndex- the parameter indexx- the x- 另请参阅:
PreparedStatement
-
setAsciiStream
public void setAsciiStream(int parameterIndex, java.io.InputStream x, int length)Sets the ascii stream.- 参数:
parameterIndex- the parameter indexx- the xlength- the length- 另请参阅:
PreparedStatement
-
setAsciiStream
public void setAsciiStream(int parameterIndex, java.io.InputStream x, long length)Sets the ascii stream.- 参数:
parameterIndex- the parameter indexx- the xlength- the length- 另请参阅:
PreparedStatement
-
setBigDecimal
public void setBigDecimal(int parameterIndex, java.math.BigDecimal x)Sets the big decimal.- 参数:
parameterIndex- the parameter indexx- the x- 另请参阅:
PreparedStatement
-
setBinaryStream
public void setBinaryStream(int parameterIndex, java.io.InputStream x)Sets the binary stream.- 参数:
parameterIndex- the parameter indexx- the x- 另请参阅:
PreparedStatement
-
setBinaryStream
public void setBinaryStream(int parameterIndex, java.io.InputStream x, int length)Sets the binary stream.- 参数:
parameterIndex- the parameter indexx- the xlength- the length- 另请参阅:
PreparedStatement
-
setBinaryStream
public void setBinaryStream(int parameterIndex, java.io.InputStream x, long length)Sets the binary stream.- 参数:
parameterIndex- the parameter indexx- the xlength- the length- 另请参阅:
PreparedStatement
-
setBlob
public void setBlob(int parameterIndex, java.sql.Blob x)Sets the blob.- 参数:
parameterIndex- the parameter indexx- the x- 另请参阅:
PreparedStatement
-
setBlob
public void setBlob(int parameterIndex, java.io.InputStream inputStream)Sets the blob.- 参数:
parameterIndex- the parameter indexinputStream- the input stream- 另请参阅:
PreparedStatement
-
setBlob
public void setBlob(int parameterIndex, java.io.InputStream inputStream, long length)Sets the blob.- 参数:
parameterIndex- the parameter indexinputStream- the input streamlength- the length- 另请参阅:
PreparedStatement
-
setBoolean
public void setBoolean(int parameterIndex, boolean x)Sets the boolean.- 参数:
parameterIndex- the parameter indexx- the x- 另请参阅:
PreparedStatement
-
setByte
public void setByte(int parameterIndex, byte x)Sets the byte.- 参数:
parameterIndex- the parameter indexx- the x- 另请参阅:
PreparedStatement
-
setBytes
public void setBytes(int parameterIndex, byte[] x)Sets the bytes.- 参数:
parameterIndex- the parameter indexx- the x- 另请参阅:
PreparedStatement
-
setCharacterStream
public void setCharacterStream(int parameterIndex, java.io.Reader reader)Sets the character stream.- 参数:
parameterIndex- the parameter indexreader- the reader- 另请参阅:
PreparedStatement
-
setCharacterStream
public void setCharacterStream(int parameterIndex, java.io.Reader reader, int length)Sets the character stream.- 参数:
parameterIndex- the parameter indexreader- the readerlength- the length- 另请参阅:
PreparedStatement
-
setCharacterStream
public void setCharacterStream(int parameterIndex, java.io.Reader reader, long length)Sets the character stream.- 参数:
parameterIndex- the parameter indexreader- the readerlength- the length- 另请参阅:
PreparedStatement
-
setClob
public void setClob(int parameterIndex, java.sql.Clob x)Sets the clob.- 参数:
parameterIndex- the parameter indexx- the x- 另请参阅:
PreparedStatement
-
setClob
public void setClob(int parameterIndex, java.io.Reader reader)Sets the clob.- 参数:
parameterIndex- the parameter indexreader- the reader- 另请参阅:
PreparedStatement
-
setClob
public void setClob(int parameterIndex, java.io.Reader reader, long length)Sets the clob.- 参数:
parameterIndex- the parameter indexreader- the readerlength- the length- 另请参阅:
PreparedStatement
-
setDate
public void setDate(int parameterIndex, java.sql.Date x)Sets the date.- 参数:
parameterIndex- the parameter indexx- the x- 另请参阅:
PreparedStatement
-
setDate
public void setDate(int parameterIndex, java.sql.Date x, java.util.Calendar cal)Sets the date.- 参数:
parameterIndex- the parameter indexx- the xcal- the cal- 另请参阅:
PreparedStatement
-
setDouble
public void setDouble(int parameterIndex, double x)Sets the double.- 参数:
parameterIndex- the parameter indexx- the x- 另请参阅:
PreparedStatement
-
setFloat
public void setFloat(int parameterIndex, float x)Sets the float.- 参数:
parameterIndex- the parameter indexx- the x- 另请参阅:
PreparedStatement
-
setInt
public void setInt(int parameterIndex, int x)Sets the int.- 参数:
parameterIndex- the parameter indexx- the x- 另请参阅:
PreparedStatement
-
setLong
public void setLong(int parameterIndex, long x)Sets the long.- 参数:
parameterIndex- the parameter indexx- the x- 另请参阅:
PreparedStatement
-
setNCharacterStream
public void setNCharacterStream(int parameterIndex, java.io.Reader value)Sets the N character stream.- 参数:
parameterIndex- the parameter indexvalue- the value- 另请参阅:
PreparedStatement
-
setNCharacterStream
public void setNCharacterStream(int parameterIndex, java.io.Reader value, long length)Sets the N character stream.- 参数:
parameterIndex- the parameter indexvalue- the valuelength- the length- 另请参阅:
PreparedStatement
-
setNClob
public void setNClob(int parameterIndex, java.sql.NClob value)Sets the N clob.- 参数:
parameterIndex- the parameter indexvalue- the value- 另请参阅:
PreparedStatement
-
setNClob
public void setNClob(int parameterIndex, java.io.Reader reader)Sets the N clob.- 参数:
parameterIndex- the parameter indexreader- the reader- 另请参阅:
PreparedStatement
-
setNClob
public void setNClob(int parameterIndex, java.io.Reader reader, long length)Sets the N clob.- 参数:
parameterIndex- the parameter indexreader- the readerlength- the length- 另请参阅:
PreparedStatement
-
setNString
public void setNString(int parameterIndex, java.lang.String value)Sets the N string.- 参数:
parameterIndex- the parameter indexvalue- the value- 另请参阅:
PreparedStatement
-
setNull
public void setNull(int parameterIndex, int sqlType)Sets the null.- 参数:
parameterIndex- the parameter indexsqlType- the sql type- 另请参阅:
PreparedStatement
-
setNull
public void setNull(int parameterIndex, int sqlType, java.lang.String typeName)Sets the null.- 参数:
parameterIndex- the parameter indexsqlType- the sql typetypeName- the type name- 另请参阅:
PreparedStatement
-
setObject
public void setObject(int parameterIndex, java.lang.Object x)Sets the object.- 参数:
parameterIndex- the parameter indexx- the x- 另请参阅:
PreparedStatement
-
setObject
public void setObject(int parameterIndex, java.lang.Object x, int targetSqlType)Sets the object.- 参数:
parameterIndex- the parameter indexx- the xtargetSqlType- the target sql type- 另请参阅:
PreparedStatement
-
setObject
public void setObject(int parameterIndex, java.lang.Object x, int targetSqlType, int scaleOrLength)Sets the object.- 参数:
parameterIndex- the parameter indexx- the xtargetSqlType- the target sql typescaleOrLength- the scale or length- 另请参阅:
PreparedStatement
-
setRef
public void setRef(int parameterIndex, java.sql.Ref x)Sets the ref.- 参数:
parameterIndex- the parameter indexx- the x- 另请参阅:
PreparedStatement
-
setRowId
public void setRowId(int parameterIndex, java.sql.RowId x)Sets the row id.- 参数:
parameterIndex- the parameter indexx- the x- 另请参阅:
PreparedStatement
-
setSQLXML
public void setSQLXML(int parameterIndex, java.sql.SQLXML xmlObject)Sets the SQLXML.- 参数:
parameterIndex- the parameter indexxmlObject- the xml object- 另请参阅:
PreparedStatement
-
setShort
public void setShort(int parameterIndex, short x)Sets the short.- 参数:
parameterIndex- the parameter indexx- the x- 另请参阅:
PreparedStatement
-
setString
public void setString(int parameterIndex, java.lang.String x)Sets the string.- 参数:
parameterIndex- the parameter indexx- the x- 另请参阅:
PreparedStatement
-
setTime
public void setTime(int parameterIndex, java.sql.Time x)Sets the time.- 参数:
parameterIndex- the parameter indexx- the x- 另请参阅:
PreparedStatement
-
setTime
public void setTime(int parameterIndex, java.sql.Time x, java.util.Calendar cal)Sets the time.- 参数:
parameterIndex- the parameter indexx- the xcal- the cal- 另请参阅:
PreparedStatement
-
setTimestamp
public void setTimestamp(int parameterIndex, java.sql.Timestamp x)Sets the timestamp.- 参数:
parameterIndex- the parameter indexx- the x- 另请参阅:
PreparedStatement
-
setTimestamp
public void setTimestamp(int parameterIndex, java.sql.Timestamp x, java.util.Calendar cal)Sets the timestamp.- 参数:
parameterIndex- the parameter indexx- the xcal- the cal- 另请参阅:
PreparedStatement
-
setURL
public void setURL(int parameterIndex, java.net.URL x)Sets the URL.- 参数:
parameterIndex- the parameter indexx- the x- 另请参阅:
PreparedStatement
-
setUnicodeStream
@Deprecated public void setUnicodeStream(int parameterIndex, java.io.InputStream x, int length)已过时。Sets the unicode stream.- 参数:
parameterIndex- the parameter indexx- the xlength- the length- 另请参阅:
PreparedStatement
-
addBatch
public void addBatch(java.lang.String sql)Adds the batch.- 参数:
sql- the sql- 另请参阅:
PreparedStatement
-
cancel
public void cancel()Cancel.- 另请参阅:
PreparedStatement
-
clearBatch
public void clearBatch()Clear batch.- 另请参阅:
PreparedStatement
-
clearWarnings
public void clearWarnings()Clear warnings.- 另请参阅:
PreparedStatement
-
close
public void close()Close.- 指定者:
close在接口中java.lang.AutoCloseable- 另请参阅:
PreparedStatement
-
execute
public boolean execute(java.lang.String sql)Execute.- 参数:
sql- the sql- 返回:
- true, if successful
- 另请参阅:
PreparedStatement
-
execute
public boolean execute(java.lang.String sql, int autoGeneratedKeys)Execute.- 参数:
sql- the sqlautoGeneratedKeys- the auto generated keys- 返回:
- true, if successful
- 另请参阅:
PreparedStatement
-
execute
public boolean execute(java.lang.String sql, int[] columnIndexes)Execute.- 参数:
sql- the sqlcolumnIndexes- the column indexes- 返回:
- true, if successful
- 另请参阅:
PreparedStatement
-
execute
public boolean execute(java.lang.String sql, java.lang.String[] columnNames)Execute.- 参数:
sql- the sqlcolumnNames- the column names- 返回:
- true, if successful
- 另请参阅:
PreparedStatement
-
executeBatch
public int[] executeBatch()Execute batch.- 返回:
- the int[]
- 另请参阅:
PreparedStatement
-
executeQuery
public java.sql.ResultSet executeQuery(java.lang.String sql)Execute query.- 参数:
sql- the sql- 返回:
- the result set
- 另请参阅:
PreparedStatement
-
executeUpdate
public int executeUpdate(java.lang.String sql)Execute update.- 参数:
sql- the sql- 返回:
- the int
- 另请参阅:
PreparedStatement
-
executeUpdate
public int executeUpdate(java.lang.String sql, int autoGeneratedKeys)Execute update.- 参数:
sql- the sqlautoGeneratedKeys- the auto generated keys- 返回:
- the int
- 另请参阅:
PreparedStatement
-
executeUpdate
public int executeUpdate(java.lang.String sql, int[] columnIndexes)Execute update.- 参数:
sql- the sqlcolumnIndexes- the column indexes- 返回:
- the int
- 另请参阅:
PreparedStatement
-
executeUpdate
public int executeUpdate(java.lang.String sql, java.lang.String[] columnNames)Execute update.- 参数:
sql- the sqlcolumnNames- the column names- 返回:
- the int
- 另请参阅:
PreparedStatement
-
getConnection
Gets the connection.- 返回:
- the connection
- 另请参阅:
PreparedStatement
-
getFetchDirection
public int getFetchDirection()Gets the fetch direction.- 返回:
- the fetch direction
- 另请参阅:
PreparedStatement
-
getFetchSize
public int getFetchSize()Gets the fetch size.- 返回:
- the fetch size
- 另请参阅:
PreparedStatement
-
getGeneratedKeys
public java.sql.ResultSet getGeneratedKeys()Gets the generated keys.- 返回:
- the generated keys
- 另请参阅:
PreparedStatement
-
getMaxFieldSize
public int getMaxFieldSize()Gets the max field size.- 返回:
- the max field size
- 另请参阅:
PreparedStatement
-
getMaxRows
public int getMaxRows()Gets the max rows.- 返回:
- the max rows
- 另请参阅:
PreparedStatement
-
getMoreResults
public boolean getMoreResults()Gets the more results.- 返回:
- the more results
- 另请参阅:
PreparedStatement
-
getMoreResults
public boolean getMoreResults(int current)Gets the more results.- 参数:
current- the current- 返回:
- the more results
- 另请参阅:
PreparedStatement
-
getQueryTimeout
public int getQueryTimeout()Gets the query timeout.- 返回:
- the query timeout
- 另请参阅:
PreparedStatement
-
getResultSet
public java.sql.ResultSet getResultSet()Gets the result set.- 返回:
- the result set
- 另请参阅:
PreparedStatement
-
getResultSetConcurrency
public int getResultSetConcurrency()Gets the result set concurrency.- 返回:
- the result set concurrency
- 另请参阅:
PreparedStatement
-
getResultSetHoldability
public int getResultSetHoldability()Gets the result set holdability.- 返回:
- the result set holdability
- 另请参阅:
PreparedStatement
-
getResultSetType
public int getResultSetType()Gets the result set type.- 返回:
- the result set type
- 另请参阅:
PreparedStatement
-
getUpdateCount
public int getUpdateCount()Gets the update count.- 返回:
- the update count
- 另请参阅:
PreparedStatement
-
getWarnings
public java.sql.SQLWarning getWarnings()Gets the warnings.- 返回:
- the warnings
- 另请参阅:
PreparedStatement
-
isClosed
public boolean isClosed()Checks if is closed.- 返回:
- true, if is closed
- 另请参阅:
PreparedStatement
-
isPoolable
public boolean isPoolable()Checks if is poolable.- 返回:
- true, if is poolable
- 另请参阅:
PreparedStatement
-
setCursorName
public void setCursorName(java.lang.String name)Sets the cursor name.- 参数:
name- the new cursor name- 另请参阅:
PreparedStatement
-
setEscapeProcessing
public void setEscapeProcessing(boolean enable)Sets the escape processing.- 参数:
enable- the new escape processing- 另请参阅:
PreparedStatement
-
setFetchDirection
public void setFetchDirection(int direction)Sets the fetch direction.- 参数:
direction- the new fetch direction- 另请参阅:
PreparedStatement
-
setFetchSize
public void setFetchSize(int rows)Sets the fetch size.- 参数:
rows- the new fetch size- 另请参阅:
PreparedStatement
-
setMaxFieldSize
public void setMaxFieldSize(int max)Sets the max field size.- 参数:
max- the new max field size- 另请参阅:
PreparedStatement
-
setMaxRows
public void setMaxRows(int max)Sets the max rows.- 参数:
max- the new max rows- 另请参阅:
PreparedStatement
-
setPoolable
public void setPoolable(boolean poolable)Sets the poolable.- 参数:
poolable- the new poolable- 另请参阅:
PreparedStatement
-
setQueryTimeout
public void setQueryTimeout(int seconds)Sets the query timeout.- 参数:
seconds- the new query timeout- 另请参阅:
PreparedStatement
-
isWrapperFor
public boolean isWrapperFor(java.lang.Class<?> iface)Checks if is wrapper for.- 参数:
iface- the iface- 返回:
- true, if is wrapper for
- 另请参阅:
PreparedStatement
-
unwrap
public <T> T unwrap(java.lang.Class<T> iface)Unwrap.- 类型参数:
T- the generic type- 参数:
iface- the iface- 返回:
- the t
- 另请参阅:
PreparedStatement
-
getArray
public java.sql.Array getArray(int parameterIndex)Gets the array.- 参数:
parameterIndex- the parameter index- 返回:
- the array
- 另请参阅:
PreparedStatement
-
getArray
public java.sql.Array getArray(java.lang.String parameterName)Gets the array.- 参数:
parameterName- the parameter name- 返回:
- the array
- 另请参阅:
PreparedStatement
-
getBigDecimal
public java.math.BigDecimal getBigDecimal(int parameterIndex)Gets the big decimal.- 参数:
parameterIndex- the parameter index- 返回:
- the big decimal
- 另请参阅:
PreparedStatement
-
getBigDecimal
public java.math.BigDecimal getBigDecimal(java.lang.String parameterName)Gets the big decimal.- 参数:
parameterName- the parameter name- 返回:
- the big decimal
- 另请参阅:
PreparedStatement
-
getBigDecimal
@Deprecated public java.math.BigDecimal getBigDecimal(int parameterIndex, int scale)已过时。Gets the big decimal.- 参数:
parameterIndex- the parameter indexscale- the scale- 返回:
- the big decimal
- 另请参阅:
PreparedStatement
-
getBlob
public java.sql.Blob getBlob(int parameterIndex)Gets the blob.- 参数:
parameterIndex- the parameter index- 返回:
- the blob
- 另请参阅:
PreparedStatement
-
getBlob
public java.sql.Blob getBlob(java.lang.String parameterName)Gets the blob.- 参数:
parameterName- the parameter name- 返回:
- the blob
- 另请参阅:
PreparedStatement
-
getBoolean
public boolean getBoolean(int parameterIndex)Gets the boolean.- 参数:
parameterIndex- the parameter index- 返回:
- the boolean
- 另请参阅:
PreparedStatement
-
getBoolean
public boolean getBoolean(java.lang.String parameterName)Gets the boolean.- 参数:
parameterName- the parameter name- 返回:
- the boolean
- 另请参阅:
PreparedStatement
-
getByte
public byte getByte(int parameterIndex)Gets the byte.- 参数:
parameterIndex- the parameter index- 返回:
- the byte
- 另请参阅:
PreparedStatement
-
getByte
public byte getByte(java.lang.String parameterName)Gets the byte.- 参数:
parameterName- the parameter name- 返回:
- the byte
- 另请参阅:
PreparedStatement
-
getBytes
public byte[] getBytes(int parameterIndex)Gets the bytes.- 参数:
parameterIndex- the parameter index- 返回:
- the bytes
- 另请参阅:
PreparedStatement
-
getBytes
public byte[] getBytes(java.lang.String parameterName)Gets the bytes.- 参数:
parameterName- the parameter name- 返回:
- the bytes
- 另请参阅:
PreparedStatement
-
getCharacterStream
public java.io.Reader getCharacterStream(int parameterIndex)Gets the character stream.- 参数:
parameterIndex- the parameter index- 返回:
- the character stream
- 另请参阅:
PreparedStatement
-
getCharacterStream
public java.io.Reader getCharacterStream(java.lang.String parameterName)Gets the character stream.- 参数:
parameterName- the parameter name- 返回:
- the character stream
- 另请参阅:
PreparedStatement
-
getClob
public java.sql.Clob getClob(int parameterIndex)Gets the clob.- 参数:
parameterIndex- the parameter index- 返回:
- the clob
- 另请参阅:
PreparedStatement
-
getClob
public java.sql.Clob getClob(java.lang.String parameterName)Gets the clob.- 参数:
parameterName- the parameter name- 返回:
- the clob
- 另请参阅:
PreparedStatement
-
getDate
public java.sql.Date getDate(int parameterIndex)Gets the date.- 参数:
parameterIndex- the parameter index- 返回:
- the date
- 另请参阅:
PreparedStatement
-
getDate
public java.sql.Date getDate(java.lang.String parameterName)Gets the date.- 参数:
parameterName- the parameter name- 返回:
- the date
- 另请参阅:
PreparedStatement
-
getDate
public java.sql.Date getDate(int parameterIndex, java.util.Calendar cal)Gets the date.- 参数:
parameterIndex- the parameter indexcal- the cal- 返回:
- the date
- 另请参阅:
PreparedStatement
-
getDate
public java.sql.Date getDate(java.lang.String parameterName, java.util.Calendar cal)Gets the date.- 参数:
parameterName- the parameter namecal- the cal- 返回:
- the date
- 另请参阅:
PreparedStatement
-
getDouble
public double getDouble(int parameterIndex)Gets the double.- 参数:
parameterIndex- the parameter index- 返回:
- the double
- 另请参阅:
PreparedStatement
-
getDouble
public double getDouble(java.lang.String parameterName)Gets the double.- 参数:
parameterName- the parameter name- 返回:
- the double
- 另请参阅:
PreparedStatement
-
getFloat
public float getFloat(int parameterIndex)Gets the float.- 参数:
parameterIndex- the parameter index- 返回:
- the float
- 另请参阅:
PreparedStatement
-
getFloat
public float getFloat(java.lang.String parameterName)Gets the float.- 参数:
parameterName- the parameter name- 返回:
- the float
- 另请参阅:
PreparedStatement
-
getInt
public int getInt(int parameterIndex)Gets the int.- 参数:
parameterIndex- the parameter index- 返回:
- the int
- 另请参阅:
PreparedStatement
-
getInt
public int getInt(java.lang.String parameterName)Gets the int.- 参数:
parameterName- the parameter name- 返回:
- the int
- 另请参阅:
PreparedStatement
-
getLong
public long getLong(int parameterIndex)Gets the long.- 参数:
parameterIndex- the parameter index- 返回:
- the long
- 另请参阅:
PreparedStatement
-
getLong
public long getLong(java.lang.String parameterName)Gets the long.- 参数:
parameterName- the parameter name- 返回:
- the long
- 另请参阅:
PreparedStatement
-
getNCharacterStream
public java.io.Reader getNCharacterStream(int parameterIndex)Gets the n character stream.- 参数:
parameterIndex- the parameter index- 返回:
- the n character stream
- 另请参阅:
PreparedStatement
-
getNCharacterStream
public java.io.Reader getNCharacterStream(java.lang.String parameterName)Gets the n character stream.- 参数:
parameterName- the parameter name- 返回:
- the n character stream
- 另请参阅:
PreparedStatement
-
getNClob
public java.sql.NClob getNClob(int parameterIndex)Gets the n clob.- 参数:
parameterIndex- the parameter index- 返回:
- the n clob
- 另请参阅:
PreparedStatement
-
getNClob
public java.sql.NClob getNClob(java.lang.String parameterName)Gets the n clob.- 参数:
parameterName- the parameter name- 返回:
- the n clob
- 另请参阅:
PreparedStatement
-
getNString
public java.lang.String getNString(int parameterIndex)Gets the n string.- 参数:
parameterIndex- the parameter index- 返回:
- the n string
- 另请参阅:
PreparedStatement
-
getNString
public java.lang.String getNString(java.lang.String parameterName)Gets the n string.- 参数:
parameterName- the parameter name- 返回:
- the n string
- 另请参阅:
PreparedStatement
-
getObject
public java.lang.Object getObject(int parameterIndex)Gets the object.- 参数:
parameterIndex- the parameter index- 返回:
- the object
- 另请参阅:
PreparedStatement
-
getObject
public java.lang.Object getObject(java.lang.String parameterName)Gets the object.- 参数:
parameterName- the parameter name- 返回:
- the object
- 另请参阅:
PreparedStatement
-
getObject
public java.lang.Object getObject(int parameterIndex, java.util.Map<java.lang.String,java.lang.Class<?>> map)Gets the object.- 参数:
parameterIndex- the parameter indexmap- the map- 返回:
- the object
- 另请参阅:
PreparedStatement
-
getObject
public java.lang.Object getObject(java.lang.String parameterName, java.util.Map<java.lang.String,java.lang.Class<?>> map)Gets the object.- 参数:
parameterName- the parameter namemap- the map- 返回:
- the object
- 另请参阅:
PreparedStatement
-
getRef
public java.sql.Ref getRef(int parameterIndex)Gets the ref.- 参数:
parameterIndex- the parameter index- 返回:
- the ref
- 另请参阅:
PreparedStatement
-
getRef
public java.sql.Ref getRef(java.lang.String parameterName)Gets the ref.- 参数:
parameterName- the parameter name- 返回:
- the ref
- 另请参阅:
PreparedStatement
-
getRowId
public java.sql.RowId getRowId(int parameterIndex)Gets the row id.- 参数:
parameterIndex- the parameter index- 返回:
- the row id
- 另请参阅:
PreparedStatement
-
getRowId
public java.sql.RowId getRowId(java.lang.String parameterName)Gets the row id.- 参数:
parameterName- the parameter name- 返回:
- the row id
- 另请参阅:
PreparedStatement
-
getSQLXML
public java.sql.SQLXML getSQLXML(int parameterIndex)Gets the sqlxml.- 参数:
parameterIndex- the parameter index- 返回:
- the sqlxml
- 另请参阅:
PreparedStatement
-
getSQLXML
public java.sql.SQLXML getSQLXML(java.lang.String parameterName)Gets the sqlxml.- 参数:
parameterName- the parameter name- 返回:
- the sqlxml
- 另请参阅:
PreparedStatement
-
getShort
public short getShort(int parameterIndex)Gets the short.- 参数:
parameterIndex- the parameter index- 返回:
- the short
- 另请参阅:
PreparedStatement
-
getShort
public short getShort(java.lang.String parameterName)Gets the short.- 参数:
parameterName- the parameter name- 返回:
- the short
- 另请参阅:
PreparedStatement
-
getString
public java.lang.String getString(int parameterIndex)Gets the string.- 参数:
parameterIndex- the parameter index- 返回:
- the string
- 另请参阅:
PreparedStatement
-
getString
public java.lang.String getString(java.lang.String parameterName)Gets the string.- 参数:
parameterName- the parameter name- 返回:
- the string
- 另请参阅:
PreparedStatement
-
getTime
public java.sql.Time getTime(int parameterIndex)Gets the time.- 参数:
parameterIndex- the parameter index- 返回:
- the time
- 另请参阅:
PreparedStatement
-
getTime
public java.sql.Time getTime(java.lang.String parameterName)Gets the time.- 参数:
parameterName- the parameter name- 返回:
- the time
- 另请参阅:
PreparedStatement
-
getTime
public java.sql.Time getTime(int parameterIndex, java.util.Calendar cal)Gets the time.- 参数:
parameterIndex- the parameter indexcal- the cal- 返回:
- the time
- 另请参阅:
PreparedStatement
-
getTime
public java.sql.Time getTime(java.lang.String parameterName, java.util.Calendar cal)Gets the time.- 参数:
parameterName- the parameter namecal- the cal- 返回:
- the time
- 另请参阅:
PreparedStatement
-
getTimestamp
public java.sql.Timestamp getTimestamp(int parameterIndex)Gets the timestamp.- 参数:
parameterIndex- the parameter index- 返回:
- the timestamp
- 另请参阅:
PreparedStatement
-
getTimestamp
public java.sql.Timestamp getTimestamp(java.lang.String parameterName)Gets the timestamp.- 参数:
parameterName- the parameter name- 返回:
- the timestamp
- 另请参阅:
PreparedStatement
-
getTimestamp
public java.sql.Timestamp getTimestamp(int parameterIndex, java.util.Calendar cal)Gets the timestamp.- 参数:
parameterIndex- the parameter indexcal- the cal- 返回:
- the timestamp
- 另请参阅:
PreparedStatement
-
getTimestamp
public java.sql.Timestamp getTimestamp(java.lang.String parameterName, java.util.Calendar cal)Gets the timestamp.- 参数:
parameterName- the parameter namecal- the cal- 返回:
- the timestamp
- 另请参阅:
PreparedStatement
-
getURL
public java.net.URL getURL(int parameterIndex)Gets the url.- 参数:
parameterIndex- the parameter index- 返回:
- the url
- 另请参阅:
PreparedStatement
-
getURL
public java.net.URL getURL(java.lang.String parameterName)Gets the url.- 参数:
parameterName- the parameter name- 返回:
- the url
- 另请参阅:
PreparedStatement
-
registerOutParameter
public void registerOutParameter(int parameterIndex, int sqlType)Register out parameter.- 参数:
parameterIndex- the parameter indexsqlType- the sql type- 另请参阅:
PreparedStatement
-
registerOutParameter
public void registerOutParameter(java.lang.String parameterName, int sqlType)Register out parameter.- 参数:
parameterName- the parameter namesqlType- the sql type- 另请参阅:
PreparedStatement
-
registerOutParameter
public void registerOutParameter(int parameterIndex, int sqlType, int scale)Register out parameter.- 参数:
parameterIndex- the parameter indexsqlType- the sql typescale- the scale- 另请参阅:
PreparedStatement
-
registerOutParameter
public void registerOutParameter(int parameterIndex, int sqlType, java.lang.String typeName)Register out parameter.- 参数:
parameterIndex- the parameter indexsqlType- the sql typetypeName- the type name- 另请参阅:
PreparedStatement
-
registerOutParameter
public void registerOutParameter(java.lang.String parameterName, int sqlType, int scale)Register out parameter.- 参数:
parameterName- the parameter namesqlType- the sql typescale- the scale- 另请参阅:
PreparedStatement
-
registerOutParameter
public void registerOutParameter(java.lang.String parameterName, int sqlType, java.lang.String typeName)Register out parameter.- 参数:
parameterName- the parameter namesqlType- the sql typetypeName- the type name- 另请参阅:
PreparedStatement
-
setAsciiStream
public void setAsciiStream(java.lang.String parameterName, java.io.InputStream x)Sets the ascii stream.- 参数:
parameterName- the parameter namex- the x- 另请参阅:
PreparedStatement
-
setAsciiStream
public void setAsciiStream(java.lang.String parameterName, java.io.InputStream x, int length)Sets the ascii stream.- 参数:
parameterName- the parameter namex- the xlength- the length- 另请参阅:
PreparedStatement
-
setAsciiStream
public void setAsciiStream(java.lang.String parameterName, java.io.InputStream x, long length)Sets the ascii stream.- 参数:
parameterName- the parameter namex- the xlength- the length- 另请参阅:
PreparedStatement
-
setBigDecimal
public void setBigDecimal(java.lang.String parameterName, java.math.BigDecimal x)Sets the big decimal.- 参数:
parameterName- the parameter namex- the x- 另请参阅:
PreparedStatement
-
setBinaryStream
public void setBinaryStream(java.lang.String parameterName, java.io.InputStream x)Sets the binary stream.- 参数:
parameterName- the parameter namex- the x- 另请参阅:
PreparedStatement
-
setBinaryStream
public void setBinaryStream(java.lang.String parameterName, java.io.InputStream x, int length)Sets the binary stream.- 参数:
parameterName- the parameter namex- the xlength- the length- 另请参阅:
PreparedStatement
-
setBinaryStream
public void setBinaryStream(java.lang.String parameterName, java.io.InputStream x, long length)Sets the binary stream.- 参数:
parameterName- the parameter namex- the xlength- the length- 另请参阅:
PreparedStatement
-
setBlob
public void setBlob(java.lang.String parameterName, java.sql.Blob x)Sets the blob.- 参数:
parameterName- the parameter namex- the x- 另请参阅:
PreparedStatement
-
setBlob
public void setBlob(java.lang.String parameterName, java.io.InputStream inputStream)Sets the blob.- 参数:
parameterName- the parameter nameinputStream- the input stream- 另请参阅:
PreparedStatement
-
setBlob
public void setBlob(java.lang.String parameterName, java.io.InputStream inputStream, long length)Sets the blob.- 参数:
parameterName- the parameter nameinputStream- the input streamlength- the length- 另请参阅:
PreparedStatement
-
setBoolean
public void setBoolean(java.lang.String parameterName, boolean x)Sets the boolean.- 参数:
parameterName- the parameter namex- the x- 另请参阅:
PreparedStatement
-
setByte
public void setByte(java.lang.String parameterName, byte x)Sets the byte.- 参数:
parameterName- the parameter namex- the x- 另请参阅:
PreparedStatement
-
setBytes
public void setBytes(java.lang.String parameterName, byte[] x)Sets the bytes.- 参数:
parameterName- the parameter namex- the x- 另请参阅:
PreparedStatement
-
setCharacterStream
public void setCharacterStream(java.lang.String parameterName, java.io.Reader reader)Sets the character stream.- 参数:
parameterName- the parameter namereader- the reader- 另请参阅:
PreparedStatement
-
setCharacterStream
public void setCharacterStream(java.lang.String parameterName, java.io.Reader reader, int length)Sets the character stream.- 参数:
parameterName- the parameter namereader- the readerlength- the length- 另请参阅:
PreparedStatement
-
setCharacterStream
public void setCharacterStream(java.lang.String parameterName, java.io.Reader reader, long length)Sets the character stream.- 参数:
parameterName- the parameter namereader- the readerlength- the length- 另请参阅:
PreparedStatement
-
setClob
public void setClob(java.lang.String parameterName, java.sql.Clob x)Sets the clob.- 参数:
parameterName- the parameter namex- the x- 另请参阅:
PreparedStatement
-
setClob
public void setClob(java.lang.String parameterName, java.io.Reader reader)Sets the clob.- 参数:
parameterName- the parameter namereader- the reader- 另请参阅:
PreparedStatement
-
setClob
public void setClob(java.lang.String parameterName, java.io.Reader reader, long length)Sets the clob.- 参数:
parameterName- the parameter namereader- the readerlength- the length- 另请参阅:
PreparedStatement
-
setDate
public void setDate(java.lang.String parameterName, java.sql.Date x)Sets the date.- 参数:
parameterName- the parameter namex- the x- 另请参阅:
PreparedStatement
-
setDate
public void setDate(java.lang.String parameterName, java.sql.Date x, java.util.Calendar cal)Sets the date.- 参数:
parameterName- the parameter namex- the xcal- the cal- 另请参阅:
PreparedStatement
-
setDouble
public void setDouble(java.lang.String parameterName, double x)Sets the double.- 参数:
parameterName- the parameter namex- the x- 另请参阅:
PreparedStatement
-
setFloat
public void setFloat(java.lang.String parameterName, float x)Sets the float.- 参数:
parameterName- the parameter namex- the x- 另请参阅:
PreparedStatement
-
setInt
public void setInt(java.lang.String parameterName, int x)Sets the int.- 参数:
parameterName- the parameter namex- the x- 另请参阅:
PreparedStatement
-
setLong
public void setLong(java.lang.String parameterName, long x)Sets the long.- 参数:
parameterName- the parameter namex- the x- 另请参阅:
PreparedStatement
-
setNCharacterStream
public void setNCharacterStream(java.lang.String parameterName, java.io.Reader value)Sets the N character stream.- 参数:
parameterName- the parameter namevalue- the value- 另请参阅:
PreparedStatement
-
setNCharacterStream
public void setNCharacterStream(java.lang.String parameterName, java.io.Reader value, long length)Sets the N character stream.- 参数:
parameterName- the parameter namevalue- the valuelength- the length- 另请参阅:
PreparedStatement
-
setNClob
public void setNClob(java.lang.String parameterName, java.sql.NClob value)Sets the N clob.- 参数:
parameterName- the parameter namevalue- the value- 另请参阅:
PreparedStatement
-
setNClob
public void setNClob(java.lang.String parameterName, java.io.Reader reader)Sets the N clob.- 参数:
parameterName- the parameter namereader- the reader- 另请参阅:
PreparedStatement
-
setNClob
public void setNClob(java.lang.String parameterName, java.io.Reader reader, long length)Sets the N clob.- 参数:
parameterName- the parameter namereader- the readerlength- the length- 另请参阅:
PreparedStatement
-
setNString
public void setNString(java.lang.String parameterName, java.lang.String value)Sets the N string.- 参数:
parameterName- the parameter namevalue- the value- 另请参阅:
PreparedStatement
-
setNull
public void setNull(java.lang.String parameterName, int sqlType)Sets the null.- 参数:
parameterName- the parameter namesqlType- the sql type- 另请参阅:
PreparedStatement
-
setNull
public void setNull(java.lang.String parameterName, int sqlType, java.lang.String typeName)Sets the null.- 参数:
parameterName- the parameter namesqlType- the sql typetypeName- the type name- 另请参阅:
PreparedStatement
-
setObject
public void setObject(java.lang.String parameterName, java.lang.Object x)Sets the object.- 参数:
parameterName- the parameter namex- the x- 另请参阅:
PreparedStatement
-
setObject
public void setObject(java.lang.String parameterName, java.lang.Object x, int targetSqlType)Sets the object.- 参数:
parameterName- the parameter namex- the xtargetSqlType- the target sql type- 另请参阅:
PreparedStatement
-
setObject
public void setObject(java.lang.String parameterName, java.lang.Object x, int targetSqlType, int scale)Sets the object.- 参数:
parameterName- the parameter namex- the xtargetSqlType- the target sql typescale- the scale- 另请参阅:
PreparedStatement
-
setRowId
public void setRowId(java.lang.String parameterName, java.sql.RowId x)Sets the row id.- 参数:
parameterName- the parameter namex- the x- 另请参阅:
PreparedStatement
-
setSQLXML
public void setSQLXML(java.lang.String parameterName, java.sql.SQLXML xmlObject)Sets the SQLXML.- 参数:
parameterName- the parameter namexmlObject- the xml object- 另请参阅:
PreparedStatement
-
setShort
public void setShort(java.lang.String parameterName, short x)Sets the short.- 参数:
parameterName- the parameter namex- the x- 另请参阅:
PreparedStatement
-
setString
public void setString(java.lang.String parameterName, java.lang.String x)Sets the string.- 参数:
parameterName- the parameter namex- the x- 另请参阅:
PreparedStatement
-
setTime
public void setTime(java.lang.String parameterName, java.sql.Time x)Sets the time.- 参数:
parameterName- the parameter namex- the x- 另请参阅:
PreparedStatement
-
setTime
public void setTime(java.lang.String parameterName, java.sql.Time x, java.util.Calendar cal)Sets the time.- 参数:
parameterName- the parameter namex- the xcal- the cal- 另请参阅:
PreparedStatement
-
setTimestamp
public void setTimestamp(java.lang.String parameterName, java.sql.Timestamp x)Sets the timestamp.- 参数:
parameterName- the parameter namex- the x- 另请参阅:
PreparedStatement
-
setTimestamp
public void setTimestamp(java.lang.String parameterName, java.sql.Timestamp x, java.util.Calendar cal)Sets the timestamp.- 参数:
parameterName- the parameter namex- the xcal- the cal- 另请参阅:
PreparedStatement
-
setURL
public void setURL(java.lang.String parameterName, java.net.URL val)Sets the URL.- 参数:
parameterName- the parameter nameval- the val- 另请参阅:
PreparedStatement
-
wasNull
public boolean wasNull()Was null.- 返回:
- true, if successful
- 另请参阅:
PreparedStatement
-
getCallableStatement
public java.sql.CallableStatement getCallableStatement()Gets the callable statement.- 返回:
- 返回callableStatement(java.sql.CallableStatement)
-