|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.plasma.sdo.helper.PlasmaDataHelper
public class PlasmaDataHelper
| Field Summary | |
|---|---|
static DataHelper |
INSTANCE
|
| Method Summary | |
|---|---|
java.lang.Object |
convert(Property property,
java.lang.Object value)
Convert the specified value to an instance of the specified property's type. |
java.lang.Object |
convert(Type type,
java.lang.Object value)
Convert the specified value to an instance of the specified type. |
java.util.Calendar |
toCalendar(java.lang.String dateString)
Convert from a String representation of an SDO date type to a Calendar using the default locale. |
java.util.Calendar |
toCalendar(java.lang.String dateString,
java.util.Locale locale)
Convert from a String representation of an SDO date type to a Calendar using the specified locale, or the default locale if the locale is null. |
java.util.Date |
toDate(java.lang.String dateString)
Convert from a String representation of an SDO date type to a Date. |
java.lang.String |
toDateTime(java.util.Calendar calendar)
Convert from a Calendar to a String representation of the DateTime type. |
java.lang.String |
toDateTime(java.util.Date date)
Convert from a Date to a String representation of the DateTime type. |
java.lang.String |
toDay(java.util.Calendar calendar)
Convert from a Calendar to a String representation of the Day type. |
java.lang.String |
toDay(java.util.Date date)
Convert from a Date to a String representation of the Day type. |
java.lang.String |
toDuration(java.util.Calendar calendar)
Convert from a Calendar to a String representation of the Duration type. |
java.lang.String |
toDuration(java.util.Date date)
Convert from a Date to a String representation of the Duration type. |
java.lang.String |
toMonth(java.util.Calendar calendar)
Convert from a Calendar to a String representation of the Month type. |
java.lang.String |
toMonth(java.util.Date date)
Convert from a Date to a String representation of the Month type. |
java.lang.String |
toMonthDay(java.util.Calendar calendar)
Convert from a Calendar to a String representation of the MonthDay type. |
java.lang.String |
toMonthDay(java.util.Date date)
Convert from a Date to a String representation of the MonthDay type. |
java.lang.String |
toTime(java.util.Calendar calendar)
Convert from a Calendar to a String representation of the Time type. |
java.lang.String |
toTime(java.util.Date date)
Convert from a Date to a String representation of the Time type. |
java.lang.String |
toYear(java.util.Calendar calendar)
Convert from a Calendar to a String representation of the Year type. |
java.lang.String |
toYear(java.util.Date date)
Convert from a Date to a String representation of the Year type. |
java.lang.String |
toYearMonth(java.util.Calendar calendar)
Convert from a Calendar to a String representation of the YearMonth type. |
java.lang.String |
toYearMonth(java.util.Date date)
Convert from a Date to a String representation of the YearMonth type. |
java.lang.String |
toYearMonthDay(java.util.Calendar calendar)
Convert from a Calendar to a String representation of the YearMonthDay type. |
java.lang.String |
toYearMonthDay(java.util.Date date)
Convert from a Date to a String representation of the YearMonthDay type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static DataHelper INSTANCE
| Method Detail |
|---|
public java.lang.Object convert(Type type,
java.lang.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 convert
java.lang.IllegalArgumentException - if the value could not be convertedconvert(Property, Object)
public java.lang.Object convert(Property property,
java.lang.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 convert
java.lang.IllegalArgumentException - if the value could not be convertedconvert(Type, Object)public java.util.Calendar toCalendar(java.lang.String dateString)
DataHelper
toCalendar in interface DataHelperdateString - the String representation of an SDO date type
public java.util.Calendar toCalendar(java.lang.String dateString,
java.util.Locale locale)
DataHelper
toCalendar in interface DataHelperdateString - the String representation of an SDO date typelocale - the locale or null for default locale.
public java.util.Date toDate(java.lang.String dateString)
DataHelper
toDate in interface DataHelperdateString - the String representation of an SDO date type
public java.lang.String toDateTime(java.util.Date date)
DataHelper
toDateTime in interface DataHelperdate - the date
public java.lang.String toDateTime(java.util.Calendar calendar)
DataHelper
toDateTime in interface DataHelpercalendar - the calendar to convert
public java.lang.String toDay(java.util.Date date)
DataHelper
toDay in interface DataHelperdate - the date
public java.lang.String toDay(java.util.Calendar calendar)
DataHelper
toDay in interface DataHelpercalendar - the calendar to convert
public java.lang.String toDuration(java.util.Date date)
DataHelper
toDuration in interface DataHelperdate - the date
public java.lang.String toDuration(java.util.Calendar calendar)
DataHelper
toDuration in interface DataHelpercalendar - the calendar to convert
public java.lang.String toMonth(java.util.Date date)
DataHelper
toMonth in interface DataHelperdate - the date
public java.lang.String toMonth(java.util.Calendar calendar)
DataHelper
toMonth in interface DataHelpercalendar - the calendar to convert
public java.lang.String toMonthDay(java.util.Date date)
DataHelper
toMonthDay in interface DataHelperdate - the date
public java.lang.String toMonthDay(java.util.Calendar calendar)
DataHelper
toMonthDay in interface DataHelpercalendar - the calendar to convert
public java.lang.String toTime(java.util.Date date)
DataHelper
toTime in interface DataHelperdate - the date
public java.lang.String toTime(java.util.Calendar calendar)
DataHelper
toTime in interface DataHelpercalendar - the calendar to convert
public java.lang.String toYear(java.util.Date date)
DataHelper
toYear in interface DataHelperdate - the date
public java.lang.String toYear(java.util.Calendar calendar)
DataHelper
toYear in interface DataHelpercalendar - the calendar to convert
public java.lang.String toYearMonth(java.util.Date date)
DataHelper
toYearMonth in interface DataHelperdate - the date
public java.lang.String toYearMonth(java.util.Calendar calendar)
DataHelper
toYearMonth in interface DataHelpercalendar - the calendar to convert
public java.lang.String toYearMonthDay(java.util.Date date)
DataHelper
toYearMonthDay in interface DataHelperdate - the date
public java.lang.String toYearMonthDay(java.util.Calendar calendar)
DataHelper
toYearMonthDay in interface DataHelpercalendar - the calendar to convert
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||