public class DfDecoMapFile extends Object
| コンストラクタと説明 |
|---|
DfDecoMapFile(Supplier<LocalDateTime> currentDatetimeSupplier) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
protected void |
assertClientDirPath(String clientDirPath) |
protected String |
buildMappingFileName(DfDecoMapMapping decoMapMapping) |
protected String |
buildPickupFilePath(String clientDirPath) |
protected String |
buildPieceDirPath(String clientDirPath) |
protected String |
buildPieceFileName(DfDecoMapPiece decoMapPiece)
Build piece file name for piece map file
e.g. table decomment : decomment-piece-TABLE_NAME-20171224-143000-123-owner-ABCDEFG.dfmap e.g. column decomment : decomment-piece-TABLE_NAME-COLUMN_NAME-20171224-143000-123-owner-ABCDEFG.dfmap |
protected DfMapFile |
createDfMapFile() |
protected void |
createMappingMapFile(File mappingMapFile) |
protected void |
createPickupMapFile(File pickupMapFile) |
protected void |
createPieceMapFile(File pieceMapFile) |
void |
deletePiece(String clientPath) |
protected void |
doWriteMapping(String mappingFilePath,
DfDecoMapMapping decoMapMapping) |
protected void |
doWritePickup(String pickupFilePath,
DfDecoMapPickup decoMapPickup) |
protected String |
filterOwner(String owner) |
protected String |
getCurrentDateStr() |
protected LocalDateTime |
getCurrentLocalDateTime() |
DfDecoMapPickup |
merge(OptionalThing<DfDecoMapPickup> optPickup,
List<DfDecoMapPiece> outputPieceList,
List<DfDecoMapMapping> outputMappingList)
merge piece map and pickup map with previous piece code and mapping code clue to go on.
|
List<DfDecoMapMapping> |
readMappingList(String clientDirPath)
Read all decomment mapping map file in "clientDirPath/schema/decomment/piece/".
|
OptionalThing<DfDecoMapPickup> |
readPickup(String clientDirPath)
Read decomment pickup map file at "clientDirPath/schema/decomment/pickup/decomment-pickup.dfmap".
|
List<DfDecoMapPiece> |
readPieceList(String clientDirPath)
Read all decomment piece map file in "clientDirPath/schema/decomment/piece/".
|
protected void |
throwDecoMapReadFailureException(String path,
Exception cause) |
protected void |
throwDecoMapResourceReleaseFailureException(String path,
Map<String,Object> decoMap,
Exception cause) |
protected void |
throwDecoMapWriteFailureException(String path,
Exception cause) |
protected void |
throwDecoMapWriteFailureException(String path,
Map<String,Object> decoMap,
Exception cause) |
protected void |
throwIllegalTargetTypeException(DfDecoMapMapping decoMapMapping) |
protected void |
throwIllegalTargetTypeException(DfDecoMapPiece decoMapPiece) |
void |
writeMapping(String clientDirPath,
DfDecoMapMapping decoMapMapping) |
void |
writePickup(String clientDirPath,
DfDecoMapPickup decoMapPickup) |
void |
writePiece(String clientDirPath,
DfDecoMapPiece decoMapPiece)
Write single decomment piece map file at "clientDirPath/schema/decomment/piece".
|
public DfDecoMapFile(Supplier<LocalDateTime> currentDatetimeSupplier)
public List<DfDecoMapPiece> readPieceList(String clientDirPath)
clientDirPath - The path of DBFlute client directory (NotNull)DfDecoMapPiece.convertToMap()public OptionalThing<DfDecoMapPickup> readPickup(String clientDirPath)
clientDirPath - The path of DBFlute client directory (NotNull)DfDecoMapPickup.convertToMap()public List<DfDecoMapMapping> readMappingList(String clientDirPath)
clientDirPath - The path of DBFlute client directory (NotNull)protected void throwDecoMapReadFailureException(String path, Exception cause)
public void writePiece(String clientDirPath, DfDecoMapPiece decoMapPiece)
clientDirPath - The path of DBFlute client directory (NotNull)decoMapPiece - Decoment piece map (NotNull)protected String buildPieceFileName(DfDecoMapPiece decoMapPiece)
decoMapPiece - Decoment piece map (NotNull)protected String getCurrentDateStr()
protected void createPieceMapFile(File pieceMapFile)
public void writePickup(String clientDirPath, DfDecoMapPickup decoMapPickup)
protected void doWritePickup(String pickupFilePath, DfDecoMapPickup decoMapPickup)
protected void createPickupMapFile(File pickupMapFile)
public void writeMapping(String clientDirPath, DfDecoMapMapping decoMapMapping)
protected String buildMappingFileName(DfDecoMapMapping decoMapMapping)
protected void doWriteMapping(String mappingFilePath, DfDecoMapMapping decoMapMapping)
protected void createMappingMapFile(File mappingMapFile)
protected void throwDecoMapWriteFailureException(String path, Exception cause)
protected void throwDecoMapWriteFailureException(String path, Map<String,Object> decoMap, Exception cause)
protected void throwDecoMapResourceReleaseFailureException(String path, Map<String,Object> decoMap, Exception cause)
protected void throwIllegalTargetTypeException(DfDecoMapPiece decoMapPiece)
protected void throwIllegalTargetTypeException(DfDecoMapMapping decoMapMapping)
public DfDecoMapPickup merge(OptionalThing<DfDecoMapPickup> optPickup, List<DfDecoMapPiece> outputPieceList, List<DfDecoMapMapping> outputMappingList)
optPickup - Decoment pickup map (NotNull: If pickup map file not exists, Empty allowed)outputPieceList - Decoment piece maps in piece directory (NotNull: If piece map file not exists, Empty allowed)outputMappingList - Decomment mapping maps in piece directory (NotNull: If mapping map file not exists, Empty allowed)public void deletePiece(String clientPath)
protected DfMapFile createDfMapFile()
protected void assertClientDirPath(String clientDirPath)
protected LocalDateTime getCurrentLocalDateTime()
Copyright © 2014–2021 The DBFlute Project. All rights reserved.