|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bristle.javalib.sql.oracle.OracleUtil
public class OracleUtil
This class contains utility routines for use with an Oracle database.
Usage: - The typical scenario for using this class is: String s = OracleUtil.oracleBoolean(bln); - See the source code of the inner Tester class for more examples. Assumptions: Effects: - None. Anticipated Changes: Notes: Implementation Notes: Portability Issues: Revision History: $Log$
Nested Class Summary | |
---|---|
static class |
OracleUtil.Tester
Each class contains a Tester inner class with a main() for easier unit testing. |
Constructor Summary | |
---|---|
OracleUtil()
|
Method Summary | |
---|---|
static boolean |
databaseConnectionIsValid(Connection conn)
Test the specified Oracle database connection. |
static String |
oracleBoolean(boolean blnIn)
Returns a string containing the Oracle keyword TRUE if the specified boolean is null. |
static String |
oracleIntegerOrNull(Integer intIn)
Returns a string containing the Oracle keyword NULL if the specified Integer is null. |
static String |
oracleStringOrNull(String strIn)
Returns a string containing the Oracle keyword NULL if the specified string is null. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OracleUtil()
Method Detail |
---|
public static String oracleStringOrNull(String strIn)
strIn
- The input string.
public static String oracleIntegerOrNull(Integer intIn)
intIn
- The input Integer.
public static String oracleBoolean(boolean blnIn)
blnIn
- The input boolean.
public static boolean databaseConnectionIsValid(Connection conn)
conn
- Oracle database connection
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |