biz.c24.io.api.data
Class DateDataType

java.lang.Object
  extended by biz.c24.io.api.data.DataType
      extended by biz.c24.io.api.data.SimpleDataType
          extended by biz.c24.io.api.data.AtomicDataType
              extended by biz.c24.io.api.data.DateDataType
All Implemented Interfaces:
ModelComponent, Serializable
Direct Known Subclasses:
GenericDateDataType, ISO8601DataType, SQLDateDataType, SQLTimeDataType, SQLTimestampDataType

public abstract class DateDataType
extends AtomicDataType

A simple data type representing a Date.

Warning: Serialized objects of this class or of a deployed class which is derived from it may not be compatible with future releases of C24 Integreation Objects. The current serialization support is appropriate for short term storage or RMI between applications running the same version of C24 Integreation Objects.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class biz.c24.io.api.data.AtomicDataType
AtomicDataType.FinalEnum
 
Field Summary
 
Fields inherited from class biz.c24.io.api.data.DataType
duringParsing, hasEnumerations, hasPatternMatching, qualifierValidation
 
Method Summary
abstract  Object createObject(Date value)
          Creates and returns a new date with the specified value.
abstract  Object createObject(long value)
          Creates and returns a new date with the specified value.
abstract  Object createObject(long value, TimeZone timeZone)
          Creates and returns a new date with the specified value.
 int getMaxSize()
          Returns the maximum allowable size of the value.
 int getMinSize()
          Returns the minimum allowable size of the value.
 Class getValidObjectClass()
          Returns the class of valid objects of this type.
abstract  boolean isDate()
          Returns whether this type allows date components (e.g. yyyy-MM-dd).
abstract  boolean isISO8601Based()
           
abstract  boolean isTime()
          Returns whether this type allows time components (e.g.
 
Methods inherited from class biz.c24.io.api.data.AtomicDataType
formatObject, formatObjectOverride, getFinal, getLocale, getPad, getPadAmount, getPadJustification, getWhiteSpace, parseObject, setFinal, setLocale, setPad, setPadAmount, setPadJustification, setWhiteSpace
 
Methods inherited from class biz.c24.io.api.data.SimpleDataType
formatObject, formatObjectExternal, getInstance, getMaxExclusive, getMaxInclusive, getMinExclusive, getMinInclusive, isComplex, isSimple, isSizeFixed, parseObject, parseObjectExternal, setMaxExclusive, setMaxInclusive, setMinExclusive, setMinInclusive, validateProperties
 
Methods inherited from class biz.c24.io.api.data.DataType
addDerivedType, addValidator, addValidator, derivedTypeKeySet, getAnnotation, getDatabaseColumnName, getDerivedType, getDerivedType, getDerivedTypes, getDescription, getEnumeration, getInitiator, getModel, getName, getNullDefiningElementDecl, getOriginalName, getOriginalPatternMatch, getPatternMatch, getPatternType, getTerminator, getValidator, getValidatorCount, getValidatorIndex, hasDerivedTypes, isLocal, isValidObjectClass, removeDerivedType, removeValidator, setAnnotation, setDatabaseColumnName, setInitiator, setLocal, setModel, setName, setOriginalName, setOriginalPatternMatch, setPatternMatch, setPatternType, setTerminator, toString, validate, validateProperties, validateProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

isDate

public abstract boolean isDate()
Returns whether this type allows date components (e.g. yyyy-MM-dd).

Returns:
Whether date components are allowed.

isTime

public abstract boolean isTime()
Returns whether this type allows time components (e.g. HH-mm-ss).

Returns:
Whether time components are allowed.

createObject

public abstract Object createObject(Date value)
Creates and returns a new date with the specified value.

Parameters:
value - The value.
Returns:
The new date (not necessarily a java.util.Date).

createObject

public abstract Object createObject(long value)
Creates and returns a new date with the specified value.

Parameters:
value - The value.
Returns:
The new date (not necessarily a java.util.Date).

createObject

public abstract Object createObject(long value,
                                    TimeZone timeZone)
Creates and returns a new date with the specified value.

Parameters:
value - The value.
timeZone - The time zone.
Returns:
The new date (not necessarily a java.util.Date).

getMinSize

public int getMinSize()
Description copied from class: SimpleDataType
Returns the minimum allowable size of the value.

Overrides:
getMinSize in class SimpleDataType
Returns:
The minimum size.

getMaxSize

public int getMaxSize()
Description copied from class: SimpleDataType
Returns the maximum allowable size of the value.

Overrides:
getMaxSize in class SimpleDataType
Returns:
The maximum size or -1 if the size is unbounded.

getValidObjectClass

public Class getValidObjectClass()
Description copied from class: DataType
Returns the class of valid objects of this type.

Overrides:
getValidObjectClass in class SimpleDataType
Returns:
The class.

isISO8601Based

public abstract boolean isISO8601Based()


C24 Technologies © 2002-2012: All Rights Reserved.