パッケージ org.iplass.mtp.csv

インタフェース CsvUploadInterrupter


public interface CsvUploadInterrupter
カスタムでCSVアップロード処理を行わせるインターフェース
  • メソッドの詳細

    • columnNameMap

      default Map<String,String> columnNameMap(org.iplass.mtp.entity.definition.EntityDefinition definition)
      プロパティ名に対する出力CSV列名のマッピング定義を返します。 keyをプロパティ名、valueを出力CSV列名として定義します。 nullを返す場合は、Entity定義から決定します。
      パラメータ:
      definition - Entity定義
      戻り値:
      プロパティ名に対する出力CSV列名のマッピング定義
    • dataMapping

      default void dataMapping(int row, org.iplass.mtp.entity.Entity entity, org.iplass.mtp.entity.definition.EntityDefinition definition, CsvUploadInterrupter.CsvRegistrationType registrationType)
      CSVデータから登録用のデータをマッピングします。
      パラメータ:
      row - 行
      entity - CSVデータ
      definition - Entity定義
      registrationType - 登録処理の種類
    • beforeRegister

      default List<org.iplass.mtp.entity.ValidateError> beforeRegister(int row, org.iplass.mtp.entity.Entity entity, org.iplass.mtp.entity.definition.EntityDefinition definition, CsvUploadInterrupter.CsvRegistrationType registrationType)
      登録前処理を行います。
      パラメータ:
      row - 行
      entity - 登録用のデータ
      definition - Entity定義
      registrationType - 登録処理の種類
      戻り値:
      入力エラーリスト
    • beforeRegist

      @Deprecated default List<org.iplass.mtp.entity.ValidateError> beforeRegist(int row, org.iplass.mtp.entity.Entity entity, org.iplass.mtp.entity.definition.EntityDefinition definition, CsvUploadInterrupter.CsvRegistrationType registrationType)
      登録前処理を行います。
      パラメータ:
      row - 行
      entity - 登録用のデータ
      definition - Entity定義
      registrationType - 登録処理の種類
      戻り値:
      入力エラーリスト
    • afterRegister

      default List<org.iplass.mtp.entity.ValidateError> afterRegister(int row, org.iplass.mtp.entity.Entity entity, org.iplass.mtp.entity.definition.EntityDefinition definition, CsvUploadInterrupter.CsvRegistrationType registrationType)
      登録後処理を行います。
      パラメータ:
      row - 行
      entity - 登録用のデータ
      definition - Entity定義
      registrationType - 登録処理の種類
      戻り値:
      入力エラーリスト
    • afterRegist

      @Deprecated default List<org.iplass.mtp.entity.ValidateError> afterRegist(int row, org.iplass.mtp.entity.Entity entity, org.iplass.mtp.entity.definition.EntityDefinition definition, CsvUploadInterrupter.CsvRegistrationType registrationType)
      登録後処理を行います。
      パラメータ:
      row - 行
      entity - 登録用のデータ
      definition - Entity定義
      registrationType - 登録処理の種類
      戻り値:
      入力エラーリスト
    • insertOption

      default org.iplass.mtp.entity.InsertOption insertOption(org.iplass.mtp.entity.InsertOption option)
      新規追加時のオプションを返します。
      パラメータ:
      option - 標準のオプション
      戻り値:
      実行オプション
    • updateOption

      default org.iplass.mtp.entity.UpdateOption updateOption(org.iplass.mtp.entity.UpdateOption option)
      更新時のオプションを返します。
      パラメータ:
      option - 標準のオプション
      戻り値:
      実行オプション
    • deleteOption

      default org.iplass.mtp.entity.DeleteOption deleteOption(org.iplass.mtp.entity.DeleteOption option)
      削除時のオプションを返します。
      パラメータ:
      option - 標準のオプション
      戻り値:
      実行オプション