com.adhi.adhij
Class DAOUtility

java.lang.Object
  extended by com.adhi.adhij.DAOUtility

public class DAOUtility
extends java.lang.Object

The Data access object utility. It has utility methods for database operation.

Author:
DKRISHNA

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

DB_NULL

public static final java.lang.String DB_NULL
See Also:
Constant Field Values
Constructor Detail

DAOUtility

public DAOUtility()
Method Detail

strToBoolean

public static boolean strToBoolean(java.lang.String str)
converts the string to a boolean

Parameters:
str - the string to be converted to boolean
Returns:
the boolean

booleanToStrTF

public static java.lang.String booleanToStrTF(boolean b)
converts the boolean to a String

Parameters:
b - the boolean to be converted to String
Returns:
the boolean

booleanToStrYN

public static java.lang.String booleanToStrYN(boolean b)
converts the boolean to a String

Parameters:
b - the boolean to be converted to String
Returns:
the boolean

checkString

public static java.lang.String checkString(java.lang.String str)
returns NULL if the str is null otherwise returns the string with single quote

Parameters:
str - string to be checked for null
Returns:
NULL if the str is null otherwise returns the string with single quote