public class DB2Timestamp extends DBTimestamp
2002-01-01-00.00.00.000000").CLASS_DATE, CLASS_TIME, CLASS_TIMESTAMP| Constructor and Description |
|---|
DB2Timestamp(java.lang.String db2Timestamp)
Instantiates a DB2 timestamp, default native format.
|
DB2Timestamp(java.lang.String db2Timestamp,
java.lang.String sqlClass,
java.lang.String inFormat,
java.lang.String outFormat)
Instantiates a DB2 timestamp, default format.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setDSTime(java.lang.String db2Timestamp)
Translates a database-native timestamp/date/time value into an
equivalent directory format as per the arguments passed to the constructor.
|
getDSTime, precisionLostgetErrorMessage, getExceptions, parseErrorequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetErrorMessage, getExceptions, parseErrorpublic DB2Timestamp(java.lang.String db2Timestamp)
db2Timestamp - may be null;
the format should be yyyy-mm-dd-hh.mm.ss.ffffffpublic DB2Timestamp(java.lang.String db2Timestamp,
java.lang.String sqlClass,
java.lang.String inFormat,
java.lang.String outFormat)
db2Timestamp - may be null;
format should be yyyy-mm-dd-hh.mm.ss.ffffffsqlClass - should be java.sql.Timestamp,
java.sql.Date or java.sql.Time;
the default value is java.sql.TimestampinFormat - this parameter is currently ignored and
reserved for future useoutFormat - should be "1" (integer) or
"2" (string); the default value is "1"
(integer); may be nullpublic void setDSTime(java.lang.String db2Timestamp)
throws java.text.ParseException,
java.lang.IllegalArgumentException
DBTimeTranslatorsetDSTime in interface DBTimeTranslatorsetDSTime in class DBTimestampdb2Timestamp - a database-native timestamp, date, or time value;
may be nulljava.text.ParseExceptionjava.lang.IllegalArgumentException