// ----------------------------------------------------------
private String sqlldr (Object oValue) {
String sClass;
String sRetVal;
Date dtValue;
Timestamp tsValue;
if (null==oValue) {
sRetVal = "NULL";
}
else {
sClass = oValue.getClass().getName();
if (sClass.equals("java.lang.String"))
sRetVal = "\"" + oValue.toString() + "\"";
else if (sClass.equals("java.util.Date") || sClass.equals("java.sql.Date")) {
dtValue = (Date) oValue;
sRetVal = String.valueOf(dtValue.getYear()+1900) + "-";
sRetVal += (dtValue.getMonth()+1<10 ? "0" + String.valueOf(dtValue.getMonth()+1) : String.valueOf(dtValue.getMonth()+1)) + "-";
sRetVal += (dtValue.getDay()+1<10 ? "0" + String.valueOf(dtValue.getDay()+1) : String.valueOf(dtValue.getDay()+1)) + " ";
sRetVal += (dtValue.getHours()<10 ? "0" + String.valueOf(dtValue.getHours()) : String.valueOf(dtValue.getHours())) + ":";
sRetVal += (dtValue.getMinutes()<10 ? "0" + String.valueOf(dtValue.getMinutes()) : String.valueOf(dtValue.getMinutes())) + ":";
sRetVal += (dtValue.getSeconds()<10 ? "0" + String.valueOf(dtValue.getSeconds()) : String.valueOf(dtValue.getSeconds()));
dtValue = null;
}
else if (sClass.equals("java.sql.Timestamp")) {
tsValue = (Timestamp) oValue;
sRetVal = String.valueOf(tsValue.getYear()+1900) + "-";