类 PreparedStatementWrapper

java.lang.Object
cn.featherfly.common.db.wrapper.PreparedStatementWrapper
所有已实现的接口:
java.lang.AutoCloseable

public class PreparedStatementWrapper
extends java.lang.Object
implements java.lang.AutoCloseable

java.sql.PreparedStatement的包装类,包装所有检查异常(SQLEception)为非检查异常(JdbcException)

  • 构造器概要

    构造器
    构造器 说明
    PreparedStatementWrapper​(java.sql.PreparedStatement preparedStatement, ConnectionWrapper connectionWrapper)
    Instantiates a new prepared statement wrapper.
  • 方法概要

    修饰符和类型 方法 说明
    void addBatch()
    Adds the batch.
    void addBatch​(java.lang.String sql)
    Adds the batch.
    void cancel()
    Cancel.
    void clearBatch()
    Clear batch.
    void clearParameters()
    Clear parameters.
    void clearWarnings()
    Clear warnings.
    void close()
    Close.
    boolean execute()
    Execute.
    boolean execute​(java.lang.String sql)
    Execute.
    boolean execute​(java.lang.String sql, int autoGeneratedKeys)
    Execute.
    boolean execute​(java.lang.String sql, int[] columnIndexes)
    Execute.
    boolean execute​(java.lang.String sql, java.lang.String[] columnNames)
    Execute.
    int[] executeBatch()
    Execute batch.
    ResultSetWrapper executeQuery()
    Execute query.
    ResultSetWrapper executeQuery​(java.lang.String sql)
    Execute query.
    int executeUpdate()
    Execute update.
    int executeUpdate​(java.lang.String sql)
    Execute update.
    int executeUpdate​(java.lang.String sql, int autoGeneratedKeys)
    Execute update.
    int executeUpdate​(java.lang.String sql, int[] columnIndexes)
    Execute update.
    int executeUpdate​(java.lang.String sql, java.lang.String[] columnNames)
    Execute update.
    ConnectionWrapper getConnection()
    Gets the connection.
    int getFetchDirection()
    Gets the fetch direction.
    int getFetchSize()
    Gets the fetch size.
    ResultSetWrapper getGeneratedKeys()
    Gets the generated keys.
    int getMaxFieldSize()
    Gets the max field size.
    int getMaxRows()
    Gets the max rows.
    java.sql.ResultSetMetaData getMetaData()
    Gets the meta data.
    boolean getMoreResults()
    Gets the more results.
    boolean getMoreResults​(int current)
    Gets the more results.
    java.sql.ParameterMetaData getParameterMetaData()
    Gets the parameter meta data.
    java.sql.PreparedStatement getPreparedStatement()
    Gets the prepared statement.
    int getQueryTimeout()
    Gets the query timeout.
    ResultSetWrapper getResultSet()
    Gets the result set.
    int getResultSetConcurrency()
    Gets the result set concurrency.
    int getResultSetHoldability()
    Gets the result set holdability.
    int getResultSetType()
    Gets the result set type.
    int getUpdateCount()
    Gets the update count.
    java.sql.SQLWarning getWarnings()
    Gets the warnings.
    boolean isClosed()
    Checks if is closed.
    boolean isPoolable()
    Checks if is poolable.
    boolean isWrapperFor​(java.lang.Class<?> iface)
    Checks if is wrapper for.
    void setArray​(int parameterIndex, java.sql.Array x)
    Sets the array.
    void setAsciiStream​(int parameterIndex, java.io.InputStream x)
    Sets the ascii stream.
    void setAsciiStream​(int parameterIndex, java.io.InputStream x, int length)
    Sets the ascii stream.
    void setAsciiStream​(int parameterIndex, java.io.InputStream x, long length)
    Sets the ascii stream.
    void setBigDecimal​(int parameterIndex, java.math.BigDecimal x)
    Sets the big decimal.
    void setBinaryStream​(int parameterIndex, java.io.InputStream x)
    Sets the binary stream.
    void setBinaryStream​(int parameterIndex, java.io.InputStream x, int length)
    Sets the binary stream.
    void setBinaryStream​(int parameterIndex, java.io.InputStream x, long length)
    Sets the binary stream.
    void setBlob​(int parameterIndex, java.io.InputStream inputStream)
    Sets the blob.
    void setBlob​(int parameterIndex, java.io.InputStream inputStream, long length)
    Sets the blob.
    void setBlob​(int parameterIndex, java.sql.Blob x)
    Sets the blob.
    void setBoolean​(int parameterIndex, boolean x)
    Sets the boolean.
    void setByte​(int parameterIndex, byte x)
    Sets the byte.
    void setBytes​(int parameterIndex, byte[] x)
    Sets the bytes.
    void setCharacterStream​(int parameterIndex, java.io.Reader reader)
    Sets the character stream.
    void setCharacterStream​(int parameterIndex, java.io.Reader reader, int length)
    Sets the character stream.
    void setCharacterStream​(int parameterIndex, java.io.Reader reader, long length)
    Sets the character stream.
    void setClob​(int parameterIndex, java.io.Reader reader)
    Sets the clob.
    void setClob​(int parameterIndex, java.io.Reader reader, long length)
    Sets the clob.
    void setClob​(int parameterIndex, java.sql.Clob x)
    Sets the clob.
    void setCursorName​(java.lang.String name)
    Sets the cursor name.
    void setDate​(int parameterIndex, java.sql.Date x)
    Sets the date.
    void setDate​(int parameterIndex, java.sql.Date x, java.util.Calendar cal)
    Sets the date.
    void setDouble​(int parameterIndex, double x)
    Sets the double.
    void setEscapeProcessing​(boolean enable)
    Sets the escape processing.
    void setFetchDirection​(int direction)
    Sets the fetch direction.
    void setFetchSize​(int rows)
    Sets the fetch size.
    void setFloat​(int parameterIndex, float x)
    Sets the float.
    void setInt​(int parameterIndex, int x)
    Sets the int.
    void setLong​(int parameterIndex, long x)
    Sets the long.
    void setMaxFieldSize​(int max)
    Sets the max field size.
    void setMaxRows​(int max)
    Sets the max rows.
    void setNCharacterStream​(int parameterIndex, java.io.Reader value)
    Sets the N character stream.
    void setNCharacterStream​(int parameterIndex, java.io.Reader value, long length)
    Sets the N character stream.
    void setNClob​(int parameterIndex, java.io.Reader reader)
    Sets the N clob.
    void setNClob​(int parameterIndex, java.io.Reader reader, long length)
    Sets the N clob.
    void setNClob​(int parameterIndex, java.sql.NClob value)
    Sets the N clob.
    void setNString​(int parameterIndex, java.lang.String value)
    Sets the N string.
    void setNull​(int parameterIndex, int sqlType)
    Sets the null.
    void setNull​(int parameterIndex, int sqlType, java.lang.String typeName)
    Sets the null.
    void setObject​(int parameterIndex, java.lang.Object x)
    Sets the object.
    void setObject​(int parameterIndex, java.lang.Object x, int targetSqlType)
    Sets the object.
    void setObject​(int parameterIndex, java.lang.Object x, int targetSqlType, int scaleOrLength)
    Sets the object.
    void setPoolable​(boolean poolable)
    Sets the poolable.
    void setQueryTimeout​(int seconds)
    Sets the query timeout.
    void setRef​(int parameterIndex, java.sql.Ref x)
    Sets the ref.
    void setRowId​(int parameterIndex, java.sql.RowId x)
    Sets the row id.
    void setShort​(int parameterIndex, short x)
    Sets the short.
    void setSQLXML​(int parameterIndex, java.sql.SQLXML xmlObject)
    Sets the SQLXML.
    void setString​(int parameterIndex, java.lang.String x)
    Sets the string.
    void setTime​(int parameterIndex, java.sql.Time x)
    Sets the time.
    void setTime​(int parameterIndex, java.sql.Time x, java.util.Calendar cal)
    Sets the time.
    void setTimestamp​(int parameterIndex, java.sql.Timestamp x)
    Sets the timestamp.
    void setTimestamp​(int parameterIndex, java.sql.Timestamp x, java.util.Calendar cal)
    Sets the timestamp.
    void setUnicodeStream​(int parameterIndex, java.io.InputStream x, int length)
    已过时。 
    void setURL​(int parameterIndex, java.net.URL x)
    Sets the URL.
    <T> T unwrap​(java.lang.Class<T> iface)
    Unwrap.

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造器详细资料

    • PreparedStatementWrapper

      public PreparedStatementWrapper​(java.sql.PreparedStatement preparedStatement, ConnectionWrapper connectionWrapper)
      Instantiates a new prepared statement wrapper.
      参数:
      preparedStatement - the prepared statement
      connectionWrapper - the connection wrapper
  • 方法详细资料

    • 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 ResultSetWrapper executeQuery()
      Execute query.
      返回:
      the result set wrapper
      另请参阅:
      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 index
      x - the x
      另请参阅:
      PreparedStatement
    • setAsciiStream

      public void setAsciiStream​(int parameterIndex, java.io.InputStream x)
      Sets the ascii stream.
      参数:
      parameterIndex - the parameter index
      x - the x
      另请参阅:
      PreparedStatement
    • setAsciiStream

      public void setAsciiStream​(int parameterIndex, java.io.InputStream x, int length)
      Sets the ascii stream.
      参数:
      parameterIndex - the parameter index
      x - the x
      length - the length
      另请参阅:
      PreparedStatement
    • setAsciiStream

      public void setAsciiStream​(int parameterIndex, java.io.InputStream x, long length)
      Sets the ascii stream.
      参数:
      parameterIndex - the parameter index
      x - the x
      length - the length
      另请参阅:
      PreparedStatement
    • setBigDecimal

      public void setBigDecimal​(int parameterIndex, java.math.BigDecimal x)
      Sets the big decimal.
      参数:
      parameterIndex - the parameter index
      x - the x
      另请参阅:
      PreparedStatement
    • setBinaryStream

      public void setBinaryStream​(int parameterIndex, java.io.InputStream x)
      Sets the binary stream.
      参数:
      parameterIndex - the parameter index
      x - the x
      另请参阅:
      PreparedStatement
    • setBinaryStream

      public void setBinaryStream​(int parameterIndex, java.io.InputStream x, int length)
      Sets the binary stream.
      参数:
      parameterIndex - the parameter index
      x - the x
      length - the length
      另请参阅:
      PreparedStatement
    • setBinaryStream

      public void setBinaryStream​(int parameterIndex, java.io.InputStream x, long length)
      Sets the binary stream.
      参数:
      parameterIndex - the parameter index
      x - the x
      length - the length
      另请参阅:
      PreparedStatement
    • setBlob

      public void setBlob​(int parameterIndex, java.sql.Blob x)
      Sets the blob.
      参数:
      parameterIndex - the parameter index
      x - the x
      另请参阅:
      PreparedStatement
    • setBlob

      public void setBlob​(int parameterIndex, java.io.InputStream inputStream)
      Sets the blob.
      参数:
      parameterIndex - the parameter index
      inputStream - the input stream
      另请参阅:
      PreparedStatement
    • setBlob

      public void setBlob​(int parameterIndex, java.io.InputStream inputStream, long length)
      Sets the blob.
      参数:
      parameterIndex - the parameter index
      inputStream - the input stream
      length - the length
      另请参阅:
      PreparedStatement
    • setBoolean

      public void setBoolean​(int parameterIndex, boolean x)
      Sets the boolean.
      参数:
      parameterIndex - the parameter index
      x - the x
      另请参阅:
      PreparedStatement
    • setByte

      public void setByte​(int parameterIndex, byte x)
      Sets the byte.
      参数:
      parameterIndex - the parameter index
      x - the x
      另请参阅:
      PreparedStatement
    • setBytes

      public void setBytes​(int parameterIndex, byte[] x)
      Sets the bytes.
      参数:
      parameterIndex - the parameter index
      x - the x
      另请参阅:
      PreparedStatement
    • setCharacterStream

      public void setCharacterStream​(int parameterIndex, java.io.Reader reader)
      Sets the character stream.
      参数:
      parameterIndex - the parameter index
      reader - the reader
      另请参阅:
      PreparedStatement
    • setCharacterStream

      public void setCharacterStream​(int parameterIndex, java.io.Reader reader, int length)
      Sets the character stream.
      参数:
      parameterIndex - the parameter index
      reader - the reader
      length - the length
      另请参阅:
      PreparedStatement
    • setCharacterStream

      public void setCharacterStream​(int parameterIndex, java.io.Reader reader, long length)
      Sets the character stream.
      参数:
      parameterIndex - the parameter index
      reader - the reader
      length - the length
      另请参阅:
      PreparedStatement
    • setClob

      public void setClob​(int parameterIndex, java.sql.Clob x)
      Sets the clob.
      参数:
      parameterIndex - the parameter index
      x - the x
      另请参阅:
      PreparedStatement
    • setClob

      public void setClob​(int parameterIndex, java.io.Reader reader)
      Sets the clob.
      参数:
      parameterIndex - the parameter index
      reader - the reader
      另请参阅:
      PreparedStatement
    • setClob

      public void setClob​(int parameterIndex, java.io.Reader reader, long length)
      Sets the clob.
      参数:
      parameterIndex - the parameter index
      reader - the reader
      length - the length
      另请参阅:
      PreparedStatement
    • setDate

      public void setDate​(int parameterIndex, java.sql.Date x)
      Sets the date.
      参数:
      parameterIndex - the parameter index
      x - the x
      另请参阅:
      PreparedStatement
    • setDate

      public void setDate​(int parameterIndex, java.sql.Date x, java.util.Calendar cal)
      Sets the date.
      参数:
      parameterIndex - the parameter index
      x - the x
      cal - the cal
      另请参阅:
      PreparedStatement
    • setDouble

      public void setDouble​(int parameterIndex, double x)
      Sets the double.
      参数:
      parameterIndex - the parameter index
      x - the x
      另请参阅:
      PreparedStatement
    • setFloat

      public void setFloat​(int parameterIndex, float x)
      Sets the float.
      参数:
      parameterIndex - the parameter index
      x - the x
      另请参阅:
      PreparedStatement
    • setInt

      public void setInt​(int parameterIndex, int x)
      Sets the int.
      参数:
      parameterIndex - the parameter index
      x - the x
      另请参阅:
      PreparedStatement
    • setLong

      public void setLong​(int parameterIndex, long x)
      Sets the long.
      参数:
      parameterIndex - the parameter index
      x - the x
      另请参阅:
      PreparedStatement
    • setNCharacterStream

      public void setNCharacterStream​(int parameterIndex, java.io.Reader value)
      Sets the N character stream.
      参数:
      parameterIndex - the parameter index
      value - the value
      另请参阅:
      PreparedStatement
    • setNCharacterStream

      public void setNCharacterStream​(int parameterIndex, java.io.Reader value, long length)
      Sets the N character stream.
      参数:
      parameterIndex - the parameter index
      value - the value
      length - the length
      另请参阅:
      PreparedStatement
    • setNClob

      public void setNClob​(int parameterIndex, java.sql.NClob value)
      Sets the N clob.
      参数:
      parameterIndex - the parameter index
      value - the value
      另请参阅:
      PreparedStatement
    • setNClob

      public void setNClob​(int parameterIndex, java.io.Reader reader)
      Sets the N clob.
      参数:
      parameterIndex - the parameter index
      reader - the reader
      另请参阅:
      PreparedStatement
    • setNClob

      public void setNClob​(int parameterIndex, java.io.Reader reader, long length)
      Sets the N clob.
      参数:
      parameterIndex - the parameter index
      reader - the reader
      length - the length
      另请参阅:
      PreparedStatement
    • setNString

      public void setNString​(int parameterIndex, java.lang.String value)
      Sets the N string.
      参数:
      parameterIndex - the parameter index
      value - the value
      另请参阅:
      PreparedStatement
    • setNull

      public void setNull​(int parameterIndex, int sqlType)
      Sets the null.
      参数:
      parameterIndex - the parameter index
      sqlType - the sql type
      另请参阅:
      PreparedStatement
    • setNull

      public void setNull​(int parameterIndex, int sqlType, java.lang.String typeName)
      Sets the null.
      参数:
      parameterIndex - the parameter index
      sqlType - the sql type
      typeName - the type name
      另请参阅:
      PreparedStatement
    • setObject

      public void setObject​(int parameterIndex, java.lang.Object x)
      Sets the object.
      参数:
      parameterIndex - the parameter index
      x - the x
      另请参阅:
      PreparedStatement
    • setObject

      public void setObject​(int parameterIndex, java.lang.Object x, int targetSqlType)
      Sets the object.
      参数:
      parameterIndex - the parameter index
      x - the x
      targetSqlType - 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 index
      x - the x
      targetSqlType - the target sql type
      scaleOrLength - the scale or length
      另请参阅:
      PreparedStatement
    • setRef

      public void setRef​(int parameterIndex, java.sql.Ref x)
      Sets the ref.
      参数:
      parameterIndex - the parameter index
      x - the x
      另请参阅:
      PreparedStatement
    • setRowId

      public void setRowId​(int parameterIndex, java.sql.RowId x)
      Sets the row id.
      参数:
      parameterIndex - the parameter index
      x - the x
      另请参阅:
      PreparedStatement
    • setSQLXML

      public void setSQLXML​(int parameterIndex, java.sql.SQLXML xmlObject)
      Sets the SQLXML.
      参数:
      parameterIndex - the parameter index
      xmlObject - the xml object
      另请参阅:
      PreparedStatement
    • setShort

      public void setShort​(int parameterIndex, short x)
      Sets the short.
      参数:
      parameterIndex - the parameter index
      x - the x
      另请参阅:
      PreparedStatement
    • setString

      public void setString​(int parameterIndex, java.lang.String x)
      Sets the string.
      参数:
      parameterIndex - the parameter index
      x - the x
      另请参阅:
      PreparedStatement
    • setTime

      public void setTime​(int parameterIndex, java.sql.Time x)
      Sets the time.
      参数:
      parameterIndex - the parameter index
      x - the x
      另请参阅:
      PreparedStatement
    • setTime

      public void setTime​(int parameterIndex, java.sql.Time x, java.util.Calendar cal)
      Sets the time.
      参数:
      parameterIndex - the parameter index
      x - the x
      cal - the cal
      另请参阅:
      PreparedStatement
    • setTimestamp

      public void setTimestamp​(int parameterIndex, java.sql.Timestamp x)
      Sets the timestamp.
      参数:
      parameterIndex - the parameter index
      x - the x
      另请参阅:
      PreparedStatement
    • setTimestamp

      public void setTimestamp​(int parameterIndex, java.sql.Timestamp x, java.util.Calendar cal)
      Sets the timestamp.
      参数:
      parameterIndex - the parameter index
      x - the x
      cal - the cal
      另请参阅:
      PreparedStatement
    • setURL

      public void setURL​(int parameterIndex, java.net.URL x)
      Sets the URL.
      参数:
      parameterIndex - the parameter index
      x - the x
      另请参阅:
      PreparedStatement
    • setUnicodeStream

      @Deprecated public void setUnicodeStream​(int parameterIndex, java.io.InputStream x, int length)
      已过时。
      Sets the unicode stream.
      参数:
      parameterIndex - the parameter index
      x - the x
      length - 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 sql
      autoGeneratedKeys - the auto generated keys
      返回:
      true, if successful
      另请参阅:
      PreparedStatement
    • execute

      public boolean execute​(java.lang.String sql, int[] columnIndexes)
      Execute.
      参数:
      sql - the sql
      columnIndexes - the column indexes
      返回:
      true, if successful
      另请参阅:
      PreparedStatement
    • execute

      public boolean execute​(java.lang.String sql, java.lang.String[] columnNames)
      Execute.
      参数:
      sql - the sql
      columnNames - the column names
      返回:
      true, if successful
      另请参阅:
      PreparedStatement
    • executeBatch

      public int[] executeBatch()
      Execute batch.
      返回:
      the int[]
      另请参阅:
      PreparedStatement
    • executeQuery

      public ResultSetWrapper executeQuery​(java.lang.String sql)
      Execute query.
      参数:
      sql - the sql
      返回:
      the result set wrapper
      另请参阅:
      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 sql
      autoGeneratedKeys - the auto generated keys
      返回:
      the int
      另请参阅:
      PreparedStatement
    • executeUpdate

      public int executeUpdate​(java.lang.String sql, int[] columnIndexes)
      Execute update.
      参数:
      sql - the sql
      columnIndexes - the column indexes
      返回:
      the int
      另请参阅:
      PreparedStatement
    • executeUpdate

      public int executeUpdate​(java.lang.String sql, java.lang.String[] columnNames)
      Execute update.
      参数:
      sql - the sql
      columnNames - the column names
      返回:
      the int
      另请参阅:
      PreparedStatement
    • getConnection

      public ConnectionWrapper 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 ResultSetWrapper 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 ResultSetWrapper 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
    • getPreparedStatement

      public java.sql.PreparedStatement getPreparedStatement()
      Gets the prepared statement.
      返回:
      返回preparedStatement(java.sql.PreparedStatement)