|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.castor.mapping.loader.FieldHandlerFriend
org.exolab.castor.mapping.ExtendedFieldHandler
org.exolab.castor.mapping.AbstractFieldHandler
org.exolab.castor.mapping.GeneralizedFieldHandler
org.exolab.castor.xml.handlers.SQLTimestampFieldHandler
public class SQLTimestampFieldHandler
An implementation of GeneralizedFieldHandler for java.sql.Timestamp
FieldDescriptor
,
FieldHandler
Constructor Summary | |
---|---|
SQLTimestampFieldHandler()
Creates a new SQLTimestampFieldHandler |
Method Summary | |
---|---|
java.lang.Object |
convertUponGet(java.lang.Object value)
This method is used to convert the value when the getValue method is called. |
java.lang.Object |
convertUponSet(java.lang.Object value)
This method is used to convert the value when the setValue method is called. |
java.lang.Class |
getFieldType()
Returns the class type for the field that this GeneralizedFieldHandler converts to and from. |
java.lang.Object |
newInstance(java.lang.Object parent)
Creates a new instance of the object described by this field. |
Methods inherited from class org.exolab.castor.mapping.GeneralizedFieldHandler |
---|
getValue, newInstance, resetValue, setCollectionIteration, setFieldHandler, setValue |
Methods inherited from class org.exolab.castor.mapping.AbstractFieldHandler |
---|
getFieldDescriptor, hasValue, setFieldDescriptor |
Methods inherited from class org.exolab.castor.mapping.ExtendedFieldHandler |
---|
checkValidity |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SQLTimestampFieldHandler()
Method Detail |
---|
public java.lang.Object convertUponGet(java.lang.Object value)
convertUponGet
in class GeneralizedFieldHandler
value
- the object value to convert after performing a get
operation
public java.lang.Object convertUponSet(java.lang.Object value)
convertUponSet
in class GeneralizedFieldHandler
value
- the object value to convert before performing a set
operation
public java.lang.Class getFieldType()
getFieldType
in class GeneralizedFieldHandler
public java.lang.Object newInstance(java.lang.Object parent) throws java.lang.IllegalStateException
newInstance
in interface FieldHandler
newInstance
in class GeneralizedFieldHandler
parent
- The object for which the field is created
java.lang.IllegalStateException
- This field is a simple type and
cannot be instantiated
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |