|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.edg.data.util.ConnectionFactory | +--org.edg.data.util.DriverBasedConnectionFactory
A ConnectionFactory that uses the JDDB Driver Manager. This is not
intended for production use - use the JNDIConnectionFactory
instead
Field Summary |
Fields inherited from class org.edg.data.util.ConnectionFactory |
m_log |
Constructor Summary | |
DriverBasedConnectionFactory(java.lang.String driverName,
java.lang.String connectString,
java.lang.String userName,
java.lang.String password)
Create a new connection factory, using the given Driver to connec to a JDBC resource. |
Method Summary | |
java.sql.Connection |
connection()
|
Methods inherited from class org.edg.data.util.ConnectionFactory |
getMaxColumnNameSize, getVendor |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DriverBasedConnectionFactory(java.lang.String driverName, java.lang.String connectString, java.lang.String userName, java.lang.String password) throws java.lang.ClassNotFoundException
driverName
- The classname of the driver to useconnectString
- the JDBC connect stringuserName
- username for the JDBC connectionpassword
- and it's password
java.lang.ClassNotFoundException
- If the driver cannot be found on the c
classpathMethod Detail |
public java.sql.Connection connection() throws java.sql.SQLException
connection
in class ConnectionFactory
java.sql.SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |