/** * Move the physical binary data to this SQL parameter row. * @param resultset The resultset to get the SQL data from. * @param iColumn the column in the resultset that has my data. * @exception SQLException From SQL calls. */ public void moveSQLToField(ResultSet resultset, int iColumn) throws SQLException { java.util.Date dateResult = resultset.getTime(iColumn); if (resultset.wasNull()) this.setString(Constants.BLANK, false, DBConstants.READ_MOVE); // Null value else this.setValue((double)dateResult.getTime(), false, DBConstants.READ_MOVE); } /**
/** * Move the physical binary data to this SQL parameter row. * @param resultset The resultset to get the SQL data from. * @param iColumn the column in the resultset that has my data. * @exception SQLException From SQL calls. */ public void moveSQLToField(ResultSet resultset, int iColumn) throws SQLException { java.util.Date dateResult = resultset.getTime(iColumn); if (resultset.wasNull()) this.setString(Constants.BLANK, false, DBConstants.READ_MOVE); // Null value else this.setValue((double)dateResult.getTime(), false, DBConstants.READ_MOVE); } /**
/** * Move the physical binary data to this SQL parameter row. * @param resultset The resultset to get the SQL data from. * @param iColumn the column in the resultset that has my data. * @exception SQLException From SQL calls. */ public void moveSQLToField(ResultSet resultset, int iColumn) throws SQLException { java.util.Date dateResult = resultset.getTime(iColumn); if (resultset.wasNull()) this.setString(Constants.BLANK, false, DBConstants.READ_MOVE); // Null value else this.setValue((double)dateResult.getTime(), false, DBConstants.READ_MOVE); } /**
/** * Change the date and time of day. * @param date The date to set (only time portion is used). * @param bDisplayOption Display changed fields if true. * @param iMoveMode The move mode. * @return The error code (or NORMAL_RETURN). */ public int setDateTime(java.util.Date date, boolean bDisplayOption, int moveMode) { if (date != null) { m_calendar.setTime(date); m_calendar.set(Calendar.YEAR, DBConstants.FIRST_YEAR); m_calendar.set(Calendar.MONTH, Calendar.JANUARY); m_calendar.set(Calendar.DATE, 1); date = m_calendar.getTime(); return this.setValue(date.getTime(), bDisplayOption, moveMode); } else return this.setData(null, bDisplayOption, moveMode); } /**
/** * Change the date and time of day. * @param date The date to set (only time portion is used). * @param bDisplayOption Display changed fields if true. * @param iMoveMode The move mode. * @return The error code (or NORMAL_RETURN). */ public int setDateTime(java.util.Date date, boolean bDisplayOption, int moveMode) { if (date != null) { m_calendar.setTime(date); m_calendar.set(Calendar.YEAR, DBConstants.FIRST_YEAR); m_calendar.set(Calendar.MONTH, Calendar.JANUARY); m_calendar.set(Calendar.DATE, 1); date = m_calendar.getTime(); return this.setValue(date.getTime(), bDisplayOption, moveMode); } else return this.setData(null, bDisplayOption, moveMode); } /**
/** * Change the date and time of day. * @param date The date to set (only time portion is used). * @param bDisplayOption Display changed fields if true. * @param iMoveMode The move mode. * @return The error code (or NORMAL_RETURN). */ public int setDateTime(java.util.Date date, boolean bDisplayOption, int moveMode) { if (date != null) { m_calendar.setTime(date); m_calendar.set(Calendar.YEAR, DBConstants.FIRST_YEAR); m_calendar.set(Calendar.MONTH, Calendar.JANUARY); m_calendar.set(Calendar.DATE, 1); date = m_calendar.getTime(); return this.setValue(date.getTime(), bDisplayOption, moveMode); } else return this.setData(null, bDisplayOption, moveMode); } /**