public class PreparedStatementPool extends Object
Modifier and Type | Class and Description |
---|---|
class |
PreparedStatementPool.LRUCache |
static class |
PreparedStatementPool.MethodType |
Constructor and Description |
---|
PreparedStatementPool(DruidConnectionHolder holder) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
void |
closeRemovedStatement(PreparedStatementHolder holder) |
PreparedStatementHolder |
get(DruidPooledPreparedStatement.PreparedStatementKey key) |
Map<DruidPooledPreparedStatement.PreparedStatementKey,PreparedStatementHolder> |
getMap() |
void |
put(PreparedStatementHolder stmtHolder) |
void |
remove(PreparedStatementHolder stmtHolder) |
int |
size() |
public PreparedStatementPool(DruidConnectionHolder holder)
public PreparedStatementHolder get(DruidPooledPreparedStatement.PreparedStatementKey key) throws SQLException
SQLException
public void remove(PreparedStatementHolder stmtHolder) throws SQLException
SQLException
public void put(PreparedStatementHolder stmtHolder) throws SQLException
SQLException
public void clear()
public void closeRemovedStatement(PreparedStatementHolder holder)
public Map<DruidPooledPreparedStatement.PreparedStatementKey,PreparedStatementHolder> getMap()
public int size()
Copyright © 2013–2017 Alibaba Group. All rights reserved.