Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [dtp-dev] SQL Model Question - Column Data Types


Hi Rob,

referenceType returns UserDefinedType and containedType returns SQLDataType(superclass of PredefinedDataType). both referenceType and containedType are XOR.

DataType is superclass of SQLDataType and UserDefinedDataType. the convenience method get/setDataType
on Column wraps both referenceType and containedType so that the user can only think it terms of DataType
when manipulating datatype of a column.

pl refer TypedElement diagram in Schema package.

hope that helps,

- Hemant



rcernich@xxxxxxxxxx
Sent by: dtp-dev-bounces@xxxxxxxxxxx

09/07/2006 05:32 PM

Please respond to
DTP development mailing list <dtp-dev@xxxxxxxxxxx>

To
dtp-dev@xxxxxxxxxxx
cc
Subject
[dtp-dev] SQL Model Question - Column Data Types






Hey all,

I've got another SQL model question.

In the column element, what is the distinction between DataType,
ReferenceType and ContainedType?

My assumption would be that the ReferenceType should be a
ReferenceDataType, ContainedType would be a PredefinedDataType and DataType
would be a UserDefinedDataType?  However, ReferenceType is a
UserDefinedType, which is not a parent of ReferenceDataType;  ContainedType
could be either a ReferenceDataType or a PredefinedDataType; and DataType
could be any of the three.

Thanks in advance for any insight.

Rob

_______________________________________________
dtp-dev mailing list
dtp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/dtp-dev


Back to the top