@Component public class FbExportHelper extends Object
修飾子とタイプ | クラスと説明 |
---|---|
protected static class |
FbExportHelper.FbFileWriter
ファイル出力関連機能提供クラス.
|
修飾子とタイプ | フィールドと説明 |
---|---|
protected jp.co.slcs.kaiden.v2.product_workflow.foundation.model.xml_schema.fb_export_settings.FbExportSettings.Settings |
companySettings
会社設定.
|
protected Map<String,String> |
fileNameMap
Exportファイル名と退避ファイル名を保持.
|
protected AbstractExportJob.Constans.SettingsValue.FileOperation |
fileOperation
既存ファイル操作.
|
protected IdentifierHelper |
identifierHelper
IdentifierHelper.
|
protected jp.co.slcs.kaiden.v2.product_workflow.foundation.model.xml_schema.fb_export_settings.FbExportSettings |
settings
設定ファイル情報.
|
コンストラクタと説明 |
---|
FbExportHelper() |
修飾子とタイプ | メソッドと説明 |
---|---|
void |
doErrorEnd()
エラー終了後処理.
|
void |
doNormalEnd()
正常終了後処理.
|
<DTO extends FbExportManagerImpl.FbRecordDto> |
exportDivision(FbExportManager.FbExportManagerParamDto paramDto,
String newlineCharType,
DTO recordDto,
String pFileName)
FBファイル出力.
|
<T extends FbExportManagerImpl.FbRecordDto> |
fbRecordDtoListToMapList(List<T> dtoList)
FbRecordDtoListからMAPリストに変換.
|
Map<String,Object> |
fbRecordDtoToMap(FbExportManagerImpl.FbRecordDto dto)
FbRecordDtoからMAPに変換.
|
String |
getCharacter()
出力ファイルの文字コードを返却.
|
@Autowired protected IdentifierHelper identifierHelper
protected jp.co.slcs.kaiden.v2.product_workflow.foundation.model.xml_schema.fb_export_settings.FbExportSettings.Settings companySettings
protected AbstractExportJob.Constans.SettingsValue.FileOperation fileOperation
protected jp.co.slcs.kaiden.v2.product_workflow.foundation.model.xml_schema.fb_export_settings.FbExportSettings settings
public <DTO extends FbExportManagerImpl.FbRecordDto> String exportDivision(FbExportManager.FbExportManagerParamDto paramDto, String newlineCharType, DTO recordDto, String pFileName)
DTO
- 処理対象レコードDTOの型paramDto
- パラメータnewlineCharType
- 改行コードrecordDto
- レコードpFileName
- 出力ファイル名public String getCharacter()
public void doErrorEnd()
処理中に出力していたファイルを削除します。 出力時にリネームして退避した既存ファイルを元の名前に戻し、出力前の状態にします。
public void doNormalEnd()
分割出力時にリネームして退避した既存ファイルを削除します
public Map<String,Object> fbRecordDtoToMap(FbExportManagerImpl.FbRecordDto dto)
nullの項目も常に変換します。
dto
- 変換元DTOCopyright © 2024 Sumitomo Life Information Systems Co., Ltd. All Rights Reserved.