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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget(Datasource datasource, String identifier) Retrieve a cachedDbQueryManagervoidput(Datasource datasource, String identifier, DbQueryManager dbQueryManager) Place aDbQueryManagerin the cache
-
Constructor Details
-
DbQueryManagerCache
public DbQueryManagerCache()Default constructor- Since:
- 1.0
-
-
Method Details
-
get
Retrieve a cachedDbQueryManager- Parameters:
datasource- theDatasourceassociated with the desiredDbQueryManageridentifier- the identifier associate with the desiredDbQueryManager- Returns:
- the cached
DbQueryManager - Since:
- 1.0
-
put
Place aDbQueryManagerin the cache- Parameters:
datasource- theDatasourceassociated with theDbQueryManagerto put in the cacheidentifier- the identifier associated with theDbQueryManagerto put in the cachedbQueryManager- theDbQueryManagerto put in the cache- Since:
- 1.0
-