public class StatementCache
extends java.lang.Object
Constructor and Description |
---|
StatementCache() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears all PreparedStatements in the cache, which forces them to be recreated if needed.
|
void |
dumpContent(java.io.PrintStream ps)
Dumps the content of the statement cache to the given PrintStream.
|
java.sql.PreparedStatement |
get(java.lang.Class dboClass,
java.sql.Connection dbConn,
DBAction action)
Refetches the requested PreparedStatement from the cache.
|
void |
put(java.lang.Class dboClass,
java.sql.Connection dbConn,
DBAction action,
java.sql.PreparedStatement stmt)
Stores the given PreparedStatement in the cache based on the given parameters.
|
public java.sql.PreparedStatement get(java.lang.Class dboClass, java.sql.Connection dbConn, DBAction action)
public void put(java.lang.Class dboClass, java.sql.Connection dbConn, DBAction action, java.sql.PreparedStatement stmt)
public void clear()
public void dumpContent(java.io.PrintStream ps)
Copyright © 2014 EsprIT-Systems. All Rights Reserved.