Cosminexus アプリケーション設定操作ガイド
CMP1.x Entity Beanのフィールドをデータベース上の表にマッピングします。
Entity Bean属性ファイル
次に示すコマンドを実行してEntity Bean属性ファイルを取得します。
cjgetappprop [<サーバ名称>] [-nameserver <プロバイダURL>] -name <J2EEアプリケーション名> -type ejb -resname <EJB-JAR表示名>/<Entity Bean表示名>-c <Entity Bean属性ファイルパス> |
cjgetappprop MyServer -name adder -type ejb -resname account/MyAccoub -c C:\home\adder_ejb.xml
次に示すコマンドを実行して,Entity Bean属性ファイルの値を反映します。
cjsetappprop [<サーバ名称>] [-nameserver <プロバイダURL>] -name <J2EEアプリケーション名> -type ejb -resname <EJB-JAR表示名>/<Entity Bean表示名>-c <Entity Bean属性ファイルパス> |
cjsetappprop MyServer -name adder -type ejb -resname account/MyAccoub -c C:\home\adder_ejb.xml
CMP1.x Entity Beanのフィールドをデータベース上の表にマッピングする(<cmp-map>)プロパティ設定項目を次に示します。
| 項目 | 必須 | 対応するタグ名 |
|---|---|---|
| リソースアダプタの表示名※1 | ○ | <datasource-name> |
| データベースのカタログ名 | △ | <catalog-name> |
| データベースのスキーマ名 | △ | <schema-name> |
| データベースのテーブル名 | ○ | <table-name> |
| データベースへの書き込み許可/禁止 | ○ | <read-only-access> |
| トランザクション遮断レベル※2 | △ | <transaction-isolation> |
| データベース書き込みデータ照合方法 | △ | <concurrency-protection> |
| フィールドとテーブルのカラムとのマッピング情報※3 | ○ | <field-impl> |
| finderメソッドの検索条件※4 | ○ | <finder-impl> |
(凡例) ○:必須 △:任意
| 項目 | 対応するタグ名 |
|---|---|
| EntityBeanのフィールド名 | <field-name> |
| テーブルのカラム名 | <column-name> |
| 項目 | 対応するタグ名 |
|---|---|
| finderメソッドのメソッド名 | <method-name> |
| テーブルの検索条件 | <where-clause> |
プロパティの設定項目の説明については,マニュアル「Cosminexus リファレンス 定義編」を参照してください。
All Rights Reserved. Copyright (C) 2006, 2007, Hitachi, Ltd.