|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.adhi.adhij.DAOUtility
public class DAOUtility
The Data access object utility. It has utility methods for database operation.
Field Summary | |
---|---|
static java.lang.String |
DB_NULL
|
Constructor Summary | |
---|---|
DAOUtility()
|
Method Summary | |
---|---|
static java.lang.String |
booleanToStrTF(boolean b)
converts the boolean to a String |
static java.lang.String |
booleanToStrYN(boolean b)
converts the boolean to a String |
static java.lang.String |
checkString(java.lang.String str)
returns NULL if the str is null otherwise returns the string with single quote |
static boolean |
strToBoolean(java.lang.String str)
converts the string to a boolean |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DB_NULL
Constructor Detail |
---|
public DAOUtility()
Method Detail |
---|
public static boolean strToBoolean(java.lang.String str)
str
- the string to be converted to boolean
public static java.lang.String booleanToStrTF(boolean b)
b
- the boolean to be converted to String
public static java.lang.String booleanToStrYN(boolean b)
b
- the boolean to be converted to String
public static java.lang.String checkString(java.lang.String str)
str
- string to be checked for null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |