oracle.sql.TIMESTAMP转为java.sql.TIMESTAMP的方法
/** * @reference oracle.sql.Datum.timestampValue(); * @return */ private Timestamp getOracleTimestamp(Object value) { try { Class clz = value.getClass(); Method m = clz.getMethod("timestampValue"); //m = clz.getMethod("timeValue", null); 时间类型 //m = clz.getMethod("dateValue", null); 日期类型 return (Timestamp) m.invoke(value); } catch (Exception e) { return null; } }