driver = cp.driver;
}
- public Connection connect() throws Exception{
+ protected Connection connect() throws Exception{
try {
CmnUtils.debugPrint("Start Driver class loading");
}
}
- public PreparedStatement prepareSql(String _sql) throws Exception{
+ protected PreparedStatement prepareSql(String _sql) throws Exception{
try {
CmnUtils.debugPrint("Start prepared Statement");
CmnUtils.debugPrint(_sql);
}
}
- public void executeSql() throws Exception{
+ protected void executeSql() throws Exception{
try {
executeSql(stmt);
}
}
- public void executeSql(PreparedStatement _stmt) throws Exception{
+ protected void executeSql(PreparedStatement _stmt) throws Exception{
try {
CmnUtils.debugPrint("Start execute Query");
}
}
- 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;
}
}
- public void select(String _sql) throws Exception{
+ protected void select(String _sql) throws Exception{
PreparedStatement stmt;
stmt = prepareSql(_sql);
executeSql(stmt);
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()) {
}
}
- 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;
}
}
- public void disconnect() throws Exception{
+ protected void disconnect() throws Exception{
try {
CmnUtils.debugPrint("Start disconnect database");