org.eclipse.wst.rdb.internal.models.sql.datatypes
Interface TimeDataType

All Superinterfaces:
DataType, org.eclipse.emf.ecore.EModelElement, org.eclipse.emf.ecore.ENamedElement, org.eclipse.emf.ecore.EObject, org.eclipse.emf.common.notify.Notifier, PredefinedDataType, SQLDataType, SQLObject
All Known Implementing Classes:
TimeDataTypeImpl

public interface TimeDataType
extends PredefinedDataType

A representation of the model object 'Time Data Type'. 4.6.1 Datetimes Table 2, "Fields in datetime values" , specifies the fields that can make up a datetime value; a datetime value is made up of a subset of those fields. Not all of the fields shown are required to be in the subset, but every field that appears in the table between the first included primary field and the last included primary field shall also be included. If either time zone field is in the subset, then both of them shall be included. There is an ordering of the significance of s. This is, from most significant to least significant: YEAR , MONTH , DAY , HOUR , MINUTE , and SECOND . The s other than SECOND contain non-negative integer values, constrained by the natural rules for dates using the Gregorian calendar. SECOND , however, can be defined to have a

The following features are supported:

See Also:
SQLDataTypesPackage.getTimeDataType()

Method Summary
 int getFractionalSecondsPrecision()
          Returns the value of the 'Fractional Seconds Precision' attribute.
 boolean isTimeZone()
          Returns the value of the 'Time Zone' attribute.
 void setFractionalSecondsPrecision(int value)
          Sets the value of the 'Fractional Seconds Precision' attribute.
 void setTimeZone(boolean value)
          Sets the value of the 'Time Zone' attribute.
 
Methods inherited from interface org.eclipse.wst.rdb.internal.models.sql.datatypes.PredefinedDataType
getPrimitiveType, setPrimitiveType
 
Methods inherited from interface org.eclipse.wst.rdb.internal.models.sql.datatypes.DataType
setContainer
 
Methods inherited from interface org.eclipse.wst.rdb.internal.models.sql.schema.SQLObject
addEAnnotation, addEAnnotationDetail, getDependencies, getDescription, getEAnnotation, getEAnnotationDetail, getLabel, removeEAnnotationDetail, setAnnotationDetail, setDescription, setLabel
 
Methods inherited from interface org.eclipse.emf.ecore.ENamedElement
getName, setName
 
Methods inherited from interface org.eclipse.emf.ecore.EModelElement
getEAnnotations
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 

Method Detail

getFractionalSecondsPrecision

public int getFractionalSecondsPrecision()
Returns the value of the 'Fractional Seconds Precision' attribute.

If the meaning of the 'Fractional Seconds Precision' attribute isn't clear, there really should be more of a description here...

Returns:
the value of the 'Fractional Seconds Precision' attribute.
See Also:
setFractionalSecondsPrecision(int), SQLDataTypesPackage.getTimeDataType_FractionalSecondsPrecision()

setFractionalSecondsPrecision

public void setFractionalSecondsPrecision(int value)
Sets the value of the 'Fractional Seconds Precision' attribute.
Parameters:
value - the new value of the 'Fractional Seconds Precision' attribute.
See Also:
getFractionalSecondsPrecision()

isTimeZone

public boolean isTimeZone()
Returns the value of the 'Time Zone' attribute. The default value is "false".

If the meaning of the 'Time Zone' attribute isn't clear, there really should be more of a description here...

Returns:
the value of the 'Time Zone' attribute.
See Also:
setTimeZone(boolean), SQLDataTypesPackage.getTimeDataType_TimeZone()

setTimeZone

public void setTimeZone(boolean value)
Sets the value of the 'Time Zone' attribute.
Parameters:
value - the new value of the 'Time Zone' attribute.
See Also:
isTimeZone()