import java.math.BigDecimal;
import java.nio.charset.Charset;
-public class DataAccessObjects{
+public class CmnAccessObjects{
private String driver = null;
private String user = null;
private Clob colClob = null;
private String tbName = null;
private int recCount = 0;
- private CmnProperty cp = null;
+ private CmnProps cp = null;
- DataAccessObjects(String _user, String _pass, String _url, String _driver){
+ CmnAccessObjects(String _user, String _pass, String _url, String _driver){
user = _user;
pass = _pass;
url = _url;
driver = _driver;
}
- DataAccessObjects(CmnProperty _cp){
+ CmnAccessObjects(CmnProps _cp){
cp = _cp;
user = cp.user;
pass = cp.pass;
import java.sql.Timestamp;
import java.math.BigDecimal;
-public class CmnProperty{
+public class CmnProps{
protected String database = null;
protected static final int DB_TYPE_ORACLE = 0;
protected static final int DB_TYPE_SQLSERVER = 1;
Properties prop = null;
try {
prop = new Properties();
- br = new BufferedReader(new InputStreamReader(CmnProperty.class.getClassLoader().getResourceAsStream(_propFile), "UTF-8"));
+ br = new BufferedReader(new InputStreamReader(CmnProps.class.getClassLoader().getResourceAsStream(_propFile), "UTF-8"));
prop.load(br);
for(int i=0;i<KEYS;i++){
prop_val[i] = prop.getProperty(database + "." +PROP_KEY[i]);
}
- CmnProperty() {
+ CmnProps() {
super();
}
boolean isLob = false;
boolean isContinue = true;
boolean isEqual = false;
- CmnProperty cp = null;
- DataAccessObjects dao = null;
+ CmnProps cp = null;
+ CmnAccessObjects dao = null;
try {
- cp = new CmnProperty();
+ cp = new CmnProps();
cp.setProperty(database);
if(cp.inFolder != null){
}
CmnUtils.infoPrint("-->\93ü\97Í\8c³\83t\83H\83\8b\83_='" + folder + "'");
CmnUtils.infoPrint("\83f\81[\83^\83\8d\81[\83h\82ð\8aJ\8en\82µ\82Ü\82µ\82½\81B");
- dao = new DataAccessObjects(cp);
+ dao = new CmnAccessObjects(cp);
conn = dao.connect();
conn.setAutoCommit(false);
dao.select(cp.tSql);
int tb_count = 0;
String [] sqlLine = null;
- CmnProperty cp = null;
- DataAccessObjects dao = null;
+ CmnProps cp = null;
+ CmnAccessObjects dao = null;
try {
- cp = new CmnProperty();
+ cp = new CmnProps();
cp.setProperty(database);
if (cp.dbType != cp.DB_TYPE_ORACLE){
CmnUtils.infoPrint("\83\81\83^\83f\81[\83^\83\8d\81[\83h\82ð\8aJ\8en\82µ\82Ü\82µ\82½\81B");
// Connect
- dao = new DataAccessObjects(cp);
+ dao = new CmnAccessObjects(cp);
conn = dao.connect();
if(cp.isDrop){
}
}
- private void executeSqlFile(DataAccessObjects _dao, PreparedStatement _stmt, String _infile, CmnProperty _cp, boolean _isResume, boolean _isReplace) throws Exception{
+ private void executeSqlFile(CmnAccessObjects _dao, PreparedStatement _stmt, String _infile, CmnProps _cp, boolean _isResume, boolean _isReplace) throws Exception{
BufferedReader br = null;
String strLine = null;
String strMltLine = "";
String rfkCol = null;
String rfkColPos = null;
- CmnProperty cp = null;
- DataAccessObjects dao = null;
+ CmnProps cp = null;
+ CmnAccessObjects dao = null;
try {
- cp = new CmnProperty();
+ cp = new CmnProps();
cp.setProperty(database);
if (cp.dbType != cp.DB_TYPE_ORACLE){
CmnUtils.infoPrint("\83\81\83^\83f\81[\83^\83A\83\93\83\8d\81[\83h\82ð\8aJ\8en\82µ\82Ü\82µ\82½\81B");
// Connect
- dao = new DataAccessObjects(cp);
+ dao = new CmnAccessObjects(cp);
conn = dao.connect();
// Def tsv Writing start
for(int i=0;i<sql[cp.dbType].length;i++){
ArrayList<String> alData = null;
int tb_count = 0;
int tb_col_count = 0;
- CmnProperty cp = null;
- DataAccessObjects dao = null;
+ CmnProps cp = null;
+ CmnAccessObjects dao = null;
try {
- cp = new CmnProperty();
+ cp = new CmnProps();
cp.setProperty(database);
if(cp.outFolder != null){
CmnUtils.infoPrint("-->\8fo\97Í\90æ\83t\83H\83\8b\83_='" + folder + "'");
CmnUtils.infoPrint("\83f\81[\83^\83A\83\93\83\8d\81[\83h\82ð\8aJ\8en\82µ\82Ü\82µ\82½\81B");
- dao = new DataAccessObjects(cp);
+ dao = new CmnAccessObjects(cp);
conn = dao.connect();
dao.select(cp.tkSql);
alData = dao.getArrayList();
+++ /dev/null
-
-# Please enter the commit message for your changes. Lines starting
-# with '#' will be ignored, and an empty message aborts the commit.
-# On branch master
-# Your branch is up-to-date with 'com/master'.
-#
-# Changes to be committed:
-# new file: com/rapide_act/CmnUtils.java
-# new file: com/rapide_act/DataAccessObjects.java
-# new file: com/rapide_act/RapideLoader.java
-# new file: com/rapide_act/RapideUnloader.java
-#
-