public class PlasmaDataHelper extends Object implements DataHelper
| Modifier and Type | Field and Description |
|---|---|
static DataHelper |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
Object |
convert(Property property,
Object value)
|
Object |
convert(Type type,
Object value)
Convert the specified value to an
instance of the specified type. |
Calendar |
toCalendar(String dateString) |
Calendar |
toCalendar(String dateString,
Locale locale) |
Date |
toDate(String dateString) |
String |
toDateTime(Calendar calendar) |
String |
toDateTime(Date date) |
String |
toDay(Calendar calendar) |
String |
toDay(Date date) |
String |
toDuration(Calendar calendar) |
String |
toDuration(Date date) |
String |
toMonth(Calendar calendar) |
String |
toMonth(Date date) |
String |
toMonthDay(Calendar calendar) |
String |
toMonthDay(Date date) |
String |
toTime(Calendar calendar) |
String |
toTime(Date date) |
String |
toYear(Calendar calendar) |
String |
toYear(Date date) |
String |
toYearMonth(Calendar calendar) |
String |
toYearMonth(Date date) |
String |
toYearMonthDay(Calendar calendar) |
String |
toYearMonthDay(Date date) |
public static volatile DataHelper INSTANCE
public Object convert(Type type, Object value)
instance of the specified type. Supported conversions are listed in
Section 16 of the SDO specification.convert in interface DataHelpertype - the target data type.value - the value to convertIllegalArgumentException - if the value could not be convertedconvert(Property, Object)public Object convert(Property property, Object value)
instance of the specified property's type.
The specified value must be a List if the property is
many valued. In this case, all the values in
the List are converted.convert in interface DataHelperproperty - the target data type property.value - the value or List of values to convertIllegalArgumentException - if the value could not be convertedconvert(Type, Object)public Calendar toCalendar(String dateString)
toCalendar in interface DataHelperpublic Calendar toCalendar(String dateString, Locale locale)
toCalendar in interface DataHelperpublic Date toDate(String dateString)
toDate in interface DataHelperpublic String toDateTime(Date date)
toDateTime in interface DataHelperpublic String toDateTime(Calendar calendar)
toDateTime in interface DataHelperpublic String toDay(Date date)
toDay in interface DataHelperpublic String toDay(Calendar calendar)
toDay in interface DataHelperpublic String toDuration(Date date)
toDuration in interface DataHelperpublic String toDuration(Calendar calendar)
toDuration in interface DataHelperpublic String toMonth(Date date)
toMonth in interface DataHelperpublic String toMonth(Calendar calendar)
toMonth in interface DataHelperpublic String toMonthDay(Date date)
toMonthDay in interface DataHelperpublic String toMonthDay(Calendar calendar)
toMonthDay in interface DataHelperpublic String toTime(Date date)
toTime in interface DataHelperpublic String toTime(Calendar calendar)
toTime in interface DataHelperpublic String toYear(Date date)
toYear in interface DataHelperpublic String toYear(Calendar calendar)
toYear in interface DataHelperpublic String toYearMonth(Date date)
toYearMonth in interface DataHelperpublic String toYearMonth(Calendar calendar)
toYearMonth in interface DataHelperpublic String toYearMonthDay(Date date)
toYearMonthDay in interface DataHelperpublic String toYearMonthDay(Calendar calendar)
toYearMonthDay in interface DataHelperCopyright © 2017. All rights reserved.