クラス EntityFileReader<T extends EntityFileReader<?>>
java.lang.Object
org.iplass.mtp.impl.entity.fileport.EntityFileReader<T>
- 型パラメータ:
T- 実装クラスを指定
- すべての実装されたインタフェース:
AutoCloseable,Iterable<Entity>
- 直系の既知のサブクラス:
EntityCsvReader,EntityExcelReader
public abstract class EntityFileReader<T extends EntityFileReader<?>>
extends Object
implements Iterable<Entity>, AutoCloseable
Entityのアップロードファイルのリーダークラスです。
-
フィールドの概要
フィールド -
コンストラクタの概要
コンストラクタ -
メソッドの概要
修飾子とタイプメソッド説明customColumnNameMap(Map<String, String> customColumnNameMap) プロパティ名とヘッダのカラム名のマッピング定義を設定します。enableAuditPropertySpecification(boolean enableAuditPropertySpecification) InsertするEntityにcreateBy,createDate,updateBy,updateDateの値を指定するかを設定します。header()ignoreNotExistsProperty(boolean ignoreNotExistsProperty) 存在しないプロパティは無視するかを設定します。booleaniterator()OIDに付けるPrefixを設定します。readData()データ行を読み込みます。ヘッダ行を読み込みます。readLine()voidsetCustomColumnNameMap(Map<String, String> customColumnNameMap) プロパティ名とヘッダのカラム名のマッピング定義を設定します。voidsetEnableAuditPropertySpecification(boolean enableAuditPropertySpecification) InsertするEntityにcreateBy,createDate,updateBy,updateDateの値を指定するかを設定します。voidsetIgnoreNotExistsProperty(boolean ignoreNotExistsProperty) 存在しないプロパティは無視するかを設定します。voidsetPrefixOid(String prefixOid) OIDに付けるPrefixを設定します。voidsetVirtualProperties(List<String> virtualProperties) 許可する仮想のプロパティ名を設定します。voidsetWithReferenceVersion(boolean withReferenceVersion) Referenceプロパティの場合はバージョンも指定するかを設定します。voidvalidate(int errorLimit) ファイルを検証します。protected final voidvalidateLine(List<String> line) protected final voidvalidateValue(String headerName, String propName, String value) virtualProperties(List<String> virtualProperties) 許可する仮想のプロパティ名を設定します。withReferenceVersion(boolean withReferenceVersion) Referenceプロパティの場合はバージョンも指定するかを設定します。クラスから継承されたメソッド java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitインタフェースから継承されたメソッド java.lang.AutoCloseable
closeインタフェースから継承されたメソッド java.lang.Iterable
forEach, spliterator
-
フィールド詳細
-
CTRL_CODE_KEY
制御フラグのヘッダー項目名- 関連項目:
-
CTRL_INSERT
制御フラグ、追加を示す値。- 関連項目:
-
CTRL_UPDATE
制御フラグ、更新を示す値。- 関連項目:
-
CTRL_DELETE
制御フラグ、削除を示す値。- 関連項目:
-
CTRL_MERGE
制御フラグ、マージ(追加更新)を示す値。- 関連項目:
-
NVL
public static final int NVL- 関連項目:
-
definition
-
-
コンストラクタの詳細
-
EntityFileReader
-
-
メソッドの詳細
-
readHeader
ヘッダ行を読み込みます。- 戻り値:
- ヘッダ行
-
readData
データ行を読み込みます。- 戻り値:
- データ行
-
setWithReferenceVersion
public void setWithReferenceVersion(boolean withReferenceVersion) Referenceプロパティの場合はバージョンも指定するかを設定します。- パラメータ:
withReferenceVersion- Referenceプロパティの場合はバージョンも指定
-
withReferenceVersion
Referenceプロパティの場合はバージョンも指定するかを設定します。- パラメータ:
withReferenceVersion- Referenceプロパティの場合はバージョンも指定- 戻り値:
- インスタンス
-
setPrefixOid
OIDに付けるPrefixを設定します。- パラメータ:
prefixOid- OIDに付けるPrefix
-
prefixOid
OIDに付けるPrefixを設定します。- パラメータ:
prefixOid- OIDに付けるPrefix- 戻り値:
- インスタンス
-
setIgnoreNotExistsProperty
public void setIgnoreNotExistsProperty(boolean ignoreNotExistsProperty) 存在しないプロパティは無視するかを設定します。- パラメータ:
ignoreNotExistsProperty- 存在しないプロパティは無視するか
-
ignoreNotExistsProperty
存在しないプロパティは無視するかを設定します。- パラメータ:
ignoreNotExistsProperty- 存在しないプロパティは無視するか- 戻り値:
- インスタンス
-
setEnableAuditPropertySpecification
public void setEnableAuditPropertySpecification(boolean enableAuditPropertySpecification) InsertするEntityにcreateBy,createDate,updateBy,updateDateの値を指定するかを設定します。- パラメータ:
enableAuditPropertySpecification- 指定するか
-
enableAuditPropertySpecification
InsertするEntityにcreateBy,createDate,updateBy,updateDateの値を指定するかを設定します。- パラメータ:
enableAuditPropertySpecification- 指定するか- 戻り値:
- インスタンス
-
setCustomColumnNameMap
プロパティ名とヘッダのカラム名のマッピング定義を設定します。- パラメータ:
customColumnNameMap- プロパティ名とヘッダのカラム名のマッピング定義
-
customColumnNameMap
プロパティ名とヘッダのカラム名のマッピング定義を設定します。- パラメータ:
customColumnNameMap- プロパティ名とヘッダのカラム名のマッピング定義- 戻り値:
- インスタンス
-
setVirtualProperties
許可する仮想のプロパティ名を設定します。- パラメータ:
virtualProperties- 許可する仮想のプロパティ名
-
virtualProperties
許可する仮想のプロパティ名を設定します。- パラメータ:
virtualProperties- 許可する仮想のプロパティ名- 戻り値:
- インスタンス
-
isUseCtrl
public boolean isUseCtrl() -
properties
-
iterator
- 定義:
iteratorインタフェース内Iterable<T extends EntityFileReader<?>>
-
validate
public void validate(int errorLimit) ファイルを検証します。- パラメータ:
errorLimit- エラー表示上限
-
header
-
readLine
- 例外:
IOException
-
validateLine
-
validateValue
-