com.hamaf.hikyaku.access
クラス DefaultTableAccess

java.lang.Object
  上位を拡張 com.hamaf.hikyaku.access.AccessBase
      上位を拡張 com.hamaf.hikyaku.access.DefaultTableAccess
直系の既知のサブクラス:
BelongAccess, GroupAccess, GroupUserAccess, HatubanAccess, InitAccess, MenuAccess, MessageAccess, PluginAccess, PossibleAccess, RetrieveAccess, UserAccess, ViewGroupAccess, ViewGroupSelAccess, ViewInitAccess, ViewMenuAccess, ViewPossibleAccess, ViewRetrieveAccess, VReserveSessionAccess

public class DefaultTableAccess
extends AccessBase

タイトル:DefaultTableAccess is Default Table Access Class.

説明:標準テーブルアクセスクラス


機能
  1. テーブル名を設定する - setTableName(String)
  2. コネクション取得パラメータを設定する - setConnParm(String)
  3. 挿入機能 - insert(DetailItemsInterface)
  4. 更新機能 - update(DetailItemsInterface)
  5. 削除機能 - delete(DetailItemsInterface)
  6. 取得機能 - findByPrimaryKey(DetailItemsInterface)
  7. 検索機能 - find(RetrieveKeysInterface)

著作権: Copyright (c) 2004/11/26

バージョン:
1.0
作成者:
Hamanaka

フィールドの概要
protected  java.lang.String connectionParameter
           
protected  java.lang.String tableName
           
 
クラス com.hamaf.hikyaku.access.AccessBase から継承されたフィールド
_conn, _DbConnect, _stmt
 
コンストラクタの概要
DefaultTableAccess()
          Creates a new DefaultTableAccess.java instance.
 
メソッドの概要
 void delete(DetailItemsInterface dii)
          Describe delete method : delete TABLE items by PrimaryKey.
 void deleteNoExclusion(DetailItemsInterface dii)
          Describe deleteNoExclusion method : delete TABLE items by PrimaryKey.
 RetrieveKeysInterface find(RetrieveKeysInterface rki)
          Describe find method : get primaryKey List.
 DetailItemsInterface findByPrimaryKey(DetailItemsInterface dii)
          Describe findByPrimaryKey method : get record by primaryKey.
 void regist(DetailItemsInterface dii)
          Describe regist method : insert TABLE.
 void setConnectionParameter(java.lang.String connPrm)
          Describe setConnectionParameter method : コネクション取得パラメータを設定する.
 void setDebug()
           
 void setTableName(java.lang.String tblName)
          Describe setTableName method : テーブル名を設定する.
 void update(DetailItemsInterface dii)
          Describe update method : update TABLE items by PrimaryKey.
 void updateNoExclusion(DetailItemsInterface dii)
          Describe updateNoExclusion method : update TABLE items by PrimaryKey.
 
クラス com.hamaf.hikyaku.access.AccessBase から継承されたメソッド
closeStatement, destroy, exclusion, getPkeys, getProductName, getStatement, setConnection
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

tableName

protected java.lang.String tableName

connectionParameter

protected java.lang.String connectionParameter
コンストラクタの詳細

DefaultTableAccess

public DefaultTableAccess()
Creates a new DefaultTableAccess.java instance.
Default Constructor

メソッドの詳細

setTableName

public final void setTableName(java.lang.String tblName)
Describe setTableName method : テーブル名を設定する.

パラメータ:
tblName - a String : テーブル名

setConnectionParameter

public final void setConnectionParameter(java.lang.String connPrm)
Describe setConnectionParameter method : コネクション取得パラメータを設定する.

パラメータ:
connPrm - a String : コネクション取得パラメータ

findByPrimaryKey

public DetailItemsInterface findByPrimaryKey(DetailItemsInterface dii)
                                      throws java.sql.SQLException
Describe findByPrimaryKey method : get record by primaryKey.
指定されたプライマリキー値のレコードデータを取得する。
データオブジェクトの使用において排他制御用の処理 (getSelectStringWithExclusion,setExclusion)を利用する。

パラメータ:
pdi - a DetailItemsInterface
戻り値:
a DetailItemsInterface
例外:
java.sql.SQLException

regist

public void regist(DetailItemsInterface dii)
            throws java.sql.SQLException
Describe regist method : insert TABLE.
データを登録する。
データオブジェクトの使用において排他制御用の処理 (getInsertItemWithExclusion,getInsertValueWithExclusion)を利用する。

パラメータ:
dii - a DetailItemsInterface
例外:
java.sql.SQLException

update

public void update(DetailItemsInterface dii)
            throws ExclusionException,
                   java.sql.SQLException
Describe update method : update TABLE items by PrimaryKey.
プライマリキーでTABLEを更新する。
更新前に排他チェックを行う。
データオブジェクトの使用において排他制御用の処理 (getUpdateStringWithExclusion)を利用する。

パラメータ:
dii - a DetailItemsInterface
例外:
ExclusionException - : 排他エラーの場合
java.sql.SQLException

updateNoExclusion

public void updateNoExclusion(DetailItemsInterface dii)
                       throws java.sql.SQLException
Describe updateNoExclusion method : update TABLE items by PrimaryKey.
排他チェックを行なわずに、プライマリキーでTABLEを更新する。

パラメータ:
dii - a DetailItemsInterface
例外:
java.sql.SQLException

delete

public void delete(DetailItemsInterface dii)
            throws ExclusionException,
                   java.sql.SQLException
Describe delete method : delete TABLE items by PrimaryKey.
プライマリキーでTABLEを削除する。
削除前に排他チェックを行う。

パラメータ:
dii - a DetailItemsInterface
例外:
ExclusionException - : 排他エラーの場合
java.sql.SQLException

deleteNoExclusion

public void deleteNoExclusion(DetailItemsInterface dii)
                       throws java.sql.SQLException
Describe deleteNoExclusion method : delete TABLE items by PrimaryKey.
排他チェックを行なわずに、プライマリキーでTABLEを削除する。

パラメータ:
dii - a DetailItemsInterface
例外:
java.sql.SQLException

find

public RetrieveKeysInterface find(RetrieveKeysInterface rki)
                           throws java.sql.SQLException
Describe find method : get primaryKey List.
検索条件にしたがってプライマリーキーを設定して戻す。
キー項目はListに設定されます。

パラメータ:
rki - a RetrieveKeysInterface
戻り値:
a RetrieveKeysInterface
例外:
java.sql.SQLException

setDebug

public final void setDebug()
パラメータ:
argDebug - debug を設定します。