public class PlasmaDataHelper extends Object implements commonj.sdo.helper.DataHelper
| Modifier and Type | Field and Description |
|---|---|
static commonj.sdo.helper.DataHelper |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
Object |
convert(commonj.sdo.Property property,
Object value)
Convert the specified value to an
instance
of the specified property's type. |
Object |
convert(commonj.sdo.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 Object convert(commonj.sdo.Type type, Object value)
instance
of the specified type. Supported conversions are listed in Section 16 of
the SDO specification.convert in interface commonj.sdo.helper.DataHelpertype - the target data type.value - the value to convertIllegalArgumentException - if the value could not be convertedconvert(Property, Object)public Object convert(commonj.sdo.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 commonj.sdo.helper.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 commonj.sdo.helper.DataHelperpublic Calendar toCalendar(String dateString, Locale locale)
toCalendar in interface commonj.sdo.helper.DataHelperpublic Date toDate(String dateString)
toDate in interface commonj.sdo.helper.DataHelperpublic String toDateTime(Date date)
toDateTime in interface commonj.sdo.helper.DataHelperpublic String toDateTime(Calendar calendar)
toDateTime in interface commonj.sdo.helper.DataHelperpublic String toDay(Calendar calendar)
toDay in interface commonj.sdo.helper.DataHelperpublic String toDuration(Date date)
toDuration in interface commonj.sdo.helper.DataHelperpublic String toDuration(Calendar calendar)
toDuration in interface commonj.sdo.helper.DataHelperpublic String toMonth(Date date)
toMonth in interface commonj.sdo.helper.DataHelperpublic String toMonth(Calendar calendar)
toMonth in interface commonj.sdo.helper.DataHelperpublic String toMonthDay(Date date)
toMonthDay in interface commonj.sdo.helper.DataHelperpublic String toMonthDay(Calendar calendar)
toMonthDay in interface commonj.sdo.helper.DataHelperpublic String toTime(Date date)
toTime in interface commonj.sdo.helper.DataHelperpublic String toTime(Calendar calendar)
toTime in interface commonj.sdo.helper.DataHelperpublic String toYear(Date date)
toYear in interface commonj.sdo.helper.DataHelperpublic String toYear(Calendar calendar)
toYear in interface commonj.sdo.helper.DataHelperpublic String toYearMonth(Date date)
toYearMonth in interface commonj.sdo.helper.DataHelperpublic String toYearMonth(Calendar calendar)
toYearMonth in interface commonj.sdo.helper.DataHelperpublic String toYearMonthDay(Date date)
toYearMonthDay in interface commonj.sdo.helper.DataHelperCopyright © 2021. All rights reserved.