パッケージ org.iplass.mtp.csv
インタフェース CsvUploadInterrupter
public interface CsvUploadInterrupter
カスタムでCSVアップロード処理を行わせるインターフェース
-
ネストされたクラスの概要
ネストされたクラス -
メソッドの概要
修飾子とタイプメソッド説明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) 推奨されていません。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) 登録後処理を行います。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) 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) 登録前処理を行います。columnNameMap(org.iplass.mtp.entity.definition.EntityDefinition definition) プロパティ名に対する出力CSV列名のマッピング定義を返します。default voiddataMapping(int row, org.iplass.mtp.entity.Entity entity, org.iplass.mtp.entity.definition.EntityDefinition definition, CsvUploadInterrupter.CsvRegistrationType registrationType) CSVデータから登録用のデータをマッピングします。default org.iplass.mtp.entity.DeleteOptiondeleteOption(org.iplass.mtp.entity.DeleteOption option) 削除時のオプションを返します。default org.iplass.mtp.entity.InsertOptioninsertOption(org.iplass.mtp.entity.InsertOption option) 新規追加時のオプションを返します。default org.iplass.mtp.entity.UpdateOptionupdateOption(org.iplass.mtp.entity.UpdateOption option) 更新時のオプションを返します。
-
メソッドの詳細
-
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- 標準のオプション- 戻り値:
- 実行オプション
-
afterRegister(int, Entity, EntityDefinition, CsvRegistrationType)