public class DateTimeFieldHandler
extends org.exolab.castor.mapping.GeneralizedFieldHandler
xs:dateTime for the Joda time DateTime.
WARNING: Although this class is public, it should not be treated as part of the public API, as it might change in incompatible ways between releases (even patches).
NOTE: This class is referenced from Castor mapping files, so refactor with caution!
| Constructor and Description |
|---|
DateTimeFieldHandler()
Creates a new DateTimeFieldHandler instance
|
| Modifier and Type | Method and Description |
|---|---|
Object |
convertUponGet(Object value)
This method is used to convert the value when the getValue method is
called.
|
Object |
convertUponSet(Object value)
This method is used to convert the value when the setValue method is
called.
|
Class<org.joda.time.DateTime> |
getFieldType()
Returns the class type for the field that this GeneralizedFieldHandler
converts to and from.
|
Object |
newInstance(Object parent)
Creates a new instance of the object described by this field.
|
getValue, newInstance, resetValue, setCollectionIteration, setFieldHandler, setValuegetFieldDescriptor, hasValue, setConfiguration, setFieldDescriptorpublic DateTimeFieldHandler()
public Object convertUponGet(Object value)
convertUponGet in class org.exolab.castor.mapping.GeneralizedFieldHandlervalue - the object value to convert after performing a get operationpublic Object convertUponSet(Object value)
convertUponSet in class org.exolab.castor.mapping.GeneralizedFieldHandlervalue - the object value to convert before performing a set operationpublic Class<org.joda.time.DateTime> getFieldType()
getFieldType in class org.exolab.castor.mapping.GeneralizedFieldHandlerpublic Object newInstance(Object parent) throws IllegalStateException
newInstance in interface org.exolab.castor.mapping.FieldHandlernewInstance in class org.exolab.castor.mapping.GeneralizedFieldHandlerparent - The object for which the field is createdIllegalStateException - This field is a simple type and cannot be instantiatedCopyright © 2006–2017 Esito AS. All rights reserved.