クラス EntityCsvReader
java.lang.Object
org.iplass.mtp.impl.entity.csv.EntityCsvReader
- すべての実装されたインタフェース:
AutoCloseable,Iterable<Entity>
-
フィールドの概要
フィールド -
コンストラクタの概要
コンストラクタコンストラクタ説明EntityCsvReader(EntityDefinition definition, InputStream inputStream) EntityCsvReader(EntityDefinition definition, InputStream inputStream, String charset) EntityCsvReader(EntityDefinition definition, Reader reader) -
メソッドの概要
修飾子とタイプメソッド説明voidclose()customColumnNameMap(Map<String, String> customColumnNameMap) プロパティ名とヘッダのカラム名のマッピング定義を設定します。enableAuditPropertySpecification(boolean enableAuditPropertySpecification) InsertするEntityにcreateBy,createDate,updateBy,updateDateの値を指定するかを設定します。header()ignoreNotExistsProperty(boolean ignoreNotExistsProperty) 存在しないプロパティは無視するかを設定します。protected voidinit()booleaniterator()OIDに付けるPrefixを設定します。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プロパティの場合はバージョンも指定するかを設定します。protected voidvalidateLine(List<String> line) protected 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.Iterable
forEach, spliterator
-
フィールド詳細
-
コンストラクタの詳細
-
EntityCsvReader
public EntityCsvReader(EntityDefinition definition, InputStream inputStream) throws UnsupportedEncodingException -
EntityCsvReader
public EntityCsvReader(EntityDefinition definition, InputStream inputStream, String charset) throws UnsupportedEncodingException -
EntityCsvReader
-
-
メソッドの詳細
-
init
protected void init() -
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
-
close
public void close()- 定義:
closeインタフェース内AutoCloseable
-
header
-
readLine
- 例外:
IOException
-
validateLine
-
validateValue
-