com.hamaf.hikyaku.dataobject.utils
クラス CopyDtoUtil

java.lang.Object
  上位を拡張 com.hamaf.hikyaku.dataobject.utils.CopyDtoUtil

public class CopyDtoUtil
extends java.lang.Object

タイトル:CopyDtoUtil is create new Dto with corresponding definition.

説明:マッピング定義に従って、複写元のクラスから項目値を複写した新しいデータオブジェクトを再生する。


著作権: Copyright (c) 2007/06/05

バージョン:
1.0
作成者:
y-hamanaka

コンストラクタの概要
CopyDtoUtil()
           
 
メソッドの概要
static DetailItemsInterface addition(DtoMapping dmp, DetailItemsInterface base, DetailItemsInterface copy)
          Describe addition method : additional DetailItemsInterface values.
static DetailItemsInterface newDiDto(DtoMapping dmp, DetailItemsInterface org)
          Describe copy method : copy DetailItemsInterface object.
static RetrieveKeysInterface newDiDto(DtoMapping dmp, RetrieveKeysInterface org)
          Describe copy method : copy RetrieveKeysInterface Object.
static DetailItemsInterface newDto(DtoMapping dmp, DetailItemsInterface org)
          Describe copy method : copy DetailItemsInterface object.
static RetrieveKeysInterface newDto(DtoMapping dmp, RetrieveKeysInterface org)
          Describe copy method : copy RetrieveKeysInterface Object.
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

CopyDtoUtil

public CopyDtoUtil()
メソッドの詳細

newDto

public static final DetailItemsInterface newDto(DtoMapping dmp,
                                                DetailItemsInterface org)
                                         throws java.lang.Exception
Describe copy method : copy DetailItemsInterface object.
マッピング定義に従って、複写元の DetailItemsInterface より新しい DetailItemsInterface を生成します。

パラメータ:
dmp - a DtoMapping : マッピング定義
org - a DetailItemsInterface : 複写元のオブジェクト
戻り値:
a DetailItemsInterface : 生成したオブジェクト
例外:
java.lang.Exception - if an error occurs

newDiDto

public static final DetailItemsInterface newDiDto(DtoMapping dmp,
                                                  DetailItemsInterface org)
                                           throws java.lang.Exception
Describe copy method : copy DetailItemsInterface object.
マッピング定義に従って、複写元の DetailItemsInterface より新しい DetailItemsInterface を生成します。
新しいクラスはDiContainarにより、生成されます。

パラメータ:
dmp - a DtoMapping : マッピング定義
org - a DetailItemsInterface : 複写元のオブジェクト
戻り値:
a DetailItemsInterface : 生成したオブジェクト
例外:
java.lang.Exception - if an error occurs

addition

public static final DetailItemsInterface addition(DtoMapping dmp,
                                                  DetailItemsInterface base,
                                                  DetailItemsInterface copy)
Describe addition method : additional DetailItemsInterface values.
マッピング定義に従って、基本の DetailItemsInterface
複写もとの DetailItemsInterface の値を複写する。

パラメータ:
dmp - a DtoMapping : マッピング定義
base - a DetailItemsInterface : 基本となるデータオブジェクト
copy - a DetailItemsInterface : 値を複写させるデータオブジェクト
戻り値:
a DetailItemsInterface : 複写後のデータオブジェクト

newDto

public static final RetrieveKeysInterface newDto(DtoMapping dmp,
                                                 RetrieveKeysInterface org)
                                          throws java.lang.Exception
Describe copy method : copy RetrieveKeysInterface Object.
マッピング定義に従って、複写元の RetrieveKeysInterface より新しい RetrieveKeysInterface を生成します。

パラメータ:
dmp - a DtoMapping : マッピング定義
org - a RetrieveKeysInterface : 複写元のオブジェクト
戻り値:
a RetrieveKeysInterface : 生成したオブジェクト
例外:
java.lang.Exception - if an error occurs

newDiDto

public static final RetrieveKeysInterface newDiDto(DtoMapping dmp,
                                                   RetrieveKeysInterface org)
                                            throws java.lang.Exception
Describe copy method : copy RetrieveKeysInterface Object.
マッピング定義に従って、複写元の RetrieveKeysInterface より新しい RetrieveKeysInterface を生成します。
新しいクラスはDiContainarにより、生成されます。

パラメータ:
dmp - a DtoMapping : マッピング定義
org - a RetrieveKeysInterface : 複写元のオブジェクト
戻り値:
a RetrieveKeysInterface : 生成したオブジェクト
例外:
java.lang.Exception - if an error occurs