com.uwyn.rife.database
Class DbQueryManagerCache

java.lang.Object
  extended by com.uwyn.rife.database.DbQueryManagerCache

public class DbQueryManagerCache
extends Object

This class is a simple cache for DbQueryManager objects. DbQueryManager objects are cached by their related Datasource and an identifier.

Since:
1.0
Version:
$Revision: 3737 $
Author:
JR Boyens (jboyens[remove] at uwyn dot com), Geert Bevin (gbevin[remove] at uwyn dot com)

Constructor Summary
DbQueryManagerCache()
          Default constructor
 
Method Summary
 DbQueryManager get(Datasource datasource, String identifier)
          Retrieve a cached DbQueryManager
 void put(Datasource datasource, String identifier, DbQueryManager dbQueryManager)
          Place a DbQueryManager in the cache
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DbQueryManagerCache

public DbQueryManagerCache()
Default constructor

Since:
1.0
Method Detail

get

public DbQueryManager get(Datasource datasource,
                          String identifier)
Retrieve a cached DbQueryManager

Parameters:
datasource - the Datasource associated with the desired DbQueryManager
identifier - the identifier associate with the desired DbQueryManager
Returns:
the cached DbQueryManager
Since:
1.0

put

public void put(Datasource datasource,
                String identifier,
                DbQueryManager dbQueryManager)
Place a DbQueryManager in the cache

Parameters:
datasource - the Datasource associated with the DbQueryManager to put in the cache
identifier - the identifier associated with the DbQueryManager to put in the cache
dbQueryManager - the DbQueryManager to put in the cache
Since:
1.0


Copyright © 2001-2007 Uwyn sprl/bvba. All Rights Reserved.