com.clra.util
Class DBConfiguration
java.lang.Object
|
+--com.clra.util.DBConfiguration
- public class DBConfiguration
- extends Object
A collection of configurable properties used by this package.
- Version:
- $Id: DBConfiguration.java,v 1.2 2002/01/30 15:13:40 rphall Exp $
- Author:
- Rick Hall
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PN_DBTYPE
public static final String PN_DBTYPE
PN_PREFIX_DBDRIVER
public static final String PN_PREFIX_DBDRIVER
PN_PREFIX_DBURL
public static final String PN_PREFIX_DBURL
PN_PREFIX_DBUSER
public static final String PN_PREFIX_DBUSER
PN_PREFIX_DBPASSWORD
public static final String PN_PREFIX_DBPASSWORD
DBTYPE
public static String DBTYPE
DBDRIVER
public static String DBDRIVER
DBURL
public static String DBURL
DBUSER
public static String DBUSER
DBPASSWORD
public static String DBPASSWORD
isOracle
public static boolean isOracle()
getConnection
public static java.sql.Connection getConnection()
throws java.sql.SQLException
- Gets a SQL connection
closeSQLResultSet
public static void closeSQLResultSet(java.sql.ResultSet rs)
- Closes SQL result set
closeSQLStatement
public static void closeSQLStatement(java.sql.Statement stmt)
- Closes SQL statement
closeSQLConnection
public static void closeSQLConnection(java.sql.Connection conn)
- Closes SQL connection
convertIntToIntegerOrNull
public static Integer convertIntToIntegerOrNull(int i)
- Converts an int value to an Integer object. Per JDBC, a
zero-valued int is converted to null.