Package rife.database
Class DbQueryManagerCache
java.lang.Object
rife.database.DbQueryManagerCache
This class is a simple cache for
DbQueryManager
objects. DbQueryManager
objects are cached by their related Datasource
and
an identifier.- Since:
- 1.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionget
(Datasource datasource, String identifier) Retrieve a cachedDbQueryManager
void
put
(Datasource datasource, String identifier, DbQueryManager dbQueryManager) Place aDbQueryManager
in the cache
-
Constructor Details
-
DbQueryManagerCache
public DbQueryManagerCache()Default constructor- Since:
- 1.0
-
-
Method Details
-
get
Retrieve a cachedDbQueryManager
- Parameters:
datasource
- theDatasource
associated with the desiredDbQueryManager
identifier
- the identifier associate with the desiredDbQueryManager
- Returns:
- the cached
DbQueryManager
- Since:
- 1.0
-
put
Place aDbQueryManager
in the cache- Parameters:
datasource
- theDatasource
associated with theDbQueryManager
to put in the cacheidentifier
- the identifier associated with theDbQueryManager
to put in the cachedbQueryManager
- theDbQueryManager
to put in the cache- Since:
- 1.0
-