com.mwc.sqld.db
Class DatabaseImplManager

java.lang.Object
  |
  +--com.mwc.sqld.db.DatabaseImplManager

public class DatabaseImplManager
extends java.lang.Object

A class to staticly manage all the Database implementations in a JVM instance in a thread safe way.


Constructor Summary
DatabaseImplManager()
           
 
Method Summary
static java.lang.Class getImplClass(java.lang.String name)
          Get a class for an implementation.
static java.lang.Class registerImpl(java.lang.String name, java.lang.Class dbClass)
          Register an implemenation with the framework.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabaseImplManager

public DatabaseImplManager()
Method Detail

registerImpl

public static java.lang.Class registerImpl(java.lang.String name,
                                           java.lang.Class dbClass)
Register an implemenation with the framework.
Parameters:
name - the name of the implementation
dbClass - the class for the implementation
Returns:
the previous class for that implementation or null

getImplClass

public static java.lang.Class getImplClass(java.lang.String name)
Get a class for an implementation.
Parameters:
name - the name of the implementation
Returns:
the class for that impl or null