|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.novell.nds.dirxml.driver.jdbc.db.DBLib
A database-independent library of useful JDBC methods.
To be installed on DB2 database server. Must be compiled for 1.1.8 VM.
Method Summary | |
static Connection |
Close(Connection connection)
Closes open connection. |
static ResultSet |
Close(ResultSet rs)
Closes open results set. |
static Statement |
Close(Statement stmt)
Closes open statement. |
static String |
DELIMIT(String undelimited)
Encloses undelimited in double quotes "". |
static boolean |
IsNotValue(String value)
Is the passed String is null ,
empty string, or whitespace? |
static boolean |
IsValue(String value)
Is the passed String is something other than null ,
empty string, or whitespace? |
static boolean |
LDAPMustEscapeDelimited(char ch)
Does a character need to be escaped if included in an LDAP-delimited string? |
static Date |
NewDate(String odbcDate)
Instantiates a date object. |
static Time |
NewTime(String odbcTime)
Instantiates a time object. |
static Timestamp |
NewTimestamp(String odbcTimestamp)
Instantiates a timestamp object. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static boolean IsValue(String value)
String
is something other than null
,
empty string, or whitespace?
value
- the value in question
true
if value
is a value;
false
otherwisepublic static boolean IsNotValue(String value)
String
is null
,
empty string, or whitespace?
value
- the value in question
true
if value
is not a value;
false
otherwisepublic static Connection Close(Connection connection)
SQLException
s are ignored.
connection
- may be null
public static Statement Close(Statement stmt)
SQLException
s are ignored.
stmt
- may be null
public static ResultSet Close(ResultSet rs)
SQLException
s are ignored.
rs
- may be null
public static boolean LDAPMustEscapeDelimited(char ch)
ch
- the character to evaluate
true
if it does;
false
otherwisepublic static String DELIMIT(String undelimited)
undelimited
in double quotes "".
Provides a simple alternative to escaping LDAP DN characters
{'"' | '\' | ',' | '+' | '=' | '<' | '>' | ';'}
.
undelimited
- an unquoted string; may be null
null
if undelimited
is null
;
undelimited
enclosed in "" otherwise.public static Timestamp NewTimestamp(String odbcTimestamp) throws IllegalArgumentException
odbcTimestamp
- a string of the format
yyyy-mm-dd hh:mm:ss.fffffffff
;
MUST not be null
null
IllegalArgumentException
- if odbcTimestamp
does not have the format yyyy-mm-dd hh:mm:ss.fffffffff
public static Time NewTime(String odbcTime) throws IllegalArgumentException
odbcTime
- a string of the format
hh:mm:ss
;
MUST not be null
null
IllegalArgumentException
- if odbcTime
does not have the format hh:mm:ss
public static Date NewDate(String odbcDate) throws IllegalArgumentException
odbcDate
- a string of the format
yyyy-mm-dd
;
MUST not be null
null
IllegalArgumentException
- if odbcDate
does not have the format yyyy-mm-dd
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |