パッケージ org.iplass.mtp.csv
インタフェース CsvUploadInterrupter
- 既知のサブインタフェースのリスト:
SearchFormCsvUploadInterrupter
public interface CsvUploadInterrupter
カスタムでCSVアップロード処理を行わせるインターフェース
-
ネストされたクラスの概要
ネストされたクラス -
メソッドの概要
修飾子とタイプメソッド説明default List<ValidateError>afterRegist(int row, Entity entity, EntityDefinition definition, CsvUploadInterrupter.CsvRegistrationType registrationType) 推奨されていません。default List<ValidateError>afterRegister(int row, Entity entity, EntityDefinition definition, CsvUploadInterrupter.CsvRegistrationType registrationType) 登録後処理を行います。default List<ValidateError>beforeRegist(int row, Entity entity, EntityDefinition definition, CsvUploadInterrupter.CsvRegistrationType registrationType) default List<ValidateError>beforeRegister(int row, Entity entity, EntityDefinition definition, CsvUploadInterrupter.CsvRegistrationType registrationType) 登録前処理を行います。columnNameMap(EntityDefinition definition) プロパティ名に対する出力CSV列名のマッピング定義を返します。default voiddataMapping(int row, Entity entity, EntityDefinition definition, CsvUploadInterrupter.CsvRegistrationType registrationType) CSVデータから登録用のデータをマッピングします。default DeleteOptiondeleteOption(DeleteOption option) 削除時のオプションを返します。default InsertOptioninsertOption(InsertOption option) 新規追加時のオプションを返します。default UpdateOptionupdateOption(UpdateOption option) 更新時のオプションを返します。
-
メソッドの詳細
-
columnNameMap
プロパティ名に対する出力CSV列名のマッピング定義を返します。 keyをプロパティ名、valueを出力CSV列名として定義します。 nullを返す場合は、Entity定義から決定します。- パラメータ:
definition- Entity定義- 戻り値:
- プロパティ名に対する出力CSV列名のマッピング定義
-
dataMapping
default void dataMapping(int row, Entity entity, EntityDefinition definition, CsvUploadInterrupter.CsvRegistrationType registrationType) CSVデータから登録用のデータをマッピングします。- パラメータ:
row- 行entity- CSVデータdefinition- Entity定義registrationType- 登録処理の種類
-
beforeRegister
default List<ValidateError> beforeRegister(int row, Entity entity, EntityDefinition definition, CsvUploadInterrupter.CsvRegistrationType registrationType) 登録前処理を行います。- パラメータ:
row- 行entity- 登録用のデータdefinition- Entity定義registrationType- 登録処理の種類- 戻り値:
- 入力エラーリスト
-
beforeRegist
@Deprecated default List<ValidateError> beforeRegist(int row, Entity entity, EntityDefinition definition, CsvUploadInterrupter.CsvRegistrationType registrationType) 登録前処理を行います。- パラメータ:
row- 行entity- 登録用のデータdefinition- Entity定義registrationType- 登録処理の種類- 戻り値:
- 入力エラーリスト
-
afterRegister
default List<ValidateError> afterRegister(int row, Entity entity, EntityDefinition definition, CsvUploadInterrupter.CsvRegistrationType registrationType) 登録後処理を行います。- パラメータ:
row- 行entity- 登録用のデータdefinition- Entity定義registrationType- 登録処理の種類- 戻り値:
- 入力エラーリスト
-
afterRegist
@Deprecated default List<ValidateError> afterRegist(int row, Entity entity, EntityDefinition definition, CsvUploadInterrupter.CsvRegistrationType registrationType) 登録後処理を行います。- パラメータ:
row- 行entity- 登録用のデータdefinition- Entity定義registrationType- 登録処理の種類- 戻り値:
- 入力エラーリスト
-
insertOption
新規追加時のオプションを返します。- パラメータ:
option- 標準のオプション- 戻り値:
- 実行オプション
-
updateOption
更新時のオプションを返します。- パラメータ:
option- 標準のオプション- 戻り値:
- 実行オプション
-
deleteOption
削除時のオプションを返します。- パラメータ:
option- 標準のオプション- 戻り値:
- 実行オプション
-
afterRegister(int, Entity, EntityDefinition, CsvRegistrationType)