Package lumis.doui.source.field.type
Class DateDataType
- java.lang.Object
-
- lumis.doui.datatype.AbstractDouiDataType
-
- lumis.doui.source.field.type.AbstractSourceFieldDataType
-
- lumis.doui.source.field.type.DateDataType
-
- All Implemented Interfaces:
IDouiDataType
,ISourceFieldDataType
public class DateDataType extends AbstractSourceFieldDataType
A date data type. Keeps only date information, does not keep time information.- Since:
- 4.0.4
- Version:
- $Revision: 13956 $ $Date: 2012-01-24 13:57:25 -0200 (Tue, 24 Jan 2012) $
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DateDataType.Data
-
Constructor Summary
Constructors Constructor Description DateDataType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected IConverter
createConverter()
Creates the converter instance that will be used by this data type.String
getDefaultInputControlType()
Returns the default input control type for this data type.String
getDefinitionPattern()
Returns the pattern to be used to parse the values of this data type in a definition xml file.String
getId()
Returns the id for this data type.String
getQueryDataType()
Returns aQueryFieldTypes
constant for a query data type the value of this source field data type is best suited to be kept in.Class<DateDataType.Data>
getValueClass()
Returns the value class for data of this type.-
Methods inherited from class lumis.doui.source.field.type.AbstractSourceFieldDataType
getDocumentFieldValues, getDocumentTypeFieldTemplates, init
-
Methods inherited from class lumis.doui.datatype.AbstractDouiDataType
equals, getConverter, getDefaultFilterControlType, getDefaultViewControlType, getDefinitionLocale, hashCode, isComplexDataType, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface lumis.doui.datatype.IDouiDataType
getConverter, getDefaultFilterControlType, getDefaultViewControlType, getDefinitionLocale, isComplexDataType
-
Methods inherited from interface lumis.doui.source.field.type.ISourceFieldDataType
postAdd, postDelete, postUpdate, preAdd, preDelete, preUpdate
-
-
-
-
Method Detail
-
getId
public String getId()
Description copied from interface:IDouiDataType
Returns the id for this data type.- Specified by:
getId
in interfaceIDouiDataType
- Specified by:
getId
in classAbstractDouiDataType
- Returns:
- the id for this data type.
-
getQueryDataType
public String getQueryDataType()
Description copied from interface:ISourceFieldDataType
Returns aQueryFieldTypes
constant for a query data type the value of this source field data type is best suited to be kept in.- Specified by:
getQueryDataType
in interfaceISourceFieldDataType
- Specified by:
getQueryDataType
in classAbstractSourceFieldDataType
- Returns:
- a
QueryFieldTypes
constant.
-
createConverter
protected IConverter createConverter()
Description copied from class:AbstractDouiDataType
Creates the converter instance that will be used by this data type.- Overrides:
createConverter
in classAbstractDouiDataType
- Returns:
- the converter instance.
-
getValueClass
public Class<DateDataType.Data> getValueClass()
Description copied from interface:IDouiDataType
Returns the value class for data of this type.- Specified by:
getValueClass
in interfaceIDouiDataType
- Overrides:
getValueClass
in classAbstractDouiDataType
- Returns:
- the value class for data of this type.
-
getDefaultInputControlType
public String getDefaultInputControlType()
Description copied from interface:IDouiDataType
Returns the default input control type for this data type.- Specified by:
getDefaultInputControlType
in interfaceIDouiDataType
- Overrides:
getDefaultInputControlType
in classAbstractDouiDataType
- Returns:
- the default input control type for this data type, or null if this data type has no default input control type.
-
getDefinitionPattern
public String getDefinitionPattern()
Description copied from class:AbstractDouiDataType
Returns the pattern to be used to parse the values of this data type in a definition xml file.This generic implementation returns
null
.- Specified by:
getDefinitionPattern
in interfaceIDouiDataType
- Overrides:
getDefinitionPattern
in classAbstractDouiDataType
- Returns:
- the pattern for definition values.
-
-