|
Rakesh API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rakeshv.dbutils.StatementCache<S>
public class StatementCache<S extends PreparedStatementDecorator>
A cache for storing PreparedStatement or
CallableStatement objects. Some JDBC drivers and database
servers handle this automatically. This class presents a means
for doing the same for databases or drivers that do not support
that feature.
Copyright 2005 Rakesh Vidyadharan
| Field Summary | |
|---|---|
private ObjectCache<java.lang.String,S> |
cache
The map used to cache the prepared statements. |
| Constructor Summary | |
|---|---|
StatementCache()
Default constructor. |
|
StatementCache(int cacheSize)
Create a new instance which will hold at most the number of statements specified. |
|
| Method Summary |
|---|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private ObjectCache<java.lang.String,S extends PreparedStatementDecorator> cache
| Constructor Detail |
|---|
public StatementCache()
cache. No upper limit
is placed on the statement cache size.
public StatementCache(int cacheSize)
|
Rakesh API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||