|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.oreodata.metadata.Field | +--org.oreodata.metadata.DateField
A descriptor for a field that holds a date or timestamp (probably a misnomer, should be called TimeStampField)
Field Summary |
Fields inherited from class org.oreodata.metadata.Field |
defaultValueString, intern, properties, sqlType |
Constructor Summary | |
DateField()
|
Method Summary | |
java.lang.Object |
convertToJDBC(java.lang.Object o)
Method to support persisting records to a JDBC record set. |
java.lang.Object |
defaultValue()
returns this field's "default value". |
java.lang.Object |
getCopy(java.lang.Object o)
Used when encapsulation requires Record::get() to return a clone of an object. |
java.lang.Class |
getJavaType()
The kind of java object that can live in this record field. |
java.lang.Object |
getObjectFromString(Record rec,
java.lang.String value)
method is synchronized because DateFormat is not thread-safe. |
protected void |
init(org.w3c.dom.Element element)
|
protected void |
processDefaultValue()
|
java.lang.String |
valueToString(java.lang.Object o)
synchronized because DateFormat is not synchronized |
Methods inherited from class org.oreodata.metadata.Field |
checkValidValue, convertFromJDBC, createSAXHandler, getLocalizedName, getName, getProperty, getSQLType, hashCode, intern, isFieldOf, isRequired, isSetExternally, normalize, processNormalization, processProperties, setDefaultValue, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public DateField()
Method Detail |
protected void init(org.w3c.dom.Element element) throws org.xml.sax.SAXException
init
in class Field
org.xml.sax.SAXException
protected void processDefaultValue() throws java.io.IOException
processDefaultValue
in class Field
java.io.IOException
public java.lang.Class getJavaType()
FieldDescriptor
getJavaType
in interface FieldDescriptor
getJavaType
in class Field
public java.lang.Object defaultValue()
FieldDescriptor
defaultValue
in interface FieldDescriptor
defaultValue
in class Field
public java.lang.Object getObjectFromString(Record rec, java.lang.String value) throws MangledDataException
MangledDataException
public java.lang.Object getCopy(java.lang.Object o)
FieldDescriptor
getCopy
in interface FieldDescriptor
getCopy
in class Field
public java.lang.String valueToString(java.lang.Object o)
valueToString
in interface FieldDescriptor
valueToString
in class Field
public java.lang.Object convertToJDBC(java.lang.Object o)
FieldDescriptor
convertToJDBC
in interface FieldDescriptor
convertToJDBC
in class Field
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |