|
Arch4J 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.arch4j.persistence.domainmapper.ValueHelper
Defines constants of default values
Field Summary | |
static double |
DEFAULT_DOUBLE
Define a default value to initialize and check if an int has been set. |
static float |
DEFAULT_FLOAT
Define a default value to initialize and check if an int has been set. |
static int |
DEFAULT_INT
Define a default value to initialize and check if an int has been set. |
static Integer |
DEFAULT_INTEGER
Define a default value to initialize and check if an Integer has been set. |
static String |
DEFAULT_STRING
Define a default value to initialize and check if a String has been set. |
static String |
FALSE_YES_NO_STRING
Define a constant value for representing false as a String. |
static String |
TRUE_YES_NO_STRING
Define a constant value for representing true as a String. |
Constructor Summary | |
ValueHelper()
|
Method Summary | |
String |
convertBooleanToYesNo(boolean value)
|
Date |
convertTimestampToDate(Timestamp aTimestamp)
|
boolean |
convertYesNoToBoolean(String value)
|
SimpleDateFormat |
getDateFormat()
Date formatter specific to the expected DB/2 timestamp format |
static ValueHelper |
getHelper()
Retrieve a value helper |
SimpleDateFormat |
getTimestampFormat()
Date formatter specific to the expected DB/2 timestamp format |
String |
getUID()
Provide the caller with unique ID values. |
String |
massage(String value)
Massage the String |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int DEFAULT_INT
public static final Integer DEFAULT_INTEGER
public static final float DEFAULT_FLOAT
public static final double DEFAULT_DOUBLE
public static final String DEFAULT_STRING
public static final String TRUE_YES_NO_STRING
true
as a String.
public static final String FALSE_YES_NO_STRING
false
as a String.
Constructor Detail |
public ValueHelper()
Method Detail |
public static ValueHelper getHelper()
public String massage(String value)
public SimpleDateFormat getDateFormat()
public SimpleDateFormat getTimestampFormat()
public String getUID()
public Date convertTimestampToDate(Timestamp aTimestamp)
public String convertBooleanToYesNo(boolean value)
public boolean convertYesNoToBoolean(String value)
|
Arch4J 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |