public class SqlDataHelper
extends java.lang.Object
Oracle has no support for boolean types and those are usually implemented
as VARCHAR2(1) containing either Y or N.
two functions getYesNo(boolean) and getBoolean(String) are implemented to
make that conversion
| Constructor and Description |
|---|
SqlDataHelper() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
getBoolean(java.lang.String yesNo)
Function getBoolean, returns true if the String consist of the
letter Y or y and return false in all other cases.
|
static java.lang.String |
getYesNo(boolean b)
Function getYesNo returns the character 'Y' for boolean true
and 'N' for boolean false
|
public static final java.lang.String getYesNo(boolean b)
b - boolean value,public static final boolean getBoolean(java.lang.String yesNo)
yesNo - String, that needs to be evaluated to true or falsejava.lang.NullPointerException - if String is null