com.alibaba.druid.pool
类 DruidPooledPreparedStatement
java.lang.Object
com.alibaba.druid.pool.PoolableWrapper
com.alibaba.druid.pool.DruidPooledStatement
com.alibaba.druid.pool.DruidPooledPreparedStatement
- 所有已实现的接口:
- PreparedStatement, Statement, Wrapper
- 直接已知子类:
- DruidPooledCallableStatement
public class DruidPooledPreparedStatement
- extends DruidPooledStatement
- implements PreparedStatement
- 作者:
- wenshao
|
方法摘要 |
void |
addBatch()
|
void |
clearParameters()
|
void |
close()
|
boolean |
execute()
|
int[] |
executeBatch()
|
ResultSet |
executeQuery()
|
int |
executeUpdate()
|
int |
getHitCount()
|
DruidPooledPreparedStatement.PreparedStatementKey |
getKey()
|
ResultSetMetaData |
getMetaData()
|
ParameterMetaData |
getParameterMetaData()
|
PreparedStatementHolder |
getPreparedStatementHolder()
|
PreparedStatement |
getRawPreparedStatement()
|
PreparedStatement |
getRawStatement()
|
String |
getSql()
|
boolean |
isPooled()
|
boolean |
isWrapperFor(Class<?> iface)
|
void |
setArray(int parameterIndex,
Array x)
|
void |
setAsciiStream(int parameterIndex,
InputStream x)
|
void |
setAsciiStream(int parameterIndex,
InputStream x,
int length)
|
void |
setAsciiStream(int parameterIndex,
InputStream x,
long length)
|
void |
setBigDecimal(int parameterIndex,
BigDecimal x)
|
void |
setBinaryStream(int parameterIndex,
InputStream x)
|
void |
setBinaryStream(int parameterIndex,
InputStream x,
int length)
|
void |
setBinaryStream(int parameterIndex,
InputStream x,
long length)
|
void |
setBlob(int parameterIndex,
Blob x)
|
void |
setBlob(int parameterIndex,
InputStream inputStream)
|
void |
setBlob(int parameterIndex,
InputStream inputStream,
long length)
|
void |
setBoolean(int parameterIndex,
boolean x)
|
void |
setByte(int parameterIndex,
byte x)
|
void |
setBytes(int parameterIndex,
byte[] x)
|
void |
setCharacterStream(int parameterIndex,
Reader reader)
|
void |
setCharacterStream(int parameterIndex,
Reader reader,
int length)
|
void |
setCharacterStream(int parameterIndex,
Reader reader,
long length)
|
void |
setClob(int parameterIndex,
Clob x)
|
void |
setClob(int parameterIndex,
Reader reader)
|
void |
setClob(int parameterIndex,
Reader reader,
long length)
|
void |
setDate(int parameterIndex,
Date x)
|
void |
setDate(int parameterIndex,
Date x,
Calendar cal)
|
void |
setDouble(int parameterIndex,
double x)
|
void |
setFetchDirection(int direction)
|
void |
setFetchSize(int rows)
|
void |
setFloat(int parameterIndex,
float x)
|
void |
setInt(int parameterIndex,
int x)
|
void |
setLong(int parameterIndex,
long x)
|
void |
setMaxFieldSize(int max)
|
void |
setMaxRows(int max)
|
void |
setNCharacterStream(int parameterIndex,
Reader value)
|
void |
setNCharacterStream(int parameterIndex,
Reader value,
long length)
|
void |
setNClob(int parameterIndex,
NClob value)
|
void |
setNClob(int parameterIndex,
Reader reader)
|
void |
setNClob(int parameterIndex,
Reader reader,
long length)
|
void |
setNString(int parameterIndex,
String value)
|
void |
setNull(int parameterIndex,
int sqlType)
|
void |
setNull(int parameterIndex,
int sqlType,
String typeName)
|
void |
setObject(int parameterIndex,
Object x)
|
void |
setObject(int parameterIndex,
Object x,
int targetSqlType)
|
void |
setObject(int parameterIndex,
Object x,
int targetSqlType,
int scaleOrLength)
|
void |
setQueryTimeout(int seconds)
|
void |
setRef(int parameterIndex,
Ref x)
|
void |
setRowId(int parameterIndex,
RowId x)
|
void |
setShort(int parameterIndex,
short x)
|
void |
setSQLXML(int parameterIndex,
SQLXML xmlObject)
|
void |
setString(int parameterIndex,
String x)
|
void |
setTime(int parameterIndex,
Time x)
|
void |
setTime(int parameterIndex,
Time x,
Calendar cal)
|
void |
setTimestamp(int parameterIndex,
Timestamp x)
|
void |
setTimestamp(int parameterIndex,
Timestamp x,
Calendar cal)
|
void |
setUnicodeStream(int parameterIndex,
InputStream x,
int length)
已过时。 |
void |
setURL(int parameterIndex,
URL x)
|
|
unwrap(Class<T> iface)
|
| 从类 com.alibaba.druid.pool.DruidPooledStatement 继承的方法 |
addBatch, cancel, clearBatch, clearWarnings, closeOnCompletion, execute, execute, execute, execute, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getConnection, getFetchDirection, getFetchRowPeak, getFetchSize, getGeneratedKeys, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getPoolableConnection, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getStatement, getUpdateCount, getWarnings, incrementExecuteCount, isClosed, isCloseOnCompletion, isPoolable, setCursorName, setEscapeProcessing, setPoolable, toString |
| 从接口 java.sql.Statement 继承的方法 |
addBatch, cancel, clearBatch, clearWarnings, execute, execute, execute, execute, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, isClosed, isPoolable, setCursorName, setEscapeProcessing, setPoolable |
DruidPooledPreparedStatement
public DruidPooledPreparedStatement(DruidPooledConnection conn,
PreparedStatementHolder holder)
throws SQLException
- 抛出:
SQLException
getPreparedStatementHolder
public PreparedStatementHolder getPreparedStatementHolder()
getHitCount
public int getHitCount()
setFetchSize
public void setFetchSize(int rows)
throws SQLException
- 指定者:
- 接口
Statement 中的 setFetchSize - 覆盖:
- 类
DruidPooledStatement 中的 setFetchSize
- 抛出:
SQLException
setFetchDirection
public void setFetchDirection(int direction)
throws SQLException
- 指定者:
- 接口
Statement 中的 setFetchDirection - 覆盖:
- 类
DruidPooledStatement 中的 setFetchDirection
- 抛出:
SQLException
setMaxFieldSize
public void setMaxFieldSize(int max)
throws SQLException
- 指定者:
- 接口
Statement 中的 setMaxFieldSize - 覆盖:
- 类
DruidPooledStatement 中的 setMaxFieldSize
- 抛出:
SQLException
setMaxRows
public void setMaxRows(int max)
throws SQLException
- 指定者:
- 接口
Statement 中的 setMaxRows - 覆盖:
- 类
DruidPooledStatement 中的 setMaxRows
- 抛出:
SQLException
setQueryTimeout
public void setQueryTimeout(int seconds)
throws SQLException
- 指定者:
- 接口
Statement 中的 setQueryTimeout - 覆盖:
- 类
DruidPooledStatement 中的 setQueryTimeout
- 抛出:
SQLException
getSql
public String getSql()
getKey
public DruidPooledPreparedStatement.PreparedStatementKey getKey()
getRawPreparedStatement
public PreparedStatement getRawPreparedStatement()
getRawStatement
public PreparedStatement getRawStatement()
close
public void close()
throws SQLException
- 指定者:
- 接口
Statement 中的 close - 覆盖:
- 类
DruidPooledStatement 中的 close
- 抛出:
SQLException
isPooled
public boolean isPooled()
executeQuery
public ResultSet executeQuery()
throws SQLException
- 指定者:
- 接口
PreparedStatement 中的 executeQuery
- 抛出:
SQLException
executeUpdate
public int executeUpdate()
throws SQLException
- 指定者:
- 接口
PreparedStatement 中的 executeUpdate
- 抛出:
SQLException
setNull
public void setNull(int parameterIndex,
int sqlType)
throws SQLException
- 指定者:
- 接口
PreparedStatement 中的 setNull
- 抛出:
SQLException
setBoolean
public void setBoolean(int parameterIndex,
boolean x)
throws SQLException
- 指定者:
- 接口
PreparedStatement 中的 setBoolean
- 抛出:
SQLException
setByte
public void setByte(int parameterIndex,
byte x)
throws SQLException
- 指定者:
- 接口
PreparedStatement 中的 setByte
- 抛出:
SQLException
setShort
public void setShort(int parameterIndex,
short x)
throws SQLException
- 指定者:
- 接口
PreparedStatement 中的 setShort
- 抛出:
SQLException
setInt
public void setInt(int parameterIndex,
int x)
throws SQLException
- 指定者:
- 接口
PreparedStatement 中的 setInt
- 抛出:
SQLException
setLong
public void setLong(int parameterIndex,
long x)
throws SQLException
- 指定者:
- 接口
PreparedStatement 中的 setLong
- 抛出:
SQLException
setFloat
public void setFloat(int parameterIndex,
float x)
throws SQLException
- 指定者:
- 接口
PreparedStatement 中的 setFloat
- 抛出:
SQLException
setDouble
public void setDouble(int parameterIndex,
double x)
throws SQLException
- 指定者:
- 接口
PreparedStatement 中的 setDouble
- 抛出:
SQLException
setBigDecimal
public void setBigDecimal(int parameterIndex,
BigDecimal x)
throws SQLException
- 指定者:
- 接口
PreparedStatement 中的 setBigDecimal
- 抛出:
SQLException
setString
public void setString(int parameterIndex,
String x)
throws SQLException
- 指定者:
- 接口
PreparedStatement 中的 setString
- 抛出:
SQLException
setBytes
public void setBytes(int parameterIndex,
byte[] x)
throws SQLException
- 指定者:
- 接口
PreparedStatement 中的 setBytes
- 抛出:
SQLException
setDate
public void setDate(int parameterIndex,
Date x)
throws SQLException
- 指定者:
- 接口
PreparedStatement 中的 setDate
- 抛出:
SQLException
setTime
public void setTime(int parameterIndex,
Time x)
throws SQLException
- 指定者:
- 接口
PreparedStatement 中的 setTime
- 抛出:
SQLException
setTimestamp
public void setTimestamp(int parameterIndex,
Timestamp x)
throws SQLException
- 指定者:
- 接口
PreparedStatement 中的 setTimestamp
- 抛出:
SQLException
setAsciiStream
public void setAsciiStream(int parameterIndex,
InputStream x,
int length)
throws SQLException
- 指定者:
- 接口
PreparedStatement 中的 setAsciiStream
- 抛出:
SQLException
setUnicodeStream
@Deprecated
public void setUnicodeStream(int parameterIndex,
InputStream x,
int length)
throws SQLException
- 已过时。
- 指定者:
- 接口
PreparedStatement 中的 setUnicodeStream
- 抛出:
SQLException
setBinaryStream
public void setBinaryStream(int parameterIndex,
InputStream x,
int length)
throws SQLException
- 指定者:
- 接口
PreparedStatement 中的 setBinaryStream
- 抛出:
SQLException
clearParameters
public void clearParameters()
throws SQLException
- 指定者:
- 接口
PreparedStatement 中的 clearParameters
- 抛出:
SQLException
setObject
public void setObject(int parameterIndex,
Object x,
int targetSqlType)
throws SQLException
- 指定者:
- 接口
PreparedStatement 中的 setObject
- 抛出:
SQLException
setObject
public void setObject(int parameterIndex,
Object x)
throws SQLException
- 指定者:
- 接口
PreparedStatement 中的 setObject
- 抛出:
SQLException
execute
public boolean execute()
throws SQLException
- 指定者:
- 接口
PreparedStatement 中的 execute
- 抛出:
SQLException
addBatch
public void addBatch()
throws SQLException
- 指定者:
- 接口
PreparedStatement 中的 addBatch
- 抛出:
SQLException
executeBatch
public int[] executeBatch()
throws SQLException
- 指定者:
- 接口
Statement 中的 executeBatch - 覆盖:
- 类
DruidPooledStatement 中的 executeBatch
- 抛出:
SQLException
setCharacterStream
public void setCharacterStream(int parameterIndex,
Reader reader,
int length)
throws SQLException
- 指定者:
- 接口
PreparedStatement 中的 setCharacterStream
- 抛出:
SQLException
setRef
public void setRef(int parameterIndex,
Ref x)
throws SQLException
- 指定者:
- 接口
PreparedStatement 中的 setRef
- 抛出:
SQLException
setBlob
public void setBlob(int parameterIndex,
Blob x)
throws SQLException
- 指定者:
- 接口
PreparedStatement 中的 setBlob
- 抛出:
SQLException
setClob
public void setClob(int parameterIndex,
Clob x)
throws SQLException
- 指定者:
- 接口
PreparedStatement 中的 setClob
- 抛出:
SQLException
setArray
public void setArray(int parameterIndex,
Array x)
throws SQLException
- 指定者:
- 接口
PreparedStatement 中的 setArray
- 抛出:
SQLException
getMetaData
public ResultSetMetaData getMetaData()
throws SQLException
- 指定者:
- 接口
PreparedStatement 中的 getMetaData
- 抛出:
SQLException
setDate
public void setDate(int parameterIndex,
Date x,
Calendar cal)
throws SQLException
- 指定者:
- 接口
PreparedStatement 中的 setDate
- 抛出:
SQLException
setTime
public void setTime(int parameterIndex,
Time x,
Calendar cal)
throws SQLException
- 指定者:
- 接口
PreparedStatement 中的 setTime
- 抛出:
SQLException
setTimestamp
public void setTimestamp(int parameterIndex,
Timestamp x,
Calendar cal)
throws SQLException
- 指定者:
- 接口
PreparedStatement 中的 setTimestamp
- 抛出:
SQLException
setNull
public void setNull(int parameterIndex,
int sqlType,
String typeName)
throws SQLException
- 指定者:
- 接口
PreparedStatement 中的 setNull
- 抛出:
SQLException
setURL
public void setURL(int parameterIndex,
URL x)
throws SQLException
- 指定者:
- 接口
PreparedStatement 中的 setURL
- 抛出:
SQLException
getParameterMetaData
public ParameterMetaData getParameterMetaData()
throws SQLException
- 指定者:
- 接口
PreparedStatement 中的 getParameterMetaData
- 抛出:
SQLException
setRowId
public void setRowId(int parameterIndex,
RowId x)
throws SQLException
- 指定者:
- 接口
PreparedStatement 中的 setRowId
- 抛出:
SQLException
setNString
public void setNString(int parameterIndex,
String value)
throws SQLException
- 指定者:
- 接口
PreparedStatement 中的 setNString
- 抛出:
SQLException
setNCharacterStream
public void setNCharacterStream(int parameterIndex,
Reader value,
long length)
throws SQLException
- 指定者:
- 接口
PreparedStatement 中的 setNCharacterStream
- 抛出:
SQLException
setNClob
public void setNClob(int parameterIndex,
NClob value)
throws SQLException
- 指定者:
- 接口
PreparedStatement 中的 setNClob
- 抛出:
SQLException
setClob
public void setClob(int parameterIndex,
Reader reader,
long length)
throws SQLException
- 指定者:
- 接口
PreparedStatement 中的 setClob
- 抛出:
SQLException
setBlob
public void setBlob(int parameterIndex,
InputStream inputStream,
long length)
throws SQLException
- 指定者:
- 接口
PreparedStatement 中的 setBlob
- 抛出:
SQLException
setNClob
public void setNClob(int parameterIndex,
Reader reader,
long length)
throws SQLException
- 指定者:
- 接口
PreparedStatement 中的 setNClob
- 抛出:
SQLException
setSQLXML
public void setSQLXML(int parameterIndex,
SQLXML xmlObject)
throws SQLException
- 指定者:
- 接口
PreparedStatement 中的 setSQLXML
- 抛出:
SQLException
setObject
public void setObject(int parameterIndex,
Object x,
int targetSqlType,
int scaleOrLength)
throws SQLException
- 指定者:
- 接口
PreparedStatement 中的 setObject
- 抛出:
SQLException
setAsciiStream
public void setAsciiStream(int parameterIndex,
InputStream x,
long length)
throws SQLException
- 指定者:
- 接口
PreparedStatement 中的 setAsciiStream
- 抛出:
SQLException
setBinaryStream
public void setBinaryStream(int parameterIndex,
InputStream x,
long length)
throws SQLException
- 指定者:
- 接口
PreparedStatement 中的 setBinaryStream
- 抛出:
SQLException
setCharacterStream
public void setCharacterStream(int parameterIndex,
Reader reader,
long length)
throws SQLException
- 指定者:
- 接口
PreparedStatement 中的 setCharacterStream
- 抛出:
SQLException
setAsciiStream
public void setAsciiStream(int parameterIndex,
InputStream x)
throws SQLException
- 指定者:
- 接口
PreparedStatement 中的 setAsciiStream
- 抛出:
SQLException
setBinaryStream
public void setBinaryStream(int parameterIndex,
InputStream x)
throws SQLException
- 指定者:
- 接口
PreparedStatement 中的 setBinaryStream
- 抛出:
SQLException
setCharacterStream
public void setCharacterStream(int parameterIndex,
Reader reader)
throws SQLException
- 指定者:
- 接口
PreparedStatement 中的 setCharacterStream
- 抛出:
SQLException
setNCharacterStream
public void setNCharacterStream(int parameterIndex,
Reader value)
throws SQLException
- 指定者:
- 接口
PreparedStatement 中的 setNCharacterStream
- 抛出:
SQLException
setClob
public void setClob(int parameterIndex,
Reader reader)
throws SQLException
- 指定者:
- 接口
PreparedStatement 中的 setClob
- 抛出:
SQLException
setBlob
public void setBlob(int parameterIndex,
InputStream inputStream)
throws SQLException
- 指定者:
- 接口
PreparedStatement 中的 setBlob
- 抛出:
SQLException
setNClob
public void setNClob(int parameterIndex,
Reader reader)
throws SQLException
- 指定者:
- 接口
PreparedStatement 中的 setNClob
- 抛出:
SQLException
isWrapperFor
public boolean isWrapperFor(Class<?> iface)
throws SQLException
- 指定者:
- 接口
Wrapper 中的 isWrapperFor - 覆盖:
- 类
PoolableWrapper 中的 isWrapperFor
- 抛出:
SQLException
unwrap
public <T> T unwrap(Class<T> iface)
throws SQLException
- 指定者:
- 接口
Wrapper 中的 unwrap - 覆盖:
- 类
PoolableWrapper 中的 unwrap
- 抛出:
SQLException
Copyright © 2013 Alibaba Group. All Rights Reserved.