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

正文內(nèi)容

j2ee-第27章容器管理持久性示例-資料下載頁

2024-10-04 16:43本頁面
  

【正文】 rId(String id)。 public abstract String getProductModel()。 public abstract void setProductModel(String name)。 public PurchaseOrderKey ejbCreate (String vendorId, String productModel, String productName) throws CreateException { setVendorId(vendorId)。 setProductModel(productModel)。 setProductName(productName)。 return null。 } 自動生成主鍵 ? 部署描述符中主鍵、 findByPrimaryKey參數(shù)、 ejbCreate返回值都是 ? 不能將主鍵與其它字段關(guān)聯(lián) OrderApp中的數(shù)據(jù)庫表 OrderApp中實體 bean之間的關(guān)系 OrderApp中的 bean關(guān)系 ? 自引用關(guān)系: PartBean的 bomPart和 parts ? 復合主鍵: PartBean的 partNumber和 revision ? 一對一關(guān)系: PartBean的 vendorPart ? 一對多關(guān)系: OrderBean的 lineItems ? 單向關(guān)系: LineItemBean的 vendorPart 基元類型主鍵 public final class VendorKey implements { public int vendorId。 public boolean equals(Object otherOb) { if (this == otherOb) {return true。 } if (!(otherOb instanceof VendorKey)) { return false。 } VendorKey other = (VendorKey) otherOb。 return (vendorId == )。 } public int hashCode() { return vendorId。 } public String toString() { return + vendorId。 } } 復合主鍵 public final class LineItemKey implements { public Integer orderId。 public int itemId。 public boolean equals(Object otherOb) { if (this == otherOb) {return true。 } if (!(otherOb instanceof LineItemKey)) { return false。 } LineItemKey other = (LineItemKey) otherOb。 return ((orderId==null?==null: ()) amp。amp。 (itemId == ))。 } public int hashCode() { return ((orderId==null?0:()) ^ ((int) itemId))。 } public String toString() { return + orderId + + itemId。 } } ? 映射到多個數(shù)據(jù)庫表的實體 bean ? PartBean(PART和 PART_DETAIL) ? 用 deploytool建立關(guān)系 ? 查找程序和選擇器方法 ? 選擇器方法返回遠程接口或遠程接口的Collection,則返回類型為 Remote ? 選擇器方法返回本地接口或本地接口的Collection,則返回類型為 Local ? 否則返回類型為 None ? Home方法 (對所有 bean實例起作用 ) ? LocalExampleHome中定義 getValue ? ExampleBean中定義 ejbHomeGetValue OrderApp bean關(guān)系 OrderApp中的 find方法 EJB QL OrderApp中的 select方法 EJB QL 其它設(shè)置 ? Transaction Management設(shè)為 ContainerManaged ? 設(shè)置實體 bean引用 ? 使用 deploytool 更多資料請訪問:
點擊復制文檔內(nèi)容
研究報告相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1