- 1、本文档共32页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
数据库设计ChapDatabaseDesign演示文件修改版
Example: Map Class Behavior to Stored Procedures Class Candidate Operations getTuition addSchedule getSchedule deleteSchedule getStudentID getName getAddress Example: Map Class Behavior to Stored Procedures Associations between two persistent objects are realized as foreign keys to the associated objects. A foreign key is a column in one table which contains the primary key value of the associated object. Assume we have the above association between Course and CourseOffering. When we map this into relational tables, we get a Course table and a Course Offering table. The Course Offering table will have columns for attributes listed, plus an additional Course_ID column which contains foreign-key references to the primary key of associated rows in the Course table. For a given Course Offering, the Course_ID column will contain the identifier of the Course with which the Course Offering is associated. Foreign keys allow the RDBMS to join related information together. Note: the Number attribute of the Course class is a String. For optimal performance, it is best to convert this to a number in the database schema (queries and joins work faster on numbers than strings, since number comparisons are faster in general than string comparisons). Aggregation is also modeled using foreign key relationships. Assume we have the above aggregation between Student and Schedule. (Note: This is modeled as a composition, but remember that composition is a non-shared aggregation). When we map this into relational tables, we get an Student table and a Schedule table. The Schedule table will have columns for attributes listed, plus an additional column for Student_ID which contains foreign-key references to associated rows in the Student table. For a given Schedule, the Student_ID column will contain the Student_ID of the Student that the Schedule is associated with. Foreign keys allow the RDBMS to join related information together. In addition, to provide referential integrity i
您可能关注的文档
- 数学:《导数在研究函数中的应用最大(小)值》幻灯片(新人教A版选修).ppt
- 数学:《二项分布及其应用》幻灯片(新人教A版选修).ppt
- 数学高考总复习重点精品幻灯片: 几何证明选讲 张.ppt
- 数学高考总复习重点精品幻灯片: 用向量方法求角与距离(理) 张.ppt
- 数学物理方程幻灯片 一些典型方程和定解条件的推导.ppt
- 数学:《利用二分法求方程近似解》幻灯片(新人教版A必修).ppt
- 数学:《导数的概念》幻灯片(苏教版选修).ppt
- 数学高考总复习重点精品幻灯片: 空间几何体的结构特征及其直观图三视图 张.ppt
- 数学:《导数的计算》幻灯片(新人教A版选修)gaoer.ppt
- 数学:《独立重复试验与二项分布》幻灯片(新人教A版选修).ppt
- 房地产行业研究:地产数据维持底部盘整,部分房企率先业绩好转.pdf
- 医药健康行业研究:持续看好创新药,关注头部pharma转型成果.pdf
- (推荐!)汉语拼音6 j q x【精华版·教案版】.pptx
- (推荐!)最新国家开放大学国开电大《管理英语4》单元自测1-8参考答案.docx
- (推荐!)汉语拼音6 j q x 课课练.pptx
- (推荐!)汉语拼音8 zh ch sh r 课课练.pptx
- (推荐!)汉语拼音9 y w 课课练.pptx
- (推荐!)汉语拼音3 b p m f 课课练.pptx
- (推荐!)最新国家开放大学国开电大《思想道德与法治》终考任务—大作业参考答案.docx
- (推荐!)汉语拼音7 z c s 课课练.pptx
文档评论(0)