/** * Print the time part of the calendar. */ public static String printTime(Calendar calendar) { return printTime(calendar, true); }
/** * Print the time part of the calendar. */ public static String printTime(Calendar calendar) { return printTime(calendar, true); }
/** * Print the time part of the calendar. */ public static String printTime(Calendar calendar) { return printTime(calendar, true); }
/** * Appends a Time in Symfoware specific format.<br> * Symfoware: TIME'hh:mm:ss' */ @Override protected void appendTime(java.sql.Time time, Writer writer) throws IOException { writer.write("TIME'" + Helper.printTime(time) + "'"); }
/** * Appends a Time in Symfoware specific format.<br> * Symfoware: TIME'hh:mm:ss' */ @Override protected void appendTime(java.sql.Time time, Writer writer) throws IOException { writer.write("TIME'" + Helper.printTime(time) + "'"); }
@Override protected void appendTime(Time time, Writer writer) throws IOException { writer.write("TO_TIME('"); writer.write(Helper.printTime(time)); writer.write("')"); }
/** * Answer a platform correct string representation of a Time, suitable for SQL generation. * The time is printed in the ODBC platform independent format {t'hh:mm:ss'}. */ protected void appendTime(java.sql.Time time, Writer writer) throws IOException { writer.write("{t '"); writer.write(Helper.printTime(time)); writer.write("'}"); }
/** * Answer a platform correct string representation of a Time, suitable for SQL generation. * The time is printed in the ODBC platform independent format {t'hh:mm:ss'}. */ protected void appendTime(java.sql.Time time, Writer writer) throws IOException { writer.write("{t '"); writer.write(Helper.printTime(time)); writer.write("'}"); }
@Override protected void appendTime(Time time, Writer writer) throws IOException { writer.write("TO_TIME('"); writer.write(Helper.printTime(time)); writer.write("')"); }
/** * Answer a platform correct string representation of a Time, suitable for SQL generation. * The time is printed in the ODBC platform independent format {t'hh:mm:ss'}. */ protected void appendTime(java.sql.Time time, Writer writer) throws IOException { writer.write("{t '"); writer.write(Helper.printTime(time)); writer.write("'}"); }
/** * Print the Calendar without the nanos portion. */ public static String printCalendarWithoutNanos(Calendar calendar) { StringBuilder timestampBuf = new StringBuilder(); timestampBuf.append(printDate(calendar)); timestampBuf.append(" "); timestampBuf.append(printTime(calendar)); return timestampBuf.toString(); }
/** * Print the Calendar without the nanos portion. */ public static String printCalendarWithoutNanos(Calendar calendar) { StringBuilder timestampBuf = new StringBuilder(); timestampBuf.append(printDate(calendar)); timestampBuf.append(" "); timestampBuf.append(printTime(calendar)); return timestampBuf.toString(); }
/** * Print the Calendar without the nanos portion. */ public static String printCalendarWithoutNanos(Calendar calendar) { StringBuffer timestampBuf = new StringBuffer(); timestampBuf.append(printDate(calendar)); timestampBuf.append(" "); timestampBuf.append(printTime(calendar)); return timestampBuf.toString(); }
/** * Answer a platform correct string representation of a Time, suitable for SQL generation. * The time is printed in the ODBC platform independent format {t'hh:mm:ss'}. */ protected void appendTime(java.sql.Time time, Writer writer) throws IOException { if (usesNativeSQL()) { writer.write("'"); writer.write(Helper.printTime(time)); writer.write("'"); } else { super.appendTime(time, writer); } }
/** * Answer a platform correct string representation of a Time, suitable for SQL generation. * The time is printed in the ODBC platform independent format {t'hh:mm:ss'}. */ protected void appendTime(java.sql.Time time, Writer writer) throws IOException { if (usesNativeSQL()) { writer.write("'"); writer.write(Helper.printTime(time)); writer.write("'"); } else { super.appendTime(time, writer); } }
/** * Answer a platform correct string representation of a Time, suitable for SQL generation. * The time is printed in the ODBC platform independent format {t'hh:mm:ss'}. */ protected void appendTime(java.sql.Time time, Writer writer) throws IOException { if (usesNativeSQL()) { writer.write("'"); writer.write(Helper.printTime(time)); writer.write("'"); } else { super.appendTime(time, writer); } }
/** * Appends an MySQL specific time if usesNativeSQL is true otherwise use the ODBC format. * Native FORMAT: 'HH:MM:SS'. */ protected void appendTime(java.sql.Time time, Writer writer) throws IOException { if (usesNativeSQL()) { writer.write("'"); writer.write(Helper.printTime(time)); writer.write("'"); } else { super.appendTime(time, writer); } }
/** * Print the sql.Time. */ public static String printTime(java.sql.Time time) { // PERF: Avoid deprecated get methods, that are now very inefficient and used from toString. Calendar calendar = allocateCalendar(); calendar.setTime(time); String string = printTime(calendar); releaseCalendar(calendar); return string; }
/** * Print the sql.Time. */ public static String printTime(java.sql.Time time) { // PERF: Avoid deprecated get methods, that are now very inefficient and used from toString. Calendar calendar = allocateCalendar(); calendar.setTime(time); String string = printTime(calendar); releaseCalendar(calendar); return string; }
/** * Print the sql.Time. */ public static String printTime(java.sql.Time time) { // PERF: Avoid deprecated get methods, that are now very inefficient and used from toString. Calendar calendar = allocateCalendar(); calendar.setTime(time); String string = printTime(calendar); releaseCalendar(calendar); return string; }