freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

第九章聯(lián)系的實(shí)現(xiàn)-wenkub

2022-08-29 12:57:29 本頁面
 

【正文】 ft is body [… R:Tright。 …] end type Tleft。 right:Tright。 := oright。 type TR is with extension is body [left:Tleft。 …] end type Tright。 ……] ……] right: Tright。 方式 (1) 方式 (2) 方式 (3) Tleft Tright R 1 N ? 其中唯有方式 (2)能確保一致性約束 ,R是單值的。 [left: Tleft 。 end type TR 。 … ak: TkR。 := O1。 ? 為了檢索高效率 ,需要考慮受控的冗余建模。 … ak: TkR。 end type Office。 (4) := leonardo。 newResidence. isOccupiedBy := self。 ……] ……] end type Engineer 。 := self。 end define hire。 適用范圍:查找某種產(chǎn)品被組裝在什么部件中。 適用范圍:查找組成某部件的所有子部件 Sub:{} Sub:{} Sub:{} Sub:{} Sub:{} Sub:{} Sub:{} Sub:{} 應(yīng)用示例 ? 操作 partlist:輸出組成某個產(chǎn)品的所有部件 – 采用結(jié)構(gòu) I define partList is var resultSet: ProductSet。 !!recursive call of partList return resultSet end define partList –采用結(jié)構(gòu) II define partList is var resultSet: ProductSet。 !!recursive call of partList return resultSet。 while ( part != NULL ) If ( part = theSuperPart ) return true。 ? 高效,只需沿 self向上查找到根一條路徑 –采用結(jié)構(gòu) II define isPartOf(theSuperPart) is var isUsed: bool := false。 ? 低效 ,需到 theSuperPart節(jié)點(diǎn)的所有組件中尋找self 第 III種冗余組合模式 type product is body [… super: Product; sub: ProductSet; … ] end type product ? 該模式的使用中,重要的是維護(hù) DB的一致性 N:M關(guān)系舉例 Engineers Products designs ? 方式一 ,采用組合的冗余表達(dá)方式 type Engineer is type Product is body body […… […… designs: ProductSet。 type EngineerSet is type ProductSet is body {Engineer} body {Product} end type EngineerSet。 (一) 1:1的單值逆屬性 ? 示例 :關(guān)于婚姻的一致性控制,沒有兩個類型及其冗余的聯(lián)系: type Man is type Woman is body body [ [ … … wife:Woman husband:Man ... … ]。 :=donaldDuck。 type Woman is … husband : Man inverse Man$wife。 (二)多值逆屬性 ? 利用多值(集合)逆屬性來實(shí)現(xiàn)對象間 1:N聯(lián)系的冗余表示,例如遞歸組合屬性 super與 sub(多值)間的互逆的聯(lián)系。 其中聯(lián)系屬性 contains是一個多值集合屬性,其元素為矩形框?qū)ο蟆? containedIn:Rectangle inverse Rectangle$contains。 復(fù)合對象引用的支持 ? GOM支持對象間引用的更復(fù)雜的語義描述 ? 引用的分類 — 弱引用 : (weak reference)
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1