/** * PUBLIC: * Function, return an expression that adds to a date based on * the specified datePart. This is equivalent to the Sybase DATEADD function. * <p>Example: * <blockquote><pre> * TopLink: employee.get("date").addDate("year", 2) * Java: NA * SQL: DATEADD(date, 2, year) * </blockquote></pre> */ public Expression addDate(String datePart, int numberToAdd) { return addDate(datePart, new Integer(numberToAdd)); }
/** * PUBLIC: * Function, return an expression that adds to a date based on * the specified datePart. This is equivalent to the Sybase DATEADD function. * <p>Example: * <blockquote><pre> * EclipseLink: employee.get("date").addDate("year", 2) * Java: NA * SQL: DATEADD(date, 2, year) * </pre></blockquote> */ public Expression addDate(String datePart, int numberToAdd) { return addDate(datePart, Integer.valueOf(numberToAdd)); }
/** * PUBLIC: * Function, return an expression that adds to a date based on * the specified datePart. This is equivalent to the Sybase DATEADD function. * <p>Example: * <blockquote><pre> * EclipseLink: employee.get("date").addDate("year", 2) * Java: NA * SQL: DATEADD(date, 2, year) * </pre></blockquote> */ public Expression addDate(String datePart, int numberToAdd) { return addDate(datePart, Integer.valueOf(numberToAdd)); }