|
|||||||||
| Home >> All >> cvebrowser >> dictionary >> data >> persistence >> [ util overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
cvebrowser.dictionary.data.persistence.util
Class PrepStatementCache

java.lang.Objectcvebrowser.dictionary.data.persistence.util.PrepStatementCache
- public final class PrepStatementCache
- extends java.lang.Object
PrepStatementCache - Specialized cache that stores a set of PreparedStatements for later retrieval.
- Version:
- 0.1 - 08/17/2003
| Field Summary | |
private static java.util.ResourceBundle |
_bundle
|
private static PrepStatementCache |
_instance
|
private static java.util.HashMap |
_prepMap
|
| Constructor Summary | |
private |
PrepStatementCache()
|
| Method Summary | |
void |
clean()
Clean the internal cache. |
java.lang.Object |
clone()
Make this class uncloneable. |
void |
finalize()
Final resource liberation |
java.sql.PreparedStatement |
get(java.lang.String name_)
Get the prepared statement back to the caller |
static PrepStatementCache |
getInstance()
Return an instance for this Singleton. |
void |
put(java.sql.PreparedStatement prep_,
java.lang.String name_)
Add a element to the cache |
private void |
readObject(java.io.ObjectInputStream in_)
Make this class undeserializeable. |
private void |
writeObject(java.io.ObjectOutputStream out_)
Make this class unserializable. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
_bundle
private static java.util.ResourceBundle _bundle
_instance
private static PrepStatementCache _instance
_prepMap
private static java.util.HashMap _prepMap
| Constructor Detail |
PrepStatementCache
private PrepStatementCache()
| Method Detail |
getInstance
public static PrepStatementCache getInstance()
- Return an instance for this Singleton.
- Since:
- 0.1
put
public void put(java.sql.PreparedStatement prep_, java.lang.String name_) throws java.lang.IllegalArgumentException
- Add a element to the cache
- Since:
- 0.1
get
public java.sql.PreparedStatement get(java.lang.String name_)
- Get the prepared statement back to the caller
- Since:
- 0.1
clean
public void clean()
- Clean the internal cache. Closes all the opened prepared statements and cleans the cache.
finalize
public void finalize()
- Final resource liberation
clone
public final java.lang.Object clone() throws java.lang.CloneNotSupportedException
- Make this class uncloneable. Anyone who wants to use this class must use the constructor.
writeObject
private final void writeObject(java.io.ObjectOutputStream out_) throws java.io.IOException
- Make this class unserializable. Any attempt to serialize will throw an exception.
readObject
private final void readObject(java.io.ObjectInputStream in_) throws java.io.IOException
- Make this class undeserializeable. Throw an exception if this method is ever called.
|
|||||||||
| Home >> All >> cvebrowser >> dictionary >> data >> persistence >> [ util overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
cvebrowser.dictionary.data.persistence.util.PrepStatementCache