Sybase PowerDesigner
Object-Oriented Model Report
Model: LcssCdm
Report:
Author: Administrator
Version:
Date: 2011/4/10
Summary:
Object-Oriented Model LcssCdm
Report
Table of Contents
The 'Table of Contents' field needs to be updated!
Sybase PowerDesigner 2011/4/10 Page 2 of 32
Object-Oriented Model LcssCdm
I Specifications
Insert specifications here...
PowerDesigner 2011/4/10 Page 3
Object-Oriented Model LcssCdm
II Model information
II.1 Card of the model LcssCdm
Name Code Comment
LcssCdm LcssCdm PowerDesigner 2011/4/10 Page 4
Object-Oriented Model LcssCdm
III OOM Diagrams
III.1 Model level diagrams
III.1.1 Diagram Diagram_1
图册+图书_ID: int+图册编号: java.lang.String+图册状态: int0..1++++读者借阅记录借阅_ID借阅时间归还时间借阅状态: int: java.util.Date: java.util.Date: int0..*+++++++++读者_ID姓名性别出生年月证件名称证件号码电话登记日期操作员: int: java.lang.String: java.lang.String: java.util.Date: java.lang.String: java.lang.String: long: java.util.Date: java.lang.String0..10..*0..*图书作者0..1图书++++++++++++图书_ID书名ISBN图书类型价格页数现存量所放位置库存总量入库日期操作员借阅次数: int: java.lang.String: java.lang.String: java.lang.String: double: int: int: java.lang.String: int: java.util.Date: java.lang.String: int++++++作者_ID姓名联系地址邮政编码联系电话电子邮箱+作者排序: int作者: int: java.lang.String: java.lang.String: java.lang.String: java.lang.String: java.lang.String0..*图书作者0..*图书作者+++++出版社_ID出版社名称地址联系人联系电话出版社0..1: int: java.lang.String: java.lang.String: java.lang.String: java.lang.String0..*
PowerDesigner 2011/4/10 Page 5
Object-Oriented Model LcssCdm
IV Common objects
IV.1 Associations
IV.1.1 IV.1.1.1
Name Relationship_1 Relationship_2 Relationship_3 Relationship_4 图书作者
Model level associations Association list
Code relationship1 relationship2 relationship3 relationship4 Class B Class A Role A Role B MultiplicMultiplicity A ity B 0..1 0..* 0..1 0..1 0..1 0..* 0..* 0..* 0..* 借阅记录 读者 借阅记录 图册 图册 图书 图书 出版社 图书 图书作者 作者 图书作者 图书作者 0..* IV.1.1.2
IV.1.1.2.1
Name Code Class B Class A Association Relationship_1
Card of the association Relationship_1
Relationship_1 relationship1 借阅记录 读者 0..1 0..* Role A Role B Multiplicity A Multiplicity B
IV.1.1.2.2 Extended attributes list of association Relationship_1
Value Object-Oriented Model LcssCdm IV.1.1.3 IV.1.1.3.1 Name Code Class B Class A Association Relationship_2 Card of the association Relationship_2 Relationship_2 relationship2 借阅记录 图册 0..1 0..* Role A Role B Multiplicity A Multiplicity B IV.1.1.3.2 Extended attributes list of association Relationship_2 Value ContainerImplementation IV.1.1.4 IV.1.1.4.1 Name Code Class B Class A Association Relationship_3 Card of the association Relationship_3 Relationship_3 relationship3 图册 图书 0..1 0..* Role A Role B Multiplicity A Multiplicity B IV.1.1.4.2 Extended attributes list of association Relationship_3 Value Object-Oriented Model LcssCdm roleBContainer roleBImplementationClass entation ObjectContainer ContainerImplementation java.util.Collection java.util.HashSet Java Java IV.1.1.5 IV.1.1.5.1 Name Code Class B Class A Association Relationship_4 Card of the association Relationship_4 Relationship_4 relationship4 图书 出版社 0..1 0..* Role A Role B Multiplicity A Multiplicity B IV.1.1.5.2 Extended attributes list of association Relationship_4 Value ContainerImplementation IV.1.1.6 IV.1.1.6.1 Name Code Class B Class A Role A Role B Association 图书作者 Card of the association 图书作者 图书作者 图书作者 作者 图书 图书作者 图书作者 PowerDesigner 2011/4/10 Page 8 Object-Oriented Model LcssCdm Multiplicity A Multiplicity B 0..* 0..* IV.1.1.6.2 Extended attributes list of association 图书作者 Data Type ObjectContainer Value java.util.Collection java.util.HashSet java.util.Collection java.util.HashSet Target Name Java Java Java Java Name roleAContainer roleAImplementationClass ContainerImplementation roleBContainer ObjectContainer roleBImplementationClass ContainerImplementation PowerDesigner 2011/4/10 Page 9 Object-Oriented Model LcssCdm V Class diagrams objects V.1 Classes V.1.1 Model level classes V.1.1.1 Class list Name 作者 借阅记录 出版社 图书 图书作者 图册 读者 Code 作者 借阅记录 出版社 图书 图书作者 图册 读者 Parent Object-Oriented Model 'LcssCdm' Object-Oriented Model 'LcssCdm' Object-Oriented Model 'LcssCdm' Object-Oriented Model 'LcssCdm' Object-Oriented Model 'LcssCdm' Object-Oriented Model 'LcssCdm' Object-Oriented Model 'LcssCdm' Generate Visibility Abstract TRUE TRUE TRUE TRUE TRUE TRUE TRUE public public public public public public public FALSE FALSE FALSE FALSE FALSE FALSE FALSE Classifier Type Class Class Class Class Class Class Class V.1.1.2 Class attribute list Name 图书_ID 书名 ISBN 图书类Code 图书Id 书名 isbn 图书类Displayed TRUE TRUE TRUE TRUE Data Type Object-Oriented Model LcssCdm 型 价格 页数 型 价格 页数 TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE Object-Oriented Model LcssCdm 借阅时间 归还时间 借阅状态 出版社_ID 出版社名称 地址 借阅时间 归还时间 借阅状态 出版社Id 出版社名称 地址 TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE Object-Oriented Model LcssCdm 态 作者排序 态 作者排序 TRUE Name Identifier_1 Identifier_1 Identifier_1 Identifier_1 Identifier_1 Identifier_1 Code Identifier_1 Identifier_1 Identifier_1 Identifier_1 Identifier_1 Identifier_1 Class '图书' Class '读者' Parent Class '借阅记录' Class '出版社' Class '作者' Class '图册' V.1.1.4 Class 作者 V.1.1.4.1 Code preview of class 作者 /*********************************************************************** * Module: 作者.java * Author: Administrator * Purpose: Defines the Class 作者 ***********************************************************************/ import java.util.*; /** @pdOid c1fba980-6f60-4ee1-bc2a-c8019e9b0b00 */ public class 作者 { /** @pdOid 3331239d-6302-49d7-92c8-e3a2c81e92d5 */ public int 作者Id; /** @pdOid 47279e37-8f2d-4483-9c38-91994b2c4be8 */ public java.lang.String 姓名; /** @pdOid 4299d2d6-a442-4302-8bfa-dc6e25840de7 */ public java.lang.String 联系地址; /** @pdOid 2e2f530e-ade5-49f7-a1db-77b8077354dd */ public java.lang.String 邮政编码; /** @pdOid 97ae4f23-bd58-45b2-8c45-c666a4e8b75f */ public java.lang.String 联系电话; /** @pdOid 78309f91-7af2-4410-89d4-d0f8bdfe570c */ public java.lang.String 电子邮箱; PowerDesigner 2011/4/10 Page 13 Object-Oriented Model LcssCdm public java.util.Collection 图书作者; } V.1.1.4.2 Header of class 作者 /*********************************************************************** * Module: 作者.java * Author: Administrator * Purpose: Defines the Class 作者 ***********************************************************************/ V.1.1.4.3 Imports of class 作者 import java.util.*; V.1.1.4.4 Attribute 作者_ID of the class 作者 V.1.1.4.5 Attribute 姓名 of the class 作者 V.1.1.4.6 Attribute 联系地址 of the class 作者 V.1.1.4.7 Attribute 邮政编码 of the class 作者 V.1.1.4.8 Attribute 联系电话 of the class 作者 V.1.1.4.9 Attribute 电子邮箱 of the class 作者 V.1.1.4.10 Identifier Identifier_1 of the class 作者 V.1.1.5 Class 借阅记录 V.1.1.5.1 Code preview of class 借阅记录 /*********************************************************************** * Module: 借阅记录.java * Author: Administrator * Purpose: Defines the Class 借阅记录 ***********************************************************************/ import java.util.*; /** @pdOid 9ba03fbf-b822-4000-b473-3461c528e257 */ PowerDesigner 2011/4/10 Page 14 Object-Oriented Model LcssCdm public class 借阅记录 { /** @pdOid 559ffeb1-a727-417e-a0a1-159c16a51b1f */ public int 借阅Id; /** @pdOid ee349736-6fd8-44bd-bbc3-c90ce6a87af3 */ public java.util.Date 借阅时间; /** @pdOid 00333439-dfdf-4dfd-900e-ff495b6890de */ public java.util.Date 归还时间; /** @pdOid c602c6c8-c31d-4b6d-b84e-89a1b69457d1 */ public int 借阅状态; /** @pdRoleInfo migr=no name=读者 assc=relationship1 mult=0..1 side=A */ public 读者 读者; /** @pdRoleInfo migr=no name=图册 assc=relationship2 mult=0..1 side=A */ public 图册 图册; /** @pdGenerated default parent getter */ public 读者 get读者() { return 读者; } /** @pdGenerated default parent setter * @param new读者 */ public void set读者(读者 new读者) { if (this.读者 == null || !this.读者.equals(new读者)) { if (this.读者 != null) { 读者 old读者 = this.读者; this.读者 = null; old读者.remove借阅记录(this); } if (new读者 != null) { this.读者 = new读者; this.读者.add借阅记录(this); } } } /** @pdGenerated default parent getter */ public 图册 get图册() { return 图册; } PowerDesigner 2011/4/10 Page 15 Object-Oriented Model LcssCdm /** @pdGenerated default parent setter * @param new图册 */ public void set图册(图册 new图册) { if (this.图册 == null || !this.图册.equals(new图册)) { if (this.图册 != null) { 图册 old图册 = this.图册; this.图册 = null; old图册.remove借阅记录(this); } if (new图册 != null) { this.图册 = new图册; this.图册.add借阅记录(this); } } } } V.1.1.5.2 Header of class 借阅记录 /*********************************************************************** * Module: 借阅记录.java * Author: Administrator * Purpose: Defines the Class 借阅记录 ***********************************************************************/ V.1.1.5.3 Imports of class 借阅记录 import java.util.*; V.1.1.5.4 Attribute 借阅_ID of the class 借阅记录 V.1.1.5.5 Attribute 借阅时间 of the class 借阅记录 V.1.1.5.6 Attribute 归还时间 of the class 借阅记录 V.1.1.5.7 Attribute 借阅状态 of the class 借阅记录 V.1.1.5.8 Identifier Identifier_1 of the class 借阅记录 PowerDesigner 2011/4/10 Page 16 Object-Oriented Model LcssCdm V.1.1.6 Class 出版社 V.1.1.6.1 Code preview of class 出版社 /*********************************************************************** * Module: 出版社.java * Author: Administrator * Purpose: Defines the Class 出版社 ***********************************************************************/ import java.util.*; /** @pdOid 462e6cf9-2df5-4454-82d3-b903425b40b5 */ public class 出版社 { /** @pdOid 25ea88a7-513c-47fa-9842-8b57eeadeb66 */ public int 出版社Id; /** @pdOid d2f7d91c-de22-4c6c-8c90-5e2ac390d285 */ public java.lang.String 出版社名称; /** @pdOid 754163bc-bfe9-4c52-a71b-7449e926e901 */ public java.lang.String 地址; /** @pdOid e074d51c-96c9-4a37-b3e7-edf39789428e */ public java.lang.String 联系人; /** @pdOid 61ae34d3-3392-449b-82db-ccd11c1ee2aa */ public java.lang.String 联系电话; /** @pdRoleInfo migr=no name=图书 assc=relationship4 coll=java.util.Collection impl=java.util.HashSet mult=0..* */ public java.util.Collection 图书; /** @pdGenerated default getter */ public java.util.Collection get图书() { if (图书 == null) 图书 = new java.util.HashSet(); return 图书; } /** @pdGenerated default iterator getter */ public java.util.Iterator getIterator图书() { if (图书 == null) 图书 = new java.util.HashSet(); return 图书.iterator(); } /** @pdGenerated default setter * @param new图书 */ PowerDesigner 2011/4/10 Page 17 Object-Oriented Model LcssCdm public void set图书(java.util.Collection new图书) { removeAll图书(); for (java.util.Iterator iter = new图书.iterator(); iter.hasNext();) add图书((图书)iter.next()); } /** @pdGenerated default add * @param new图书 */ public void add图书(图书 new图书) { if (new图书 == null) return; if (this.图书 == null) this.图书 = new java.util.HashSet(); if (!this.图书.contains(new图书)) { this.图书.add(new图书); new图书.set出版社(this); } } /** @pdGenerated default remove * @param old图书 */ public void remove图书(图书 old图书) { if (old图书 == null) return; if (this.图书 != null) if (this.图书.contains(old图书)) { this.图书.remove(old图书); old图书.set出版社((出版社)null); } } /** @pdGenerated default removeAll */ public void removeAll图书() { if (图书 != null) { 图书 old图书; for (java.util.Iterator iter = getIterator图书(); iter.hasNext();) { old图书 = (图书)iter.next(); iter.remove(); old图书.set出版社((出版社)null); PowerDesigner 2011/4/10 Page 18 Object-Oriented Model LcssCdm } } } } V.1.1.6.2 Header of class 出版社 /*********************************************************************** * Module: 出版社.java * Author: Administrator * Purpose: Defines the Class 出版社 ***********************************************************************/ V.1.1.6.3 Imports of class 出版社 import java.util.*; V.1.1.6.4 Attribute 出版社_ID of the class 出版社 V.1.1.6.5 Attribute 出版社名称 of the class 出版社 V.1.1.6.6 Attribute 地址 of the class 出版社 V.1.1.6.7 Attribute 联系人 of the class 出版社 V.1.1.6.8 Attribute 联系电话 of the class 出版社 V.1.1.6.9 Identifier Identifier_1 of the class 出版社 V.1.1.7 Class 图书 V.1.1.7.1 Code preview of class 图书 /*********************************************************************** * Module: 图书.java * Author: Administrator * Purpose: Defines the Class 图书 ***********************************************************************/ import java.util.*; /** @pdOid 87f84008-812f-41d3-abb4-0a9c0c3ad29c */ public class 图书 { /** @pdOid 57436a8f-4fac-4b34-b768-ae889cf953bf */ PowerDesigner 2011/4/10 Page 19 Object-Oriented Model LcssCdm public int 图书Id; /** @pdOid 748d3977-cbf8-424a-b379-64e4c68056d0 */ public java.lang.String 书名; /** @pdOid 8d15c600-7083-44d0-8072-c6c1c0b382f4 */ public java.lang.String isbn; /** @pdOid db91066a-aadf-4a0f-9b31-576105056706 */ public java.lang.String 图书类型; /** @pdOid 60d41b55-41a1-4662-8262-919dfc751eb7 */ public double 价格; /** @pdOid ad9047bc-f458-4245-92f3-ce64ce20842f */ public int 页数; /** @pdOid d8623a8e-ff45-412a-8d0c-15369bb8050f */ public int 现存量; /** @pdOid cc363875-7f21-463f-9ff6-ee5de3a6bbf0 */ public java.lang.String 所放位置; /** @pdOid 7e94a56c-a474-4f10-907f-fca074a96b55 */ public int 库存总量; /** @pdOid 9e4c32a5-4ce2-4b4a-995c-d79dd2d67e31 */ public java.util.Date 入库日期; /** @pdOid 9a5c56ae-ade9-42cb-b3e5-fbaf9ee9d4cc */ public java.lang.String 操作员; /** @pdOid 0528fee3-452b-4810-9f2e-d0ce5fd9cdbe */ public int 借阅次数; public java.util.Collection 图书作者; /** @pdRoleInfo migr=no name=图册 assc=relationship3 coll=java.util.Collection impl=java.util.HashSet mult=0..* */ public java.util.Collection 图册; /** @pdRoleInfo migr=no name=出版社 assc=relationship4 mult=0..1 side=A */ public 出版社 出版社; /** @pdGenerated default getter */ public java.util.Collection get图册() { if (图册 == null) 图册 = new java.util.HashSet(); return 图册; } /** @pdGenerated default iterator getter */ public java.util.Iterator getIterator图册() { if (图册 == null) 图册 = new java.util.HashSet(); return 图册.iterator(); PowerDesigner 2011/4/10 Page 20 Object-Oriented Model LcssCdm } /** @pdGenerated default setter * @param new图册 */ public void set图册(java.util.Collection new图册) { removeAll图册(); for (java.util.Iterator iter = new图册.iterator(); iter.hasNext();) add图册((图册)iter.next()); } /** @pdGenerated default add * @param new图册 */ public void add图册(图册 new图册) { if (new图册 == null) return; if (this.图册 == null) this.图册 = new java.util.HashSet(); if (!this.图册.contains(new图册)) { this.图册.add(new图册); new图册.set图书(this); } } /** @pdGenerated default remove * @param old图册 */ public void remove图册(图册 old图册) { if (old图册 == null) return; if (this.图册 != null) if (this.图册.contains(old图册)) { this.图册.remove(old图册); old图册.set图书((图书)null); } } /** @pdGenerated default removeAll */ public void removeAll图册() { if (图册 != null) { 图册 old图册; for (java.util.Iterator iter = getIterator图册(); iter.hasNext();) PowerDesigner 2011/4/10 Page 21 Object-Oriented Model LcssCdm { old图册 = (图册)iter.next(); iter.remove(); old图册.set图书((图书)null); } } } /** @pdGenerated default parent getter */ public 出版社 get出版社() { return 出版社; } /** @pdGenerated default parent setter * @param new出版社 */ public void set出版社(出版社 new出版社) { if (this.出版社 == null || !this.出版社.equals(new出版社)) { if (this.出版社 != null) { 出版社 old出版社 = this.出版社; this.出版社 = null; old出版社.remove图书(this); } if (new出版社 != null) { this.出版社 = new出版社; this.出版社.add图书(this); } } } } V.1.1.7.2 Header of class 图书 /*********************************************************************** * Module: 图书.java * Author: Administrator * Purpose: Defines the Class 图书 ***********************************************************************/ V.1.1.7.3 Imports of class 图书 import java.util.*; V.1.1.7.4 Attribute 图书_ID of the class 图书 PowerDesigner 2011/4/10 Page 22 Object-Oriented Model LcssCdm V.1.1.7.5 Attribute 书名 of the class 图书 V.1.1.7.6 Attribute ISBN of the class 图书 V.1.1.7.7 Attribute 图书类型 of the class 图书 V.1.1.7.8 Attribute 价格 of the class 图书 V.1.1.7.9 Attribute 页数 of the class 图书 V.1.1.7.10 V.1.1.7.11 V.1.1.7.12 V.1.1.7.13 V.1.1.7.14 V.1.1.7.15 V.1.1.7.16 Attribute 现存量 of the class 图书 Attribute 所放位置 of the class 图书 Attribute 库存总量 of the class 图书 Attribute 入库日期 of the class 图书 Attribute 操作员 of the class 图书 Attribute 借阅次数 of the class 图书 Identifier Identifier_1 of the class 图书 V.1.1.8 Class 图书作者 V.1.1.8.1 Code preview of class 图书作者 /*********************************************************************** * Module: 图书作者.java * Author: Administrator * Purpose: Defines the Class 图书作者 ***********************************************************************/ import java.util.*; /** @pdOid fbdac1ee-90c7-4031-a077-677e6f367203 */ public class 图书作者 { /** @pdOid 6071130d-4a2b-43b3-be94-fbc006d928f0 */ public int 作者排序; PowerDesigner 2011/4/10 Page 23 Object-Oriented Model LcssCdm public 图书 图书作者; public 作者 图书作者; } V.1.1.8.2 Header of class 图书作者 /*********************************************************************** * Module: 图书作者.java * Author: Administrator * Purpose: Defines the Class 图书作者 ***********************************************************************/ V.1.1.8.3 Imports of class 图书作者 import java.util.*; V.1.1.8.4 Attribute 作者排序 of the class 图书作者 V.1.1.9 Class 图册 V.1.1.9.1 Code preview of class 图册 /*********************************************************************** * Module: 图册.java * Author: Administrator * Purpose: Defines the Class 图册 ***********************************************************************/ import java.util.*; /** @pdOid 3697d868-73ab-477b-beb5-ea081903aa41 */ public class 图册 { /** @pdOid 466f7ecb-af94-4933-b473-ab5c4d42e341 */ public int 图书Id; /** @pdOid 52aefeeb-1f76-41d7-b44d-ea4c23559e99 */ public java.lang.String 图册编号; /** @pdOid 2f780572-7c31-4cc1-9b5f-993d443c53d4 */ public int 图册状态; /** @pdRoleInfo migr=no name=借阅记录 assc=relationship2 coll=java.util.Collection impl=java.util.HashSet mult=0..* */ public java.util.Collection 借阅记录; /** @pdRoleInfo migr=no name=图书 assc=relationship3 mult=0..1 side=A */ public 图书 图书; PowerDesigner 2011/4/10 Page 24 因篇幅问题不能全部显示,请点此查看更多更全内容