|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.torque.adapter.DBFactory
This class creates different DB
objects based on specified JDBC driver name.
Field Summary | |
private static java.util.Map |
adapters
JDBC driver to Torque Adapter map. |
Constructor Summary | |
DBFactory()
|
Method Summary | |
static DB |
create(java.lang.String driver)
Creates a new instance of the Turbine database adapter associated with the specified JDBC driver or adapter key. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static java.util.Map adapters
Constructor Detail |
public DBFactory()
Method Detail |
public static DB create(java.lang.String driver) throws java.lang.InstantiationException
driver
- The fully-qualified name of the JDBC driver to
create a new adapter instance for or a shorter form adapter key.
java.lang.InstantiationException
- throws if the JDBC driver could not be
instantiated
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |