|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pfsw.db.util.DBUtil
public class DBUtil
Helper and convenience methods for Java database handling.
Constructor Summary | |
---|---|
protected |
DBUtil()
|
Method Summary | |
---|---|
static DBUtil |
current()
Returns the only instance this class supports (design pattern "Singleton") |
boolean |
isDriverRegistered(java.lang.String driverClassName)
Returns true if the database driver with the specified class name is registered at the java.sql.DriverManager. |
boolean |
loadAndRegisterDriver(java.lang.String driverClassName)
Loads the database driver with the given class name and registers it at the java.sql.DriverManager. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected DBUtil()
Method Detail |
---|
public static DBUtil current()
public boolean loadAndRegisterDriver(java.lang.String driverClassName)
driverClassName
- The class name of the driver to load
public boolean isDriverRegistered(java.lang.String driverClassName)
driverClassName
- The class name of the driver to load
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |