biz.c24.io.api.data
Class SQLTimeDataType

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
                  extended by biz.c24.io.api.data.SQLTimeDataType
All Implemented Interfaces:
ModelComponent, Serializable

public class SQLTimeDataType
extends DateDataType

A simple data type representing a SQL time.

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:
Time, 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
 
Constructor Summary
SQLTimeDataType()
          Constructs a new instance.
 
Method Summary
 Object createObject(Date value)
          Creates and returns a new date with the specified value.
 Object createObject(long value)
          Creates and returns a new date with the specified value.
 Object createObject(long value, TimeZone timeZone)
          Creates and returns a new date with the specified value.
 String formatObjectOverride(Object obj)
           
static DataType getInstance()
          Returns a singleton instance.
 Object getMaxExclusive()
          Returns the maximum exclusive value (optional operation).
 Object getMaxInclusive()
          Returns the maximum inclusive value (optional operation).
 Object getMinExclusive()
          Returns the minimum exclusive value (optional operation).
 Object getMinInclusive()
          Returns the minimum inclusive value (optional operation).
 Class getValidObjectClass()
          Returns the class of valid objects of this type.
 boolean isDate()
          Returns whether this type allows date components (e.g. yyyy-MM-dd).
 boolean isISO8601Based()
           
 boolean isTime()
          Returns whether this type allows time components (e.g.
 void setMaxExclusive(Object maxExclusive)
          Sets the maximum exclusive value (optional operation).
 void setMaxInclusive(Object maxInclusive)
          Sets the maximum inclusive value (optional operation).
 void setMinExclusive(Object minExclusive)
          Sets the minimum exclusive value (optional operation).
 void setMinInclusive(Object minInclusive)
          Sets the minimum inclusive value (optional operation).
 
Methods inherited from class biz.c24.io.api.data.DateDataType
getMaxSize, getMinSize
 
Methods inherited from class biz.c24.io.api.data.AtomicDataType
formatObject, 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, isComplex, isSimple, isSizeFixed, parseObject, parseObjectExternal, 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
 

Constructor Detail

SQLTimeDataType

public SQLTimeDataType()
Constructs a new instance.

Method Detail

getInstance

public static DataType getInstance()
Returns a singleton instance.

Returns:
A singleton.

getMaxInclusive

public Object getMaxInclusive()
Description copied from class: SimpleDataType
Returns the maximum inclusive value (optional operation).

Overrides:
getMaxInclusive in class SimpleDataType
Returns:
The maximum inclusive value.

setMaxInclusive

public void setMaxInclusive(Object maxInclusive)
Description copied from class: SimpleDataType
Sets the maximum inclusive value (optional operation).

Overrides:
setMaxInclusive in class SimpleDataType
Parameters:
maxInclusive - The maximum inclusive value.

getMinInclusive

public Object getMinInclusive()
Description copied from class: SimpleDataType
Returns the minimum inclusive value (optional operation).

Overrides:
getMinInclusive in class SimpleDataType
Returns:
The minimum inclusive value.

setMinInclusive

public void setMinInclusive(Object minInclusive)
Description copied from class: SimpleDataType
Sets the minimum inclusive value (optional operation).

Overrides:
setMinInclusive in class SimpleDataType
Parameters:
minInclusive - The minimum inclusive value.

getMaxExclusive

public Object getMaxExclusive()
Description copied from class: SimpleDataType
Returns the maximum exclusive value (optional operation).

Overrides:
getMaxExclusive in class SimpleDataType
Returns:
The maximum exclusive value.

setMaxExclusive

public void setMaxExclusive(Object maxExclusive)
Description copied from class: SimpleDataType
Sets the maximum exclusive value (optional operation).

Overrides:
setMaxExclusive in class SimpleDataType
Parameters:
maxExclusive - The maximum exclusive value.

getMinExclusive

public Object getMinExclusive()
Description copied from class: SimpleDataType
Returns the minimum exclusive value (optional operation).

Overrides:
getMinExclusive in class SimpleDataType
Returns:
The minimum exclusive value.

setMinExclusive

public void setMinExclusive(Object minExclusive)
Description copied from class: SimpleDataType
Sets the minimum exclusive value (optional operation).

Overrides:
setMinExclusive in class SimpleDataType
Parameters:
minExclusive - The minimum exclusive value.

createObject

public Object createObject(Date value)
Description copied from class: DateDataType
Creates and returns a new date with the specified value.

Specified by:
createObject in class DateDataType
Parameters:
value - The value.
Returns:
The new date (not necessarily a java.util.Date).

createObject

public Object createObject(long value)
Description copied from class: DateDataType
Creates and returns a new date with the specified value.

Specified by:
createObject in class DateDataType
Parameters:
value - The value.
Returns:
The new date (not necessarily a java.util.Date).

createObject

public Object createObject(long value,
                           TimeZone timeZone)
Description copied from class: DateDataType
Creates and returns a new date with the specified value.

Specified by:
createObject in class DateDataType
Parameters:
value - The value.
timeZone - The time zone.
Returns:
The new date (not necessarily a java.util.Date).

getValidObjectClass

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

Overrides:
getValidObjectClass in class DateDataType
Returns:
The class.

formatObjectOverride

public String formatObjectOverride(Object obj)
Specified by:
formatObjectOverride in class AtomicDataType

isDate

public boolean isDate()
Description copied from class: DateDataType
Returns whether this type allows date components (e.g. yyyy-MM-dd).

Specified by:
isDate in class DateDataType
Returns:
Whether date components are allowed.

isTime

public boolean isTime()
Description copied from class: DateDataType
Returns whether this type allows time components (e.g. HH-mm-ss).

Specified by:
isTime in class DateDataType
Returns:
Whether time components are allowed.

isISO8601Based

public final boolean isISO8601Based()
Specified by:
isISO8601Based in class DateDataType


C24 Technologies © 2002-2012: All Rights Reserved.