|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.stellent.ridc.model.impl.DataObjectEncodingUtils
public abstract class DataObjectEncodingUtils
Data encoding utilities
Field Summary | |
---|---|
static java.lang.String |
DATE_FORMAT
|
static java.lang.String |
DATE_STRING
|
static java.lang.String |
ODBC_POSTFIX
|
static java.lang.String |
ODBC_PREFIX
|
Constructor Summary | |
---|---|
DataObjectEncodingUtils()
|
Method Summary | |
---|---|
static void |
addLocaleInfo(DataBinder dataBinder)
Add the localization information into the databinder |
static java.util.Calendar |
decodeDate(java.lang.String dateString)
Parse the date from the encoded string. |
static java.lang.String |
encodeDate(java.util.Date date)
Encode the date in the standard ODBC date format |
static boolean |
getBoolean(DataObject dataObject,
java.lang.String name,
boolean defaultValue)
Retrieve the result as a boolean |
static java.util.Calendar |
getCalendar(DataObject dataObject,
java.lang.String name)
Retrieve the getCalendar. |
static int |
getInteger(DataObject dataObject,
java.lang.String name,
int defaultValue)
Retrieve an integer from the DataObject |
static long |
getLong(DataObject dataObject,
java.lang.String name,
long defaultValue)
Retrieve an long from the DataObject |
static void |
setBoolean(DataObject dataObject,
java.lang.String name,
boolean value)
Set a value as a boolean |
static void |
setDate(DataObject dataObject,
java.lang.String name,
java.util.Date date)
Set a date value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ODBC_PREFIX
public static final java.lang.String ODBC_POSTFIX
public static final java.lang.String DATE_FORMAT
public static final java.lang.String DATE_STRING
Constructor Detail |
---|
public DataObjectEncodingUtils()
Method Detail |
---|
public static void addLocaleInfo(DataBinder dataBinder)
dataBinder
- the databinderpublic static boolean getBoolean(DataObject dataObject, java.lang.String name, boolean defaultValue)
dataObject
- the data objectname
- the property namedefaultValue
- the default value if not found
public static void setBoolean(DataObject dataObject, java.lang.String name, boolean value)
dataObject
- the data objectname
- the property namevalue
- the property valuepublic static int getInteger(DataObject dataObject, java.lang.String name, int defaultValue)
dataObject
- the data objectname
- the property namedefaultValue
- the default value if not found
public static long getLong(DataObject dataObject, java.lang.String name, long defaultValue)
dataObject
- the data objectname
- the property namedefaultValue
- the default value if not found
public static void setDate(DataObject dataObject, java.lang.String name, java.util.Date date)
dataObject
- the data objectname
- the property namedate
- the date in GMT timepublic static java.util.Calendar getCalendar(DataObject dataObject, java.lang.String name)
dataObject
- the data objectname
- the property name
public static java.lang.String encodeDate(java.util.Date date)
date
- the date
public static java.util.Calendar decodeDate(java.lang.String dateString) throws java.text.ParseException
dateString
- the encoded date
java.text.ParseException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |