/** * Answer a platform correct string representation of a Timestamp, suitable for SQL generation. * The timestamp is printed in the ODBC platform independent timestamp format {ts'YYYY-MM-DD HH:MM:SS.NNNNNNNNN'}. */ protected void appendTimestamp(java.sql.Timestamp timestamp, Writer writer) throws IOException { writer.write("{ts '"); writer.write(Helper.printTimestamp(timestamp)); writer.write("'}"); }
@Override protected void appendTimestamp(Timestamp timestamp, Writer writer) throws IOException { writer.write("TO_TIMESTAMP('"); writer.write(Helper.printTimestamp(timestamp)); writer.write("')"); }
/** * Answer a platform correct string representation of a Timestamp, suitable for SQL generation. * The timestamp is printed in the ODBC platform independent timestamp format {ts'YYYY-MM-DD HH:MM:SS.NNNNNNNNN'}. */ protected void appendTimestamp(java.sql.Timestamp timestamp, Writer writer) throws IOException { writer.write("{ts '"); writer.write(Helper.printTimestamp(timestamp)); writer.write("'}"); }
/** * Answer a platform correct string representation of a Timestamp, suitable for SQL generation. * The timestamp is printed in the ODBC platform independent timestamp format {ts'YYYY-MM-DD HH:MM:SS.NNNNNNNNN'}. */ protected void appendTimestamp(java.sql.Timestamp timestamp, Writer writer) throws IOException { writer.write("{ts '"); writer.write(Helper.printTimestamp(timestamp)); writer.write("'}"); }
@Override protected void appendTimestamp(Timestamp timestamp, Writer writer) throws IOException { writer.write("TO_TIMESTAMP('"); writer.write(Helper.printTimestamp(timestamp)); writer.write("')"); }
/** * INTERNAL: * Appends an Oracle specific Timestamp, if usesNativeSQL is true otherwise use the ODBC format. * Native Format: to_timestamp ('1997-11-06 10:35:45.656' , 'yyyy-mm-dd hh:mm:ss.ff') */ @Override protected void appendTimestamp(java.sql.Timestamp timestamp, Writer writer) throws IOException { if (usesNativeSQL()) { writer.write("to_timestamp('"); writer.write(Helper.printTimestamp(timestamp)); writer.write("','yyyy-mm-dd HH24:MI:SS.FF')"); } else { super.appendTimestamp(timestamp, writer); } }
/** * INTERNAL: * Appends an Oracle specific Timestamp, if usesNativeSQL is true otherwise use the ODBC format. * Native Format: to_timestamp ('1997-11-06 10:35:45.656' , 'yyyy-mm-dd hh:mm:ss.ff') */ @Override protected void appendTimestamp(java.sql.Timestamp timestamp, Writer writer) throws IOException { if (usesNativeSQL()) { writer.write("to_timestamp('"); writer.write(Helper.printTimestamp(timestamp)); writer.write("','yyyy-mm-dd HH24:MI:SS.FF')"); } else { super.appendTimestamp(timestamp, writer); } }
return sourceObject.toString(); } else if (sourceObjectClass == ClassConstants.UTILDATE) { return Helper.printTimestamp(Helper.timestampFromDate((java.util.Date)sourceObject)); } else if (sourceObject instanceof java.util.Calendar) { return Helper.printCalendar((Calendar)sourceObject); } else if (sourceObjectClass == ClassConstants.TIMESTAMP) { return Helper.printTimestamp((java.sql.Timestamp)sourceObject); } else if (sourceObject instanceof java.sql.Date) { return Helper.printDate((java.sql.Date)sourceObject);
return sourceObject.toString(); } else if (sourceObjectClass == ClassConstants.UTILDATE) { return Helper.printTimestamp(Helper.timestampFromDate((java.util.Date)sourceObject)); } else if (sourceObject instanceof java.util.Calendar) { return Helper.printCalendar((Calendar)sourceObject); } else if (sourceObjectClass == ClassConstants.TIMESTAMP) { return Helper.printTimestamp((java.sql.Timestamp)sourceObject); } else if (sourceObject instanceof java.sql.Date) { return Helper.printDate((java.sql.Date)sourceObject);
return Helper.printTimestamp(Helper.timestampFromDate((java.util.Date)sourceObject)); } else if (sourceObject instanceof Calendar) { return Helper.printCalendar((Calendar)sourceObject); } else if (sourceObject instanceof java.sql.Timestamp) { return Helper.printTimestamp((java.sql.Timestamp)sourceObject); } else if (sourceObject instanceof java.sql.Date) { return Helper.printDate((java.sql.Date)sourceObject);