PATTERNS OF DATA MODELING- P39

PATTERNS OF DATA MODELING- P39: Models provide the means for building quality software in a predictable manner. Models let developers think deeply about software and cope with large size and complexity. Developers can think abstractly before becoming enmeshed in the details of writing code. Although models are beneficial, they can be difficult to construct. That is where patterns come in. Patterns provide building blocks that help developers construct models faster and better. | Softcoding Variations 177 EntityType Attribute EnumValue entityTypeID attributeID entityTypeName dataType maxLength minMultiplicity maxMultiplicity - - d entityTypeID FK attributeName sequenceNumber defaultUnitOfMeasureID FK enumValueID valueInteger valueDecimal valueString valueDateTime attributeID FK sequenceNumber ----V------------------- I I I Entity entityID logicalIdentifier entityTypeID FK SoftcodedValue valueID valueInteger valueDecimal valueString valueDateTime dateOfEntry entityID FK attributeID FK overrideUOMID FK dataSourceID FK I UnitOfMeasure 1 __I__ unitOfMeasureID unitOfMeasName DataSource dataSourceID dataSourceName Figure Softcoded values add value metadata IDEF1X model. Cut Metadata A simplification is to forego metadata. This is essentially what the UML does with tagged values. Figure and Figure show the corresponding revision. In essence the model stores values without metadata. The advantage of omitting metadata is simplicity. The downside is that the values are less structured less controlled and more vulnerable to errors. This approach can be useful for a small amount of miscellaneous data but is not suitable for large quantities. Entity 1 SoftcodedValue logicalIdentifier valueInteger valueDecimal valueString valueDateTime attributeName Figure Softcoded values cut metadata UML model. 178 Chapter 13 Softcoded Values Entity SoftcodedValue entitylD - -e valuelD logicalldentifier valuelnteger valueDecimal valueString valueDateTime attributeName entitylD FK Figure Softcoded values cut metadata IDEF1X model. Store All SoftcodedValues as Strings Figure and Figure show the option of storing all values as strings and converting them to the appropriate data type upon access. This simplifies the model at the cost of type conversions. Type conversions complicate programming and can introduce round-off errors. .

Không thể tạo bản xem trước, hãy bấm tải xuống
TỪ KHÓA LIÊN QUAN
TÀI LIỆU MỚI ĐĂNG
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.