From 2cac051908c3f5e6e55b8df6841ebdab18b42abe Mon Sep 17 00:00:00 2001 From: kuboryu Date: Tue, 24 Jan 2017 07:57:03 +0900 Subject: [PATCH] 20170124 --- com/rapide_act/DataAccessObjects.java | 14 ++-- com/rapide_act/RapideUnloader.java | 132 +++++++++++++++++----------------- 2 files changed, 73 insertions(+), 73 deletions(-) diff --git a/com/rapide_act/DataAccessObjects.java b/com/rapide_act/DataAccessObjects.java index 13ab22b..f81f0d2 100644 --- a/com/rapide_act/DataAccessObjects.java +++ b/com/rapide_act/DataAccessObjects.java @@ -295,8 +295,8 @@ public class DataAccessObjects{ isQuotation = _isQuotation; isMask = _isMask; recCount = 0; - String lnSprtr = CmnUtils.getLineSeparator("lnSprtr", System.getProperty("line.separator")); - if(System.getProperty("nullMark")!= null)nullMark = System.getProperty("nullMark"); + String lnSprtr = CmnUtils.getLineSeparator("ls", System.getProperty("line.separator")); + if(System.getProperty("nm")!= null)nullMark = System.getProperty("nm"); while (rst.next()) { colString = null; for(int i=0;i‘Ώۃf[ƒ^ƒx[ƒX='" + database.toUpperCase() + "'"); - CmnUtils.infoPrint("-->o—͐æ='" + fldr + "'"); - CmnUtils.infoPrint("-->‹æØ‚蕶Žš='" + sprtr + "'"); - CmnUtils.infoPrint("-->ƒ\[ƒg=" + CmnUtils.getYesNo(isOrder)); - CmnUtils.infoPrint("-->ˆø—p‹å=" + CmnUtils.getYesNo(isQuotation)); - if(isInclTables)CmnUtils.infoPrint("-->‘Ώۃe[ƒuƒ‹='" + inclTables.toUpperCase() + "'"); - if(isExclTables)CmnUtils.infoPrint("-->œŠOƒe[ƒuƒ‹='" + exclTables.toUpperCase() + "'"); - if(isInclCols)CmnUtils.infoPrint("-->‘ΏۃJƒ‰ƒ€='" + inclCols.toUpperCase() + "'"); - if(isExclCols)CmnUtils.infoPrint("-->œŠOƒJƒ‰ƒ€='" + exclCols.toUpperCase() + "'"); - CmnUtils.infoPrint("-->ƒ}ƒXƒLƒ“ƒO=" + CmnUtils.getYesNo(isMask)); + if(database!=null)CmnUtils.infoPrint("-->Database='" + database.toUpperCase() + "'"); + CmnUtils.infoPrint("-->Output='" + fldr + "'"); + if(System.getProperty("dm")!=null)CmnUtils.infoPrint("-->Delimiter='" + dlmtr + "'"); + if(System.getProperty("ls")!=null)CmnUtils.infoPrint("-->LineSeparator='" + System.getProperty("ls") + "'"); + if(System.getProperty("fe")!=null)CmnUtils.infoPrint("-->FileEncoding='" + fileEncoding + "'"); + if(System.getProperty("qt")!=null)CmnUtils.infoPrint("-->Quotation=" + CmnUtils.getYesNo(isQuotation)); + if(System.getProperty("od")!=null)CmnUtils.infoPrint("-->Sort=" + CmnUtils.getYesNo(isOrder)); + if(isInclTables)CmnUtils.infoPrint("-->Include Tables='" + inclTables.toUpperCase() + "'"); + if(isExclTables)CmnUtils.infoPrint("-->Exclude Tables='" + exclTables.toUpperCase() + "'"); + if(isInclCols)CmnUtils.infoPrint("-->Include Columns='" + inclCols.toUpperCase() + "'"); + if(isExclCols)CmnUtils.infoPrint("-->Exclude Columns='" + exclCols.toUpperCase() + "'"); if(isMask){ - CmnUtils.infoPrint("-->ƒ}ƒXƒNƒLƒ“ƒOƒpƒ^[ƒ“=" + maskPtn.toUpperCase()); - if(isInclMaskCols)CmnUtils.infoPrint("-->ƒ}ƒXƒN‘ΏۃJƒ‰ƒ€='" + inclMaskCols.toUpperCase() + "'"); - if(isExclMaskCols)CmnUtils.infoPrint("-->ƒ}ƒXƒNœŠOƒJƒ‰ƒ€='" + exclMaskCols.toUpperCase() + "'"); - CmnUtils.infoPrint("-->”¼Špƒ}ƒXƒN•¶Žš='" + hankakuMask + "'"); - CmnUtils.infoPrint("-->‘SŠpƒ}ƒXƒN•¶Žš='" + zenkakuMask + "'"); + CmnUtils.infoPrint("-->Masking=" + CmnUtils.getYesNo(isMask)); + CmnUtils.infoPrint("-->Masking Pattern=" + maskPtn.toUpperCase()); + if(isInclMaskCols)CmnUtils.infoPrint("-->Masking Columns='" + inclMaskCols.toUpperCase() + "'"); + if(isExclMaskCols)CmnUtils.infoPrint("-->NonMasking Columns='" + exclMaskCols.toUpperCase() + "'"); + CmnUtils.infoPrint("-->1byte Mask Mark='" + hankakuMask + "'"); + CmnUtils.infoPrint("-->2byte Mask Mark='" + zenkakuMask + "'"); } - CmnUtils.infoPrint("ƒf[ƒ^ƒAƒ“ƒ[ƒh‚ðŠJŽn‚µ‚Ü‚µ‚½B"); + CmnUtils.infoPrint("Start DataUnload ---------------------------------------------"); dao.select(sql_table_list); alData = dao.getArrayList(); @@ -330,7 +330,7 @@ public class RapideUnloader{ !CmnUtils.isMatch(aryExclMaskCols,alData.get(i).toUpperCase(),alColName.get(j).toUpperCase()) ) ){ - CmnUtils.debugPrint("ƒ}ƒXƒN‘ΏۃJƒ‰ƒ€" + alColName.get(j).toUpperCase()); + CmnUtils.debugPrint("Mask Column=" + alColName.get(j).toUpperCase()); alColMask.add(true); } else { alColMask.add(false); @@ -357,7 +357,7 @@ public class RapideUnloader{ !CmnUtils.isMatch(aryExclCols,alData.get(i).toUpperCase(),alColName.get(j).toUpperCase()) ) ){ - CmnUtils.debugPrint("‘ΏۃJƒ‰ƒ€=" + alColName.get(j).toUpperCase()); + CmnUtils.debugPrint("column=" + alColName.get(j).toUpperCase()); alColIncl.add(true); } else { alColIncl.add(false); @@ -416,15 +416,15 @@ public class RapideUnloader{ } else { if(colIncl[j]){ if(isQuotation){ - pw.print("\"" + sprtr + "\""); + pw.print("\"" + dlmtr + "\""); } else { - pw.print(sprtr); + pw.print(dlmtr); } } } } } - dao.getRecordToPrint(pw,sprtr,isQuotation,isMask,firstCol,lastCol); + dao.getRecordToPrint(pw,dlmtr,isQuotation,isMask,firstCol,lastCol); dao.closeRecordSet(); pw.close(); pw = null; @@ -459,7 +459,7 @@ public class RapideUnloader{ pw=null; } } - CmnUtils.infoPrint("ƒf[ƒ^ƒAƒ“ƒ[ƒh‚ðI—¹‚µ‚Ü‚µ‚½B"); + CmnUtils.infoPrint("End DataUnload -----------------------------------------------"); } -- 2.11.0