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

All Superinterfaces:
DataType, org.eclipse.emf.ecore.EModelElement, org.eclipse.emf.ecore.ENamedElement, org.eclipse.emf.ecore.EObject, org.eclipse.emf.common.notify.Notifier, SQLDataType, SQLObject
All Known Subinterfaces:
ApproximateNumericDataType, BinaryStringDataType, BooleanDataType, CharacterStringDataType, DataLinkDataType, DateDataType, ExactNumericDataType, FixedPrecisionDataType, IntegerDataType, IntervalDataType, NumberDataType, NumericalDataType, TimeDataType, XMLDataType
All Known Implementing Classes:
PredefinedDataTypeImpl

public interface PredefinedDataType
extends SQLDataType

A representation of the model object 'Predefined Data Type'. 4.1 Data types A data type is a set of representable values. Every representable value belongs to at least one data type and some belong to several data types. [...] Every predefined data type is a subtype of itself and of no other data types. It follows that every predefined data type is a supertype of itself and of no other data types. The predefined data types are individually described in each of Subclause 4.2, "Character strings", through Subclause 4.6, "Datetimes and intervals". Row types, reference types and collection types are described in Subclause 4.8, "Row types", Subclause 4.9, "Reference types", Subclause 4.10, "Collection types", respectively. SQL defines predefined data types named by the following s: CHARACTER , CHARACTER VARYING , CHARACTER LARGE OBJECT , BINARY LARGE OBJECT , NUMERIC , DECIMAL , SMALLINT , INTEGER , BIGINT , FLOAT , REAL , DOUBLE PRECISION , BOOLEAN , DATE , TIME , TIMESTAMP , and INTERVAL . These names are used in the type designators that constitute the type precedence lists specified in Subclause 9.5, "Type precedence list determination".

The following features are supported:

See Also:
SQLDataTypesPackage.getPredefinedDataType()

Method Summary
 PrimitiveType getPrimitiveType()
          Returns the value of the 'Primitive Type' attribute.
 void setPrimitiveType(PrimitiveType value)
          Sets the value of the 'Primitive Type' attribute.
 
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

getPrimitiveType

public PrimitiveType getPrimitiveType()
Returns the value of the 'Primitive Type' attribute. The literals are from the enumeration PrimitiveType.

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

Returns:
the value of the 'Primitive Type' attribute.
See Also:
PrimitiveType, setPrimitiveType(PrimitiveType), SQLDataTypesPackage.getPredefinedDataType_PrimitiveType()

setPrimitiveType

public void setPrimitiveType(PrimitiveType value)
Sets the value of the 'Primitive Type' attribute.
Parameters:
value - the new value of the 'Primitive Type' attribute.
See Also:
PrimitiveType, getPrimitiveType()