/** * Convenience setter which sets the value using a {@link Date} object. Passing in <code>null</code> clears any existing value. * * Note: Sets fields using precision up to the second * * @param theDate The date object from which to retrieve values * @since 1.1 */ public void setValueToSecond(Date theDate) throws DataTypeException { if (theDate == null) { setValue((String)null); return; } Calendar calendar = Calendar.getInstance(); calendar.setTime(theDate); setValueToSecond(calendar); }
/** * Convenience setter which sets the value using a {@link Date} object. Passing in <code>null</code> clears any existing value. * * Note: Sets fields using precision up to the second * * @param theDate The date object from which to retrieve values * @since 1.1 */ public void setValueToSecond(Date theDate) throws DataTypeException { if (theDate == null) { setValue((String)null); return; } Calendar calendar = Calendar.getInstance(); calendar.setTime(theDate); setValueToSecond(calendar); }
/** * Convenience setter which sets the value using a {@link Calendar} object. * * Note: Sets fields using precision up to the second * * @param theCalendar The calendar object from which to retrieve values * @since 1.1 */ public void setValueToSecond(Calendar theCalendar) throws DataTypeException { setValue((String)null); getDetail().setValueToSecond(theCalendar); }
/** * Convenience setter which sets the value using a {@link Calendar} object. * * Note: Sets fields using precision up to the second * * @param theCalendar The calendar object from which to retrieve values * @since 1.1 */ public void setValueToSecond(Calendar theCalendar) throws DataTypeException { setValue((String)null); getDetail().setValueToSecond(theCalendar); }
/** * Convenience setter which sets the value using a {@link Date} object. * * Note: Sets fields using precision up to the second * * @param theDate The date object from which to retrieve values * @since 1.1 */ public void setValueToSecond(Date theDate) throws DataTypeException { setValue((String)null); getDetail().setValueToSecond(theDate); }
/** * Convenience setter which sets the value using a {@link Date} object. * * Note: Sets fields using precision up to the second * * @param theDate The date object from which to retrieve values * @since 1.1 */ public void setValueToSecond(Date theDate) throws DataTypeException { setValue((String)null); getDetail().setValueToSecond(theDate); }