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