| java.lang.Object com.protomatter.util.DatabaseUtil
DatabaseUtil | public class DatabaseUtil (Code) | | Database-related utility class.
|
close | public static boolean close(Connection c)(Code) | | Close the given Connection. Return true when there's no
exception thrown, false if there was one.
|
close | public static boolean close(Connection c, Object logger)(Code) | | Close the given Connection. Return true when there's no
exception thrown, false if there was one.
The logger is passed onto a call to Syslog.log()
in the event of an exception.
|
close | public static boolean close(Statement s)(Code) | | Close the given Statement. Return true when there's no
exception thrown, false if there was one.
|
close | public static boolean close(Statement s, Object logger)(Code) | | Close the given Statement. Return true when there's no
exception thrown, false if there was one.
The logger is passed onto a call to Syslog.log()
in the event of an exception.
|
close | public static boolean close(ResultSet r)(Code) | | Close the given ResultSet. Return true when there's no
exception thrown, false if there was one.
|
close | public static boolean close(ResultSet r, Object logger)(Code) | | Close the given ResultSet. Return true when there's no
exception thrown, false if there was one.
The logger is passed onto a call to Syslog.log()
in the event of an exception.
|
registerDriver | public static void registerDriver(String driverName) throws Exception(Code) | | Ensure that the given driver has been registered.
This method makes sure that the given driver is
loaded and registered with the JDBC Driver Manager.
Calling this method multiple times will not
result in the driver being registered twice.
|
|
|