|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.turbine.util.db.adapter.DBFactory
This class creates different DB objects based on the database driver that is provided.
Field Summary | |
private static java.util.Hashtable |
drivers
|
Constructor Summary | |
DBFactory()
|
Method Summary | |
(package private) static void |
|
static DB |
create(java.lang.String driver)
Creates an instance of the Turbine database adapter associated with the specified JDBC driver. |
private static void |
registerDriver(java.lang.String driver,
java.lang.Class dc)
Try to register the class of a database driver at the factory. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
Field Detail |
private static java.util.Hashtable drivers
Constructor Detail |
public DBFactory()
Method Detail |
static void()
private static void registerDriver(java.lang.String driver, java.lang.Class dc)
driver
- The fully-qualified name of the JDBC driver to create.dc
- The named JDBC driver.public static DB create(java.lang.String driver) throws java.lang.InstantiationException
protected
. I'd like to try
to get it back that way ASAP. I had to change its access level since
it is called by ConnectionPool
, and these two
classes are no longer in the same package. -Daniel driver
- The fully-qualified name of the JDBC driver to create.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |