@Override
    public String sqlTimeStamp(final long date) {
        final StringBuffer sqlTS = new StringBuffer();

        if (useToDate) {
            final SimpleDateFormat oracleToDate = new SimpleDateFormat("yyyy MM dd HH:mm:ss");
            sqlTS.append("TO_DATE('");
            sqlTS.append(oracleToDate.format(new Date(date)));
            sqlTS.append("', 'YYYY MM DD HH24:MI:SS')");
        } else if (useTSWrapper) {
            sqlTS.append("{ts '");
            sqlTS.append(new Timestamp(date).toString());
            sqlTS.append("'}");
        } else {
            sqlTS.append("'");
            sqlTS.append(new Timestamp(date).toString());
            sqlTS.append("'");
        }

        return sqlTS.toString();
    }
@ Override public String sqlTimeStamp ( final long date ) { final StringBuffer sqlTS = new StringBuffer ( ) ; if ( useToDate ) { final SimpleDateFormat oracleToDate = new SimpleDateFormat ( "yyyy MM dd HH:mm:ss" ) ; sqlTS . append ( "TO_DATE('" ) ; sqlTS . append ( oracleToDate . format ( new Date ( date ) ) ) ; sqlTS . append ( "', 'YYYY MM DD HH24:MI:SS')" ) ; } else if ( useTSWrapper ) { sqlTS . append ( "{ts '" ) ; sqlTS . append ( new Timestamp ( date ) . toString ( ) ) ; sqlTS . append ( "'}" ) ; } else { sqlTS . append ( "'" ) ; sqlTS . append ( new Timestamp ( date ) . toString ( ) ) ; sqlTS . append ( "'" ) ; } return sqlTS . toString ( ) ; }
@see IDatabaseMetadata#sqlTimeStamp(long)