|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuk.ac.ic.doc.automed.util.db.DBAccess
uk.ac.ic.doc.automed.util.db.DBEmbedded
uk.ac.ic.doc.automed.util.db.QueryCacheSQLAdapter
public class QueryCacheSQLAdapter
QueryCacheSQLAdapter.java
Bridges between PersistentHandler and DBEmbedded
| Field Summary |
|---|
| Fields inherited from class uk.ac.ic.doc.automed.util.db.DBAccess |
|---|
connections, dbFQPath, password, props, user |
| Constructor Summary | |
|---|---|
protected |
QueryCacheSQLAdapter(java.lang.String dbFQPath,
java.lang.String user,
java.lang.String password,
java.util.Properties props)
Creates a new instance of DBAccessAdapter |
| Method Summary | |
|---|---|
void |
close()
Close the database |
java.lang.Object |
get(PersistentKey pkey)
Get the first (or unique) data entry found for key |
java.util.Iterator |
iterator()
Return an iterator of the entry set |
void |
put(PersistentKey pkey,
java.lang.Object value)
Place a data object into db |
void |
remove(PersistentKey pkey)
Remove a single record identified by a common key from the database |
void |
removeAll()
Clear database content |
| Methods inherited from class uk.ac.ic.doc.automed.util.db.DBEmbedded |
|---|
commit, executeCommand, executeQuery, executeStatement, getConnection, getDBInstance, isTableExist, newConnection, printResultSet, setAutoCommit, shutdown |
| Methods inherited from class uk.ac.ic.doc.automed.util.db.DBAccess |
|---|
closeConnection, getCurrentRow |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected QueryCacheSQLAdapter(java.lang.String dbFQPath,
java.lang.String user,
java.lang.String password,
java.util.Properties props)
throws DBInstanceException
DBInstanceException| Method Detail |
|---|
public void put(PersistentKey pkey,
java.lang.Object value)
put in interface PersistentHandlerpublic java.lang.Object get(PersistentKey pkey)
get in interface PersistentHandlerpublic void remove(PersistentKey pkey)
remove in interface PersistentHandlerpublic java.util.Iterator iterator()
iterator in interface PersistentHandlerpublic void removeAll()
removeAll in interface PersistentHandlerpublic void close()
close in interface PersistentHandler
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||