Package com.alibaba.druid.pool
Class PreparedStatementPool
- java.lang.Object
-
- com.alibaba.druid.pool.PreparedStatementPool
-
public class PreparedStatementPool extends Object
- Author:
- wenshao [szujobs@hotmail.com]
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classPreparedStatementPool.LRUCachestatic classPreparedStatementPool.MethodType
-
Constructor Summary
Constructors Constructor Description PreparedStatementPool(DruidConnectionHolder holder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()voidcloseRemovedStatement(PreparedStatementHolder holder)PreparedStatementHolderget(DruidPooledPreparedStatement.PreparedStatementKey key)Map<DruidPooledPreparedStatement.PreparedStatementKey,PreparedStatementHolder>getMap()voidput(PreparedStatementHolder stmtHolder)voidremove(PreparedStatementHolder stmtHolder)intsize()
-
-
-
Constructor Detail
-
PreparedStatementPool
public PreparedStatementPool(DruidConnectionHolder holder)
-
-
Method Detail
-
get
public PreparedStatementHolder get(DruidPooledPreparedStatement.PreparedStatementKey key) throws SQLException
- Throws:
SQLException
-
remove
public void remove(PreparedStatementHolder stmtHolder) throws SQLException
- Throws:
SQLException
-
put
public void put(PreparedStatementHolder stmtHolder) throws SQLException
- Throws:
SQLException
-
clear
public void clear()
-
closeRemovedStatement
public void closeRemovedStatement(PreparedStatementHolder holder)
-
getMap
public Map<DruidPooledPreparedStatement.PreparedStatementKey,PreparedStatementHolder> getMap()
-
size
public int size()
-
-