OSDN Git Service

20170423
[rapideact/rapideact.git] / com / rapide_act / DataAccessObjects.java
index 5d6f71e..d3e8168 100644 (file)
@@ -87,7 +87,7 @@ public class DataAccessObjects{
                driver = cp.driver;
        }
 
-       public Connection connect() throws Exception{
+       protected Connection connect() throws Exception{
 
                try {
                        CmnUtils.debugPrint("Start Driver class loading");
@@ -110,7 +110,7 @@ public class DataAccessObjects{
                }
        }
 
-       public PreparedStatement prepareSql(String _sql) throws Exception{
+       protected PreparedStatement prepareSql(String _sql) throws Exception{
                try {
                        CmnUtils.debugPrint("Start prepared Statement");
                        CmnUtils.debugPrint(_sql);
@@ -126,7 +126,7 @@ public class DataAccessObjects{
                }
        }
 
-       public void executeSql() throws Exception{
+       protected void executeSql() throws Exception{
 
                try {
                        executeSql(stmt);
@@ -161,7 +161,7 @@ public class DataAccessObjects{
                }
        }
 
-       public void executeSql(PreparedStatement _stmt) throws Exception{
+       protected void executeSql(PreparedStatement _stmt) throws Exception{
 
                try {
                        CmnUtils.debugPrint("Start execute Query");
@@ -200,19 +200,19 @@ public class DataAccessObjects{
                }
        }
 
-       public void commit() throws Exception{
+       protected void commit() throws Exception{
                CmnUtils.debugPrint("Start commit");
                conn.commit();
                CmnUtils.debugPrint("End commit");
        }
 
-       public void rollback() throws Exception{
+       protected void rollback() throws Exception{
                CmnUtils.debugPrint("Start rollback");
                conn.rollback();
                CmnUtils.debugPrint("End rollback");
        }
        
-       public void closeRecordSet() throws Exception{
+       protected void closeRecordSet() throws Exception{
                if(rst != null){
                        rst.close();
                        rst = null;
@@ -223,7 +223,7 @@ public class DataAccessObjects{
                }
        }
 
-       public void select(String _sql) throws Exception{
+       protected void select(String _sql) throws Exception{
                PreparedStatement stmt;
                stmt = prepareSql(_sql);
                executeSql(stmt);
@@ -231,53 +231,53 @@ public class DataAccessObjects{
                closeRecordSet();
        }
 
-       public int getColumnCount() throws Exception{
+       protected int getColumnCount() throws Exception{
                return ColumnCount;
        }
 
-       public int getRecCount() throws Exception{
+       protected int getRecCount() throws Exception{
                return recCount;
        }
 
-       public ArrayList<String> getArrayList() throws Exception{
+       protected ArrayList<String> getArrayList() throws Exception{
                return alData;
        }
 
-       public ArrayList<String> getArrayColumnNameList() throws Exception{
+       protected ArrayList<String> getArrayColumnNameList() throws Exception{
                return alColName;
        }
        
-       public ArrayList<String> getArrayColumnTypeNameList() throws Exception{
+       protected ArrayList<String> getArrayColumnTypeNameList() throws Exception{
                return alColTypeName;
        }
 
-       public ArrayList<Integer> getArrayIsNullableList() throws Exception{
+       protected ArrayList<Integer> getArrayIsNullableList() throws Exception{
                return alIsNullable;
        }
 
-       public ArrayList<Integer> getArrayPrecisionList() throws Exception{
+       protected ArrayList<Integer> getArrayPrecisionList() throws Exception{
                return alColPrecision;
        }
 
-       public void setArrayColumnMaskList(ArrayList<Boolean> _alColMask) throws Exception{
+       protected void setArrayColumnMaskList(ArrayList<Boolean> _alColMask) throws Exception{
                alColMask = _alColMask;
                colMask = (Boolean[])alColMask.toArray(new Boolean[0]);
        }
 
-       public void setArrayColumnInclList(ArrayList<Boolean> _alColIncl) throws Exception{
+       protected void setArrayColumnInclList(ArrayList<Boolean> _alColIncl) throws Exception{
                alColIncl = _alColIncl;
                colIncl = (Boolean[])alColIncl.toArray(new Boolean[0]);
        }
 
-       public void setTableName(String _tbName) throws Exception{
+       protected void setTableName(String _tbName) throws Exception{
                tbName = _tbName;
        }
 
-       public ResultSet getResultSet() throws Exception{
+       protected ResultSet getResultSet() throws Exception{
                return rst;
        }
 
-       public void getRecordToArray() throws Exception{
+       protected void getRecordToArray() throws Exception{
                try {
                        CmnUtils.debugPrint("Start get RecordSet to Array");
                        while (rst.next()) {
@@ -302,7 +302,7 @@ public class DataAccessObjects{
                }
        }
        
-       public void getRecordToPrint(PrintWriter _pw, int _firstCol, int _lastCol) throws Exception{
+       protected void getRecordToPrint(PrintWriter _pw, int _firstCol, int _lastCol) throws Exception{
                try {
                        CmnUtils.debugPrint("Start get Record to Print");
                        recCount = 0;
@@ -668,7 +668,7 @@ public class DataAccessObjects{
                }
        }
 
-       public void disconnect() throws Exception{
+       protected void disconnect() throws Exception{
 
                try {
                        CmnUtils.debugPrint("Start disconnect database");