/** * Move the physical binary data to this SQL parameter row. * This method uses the getTimestamp resultset method. * @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.getTimestamp(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. * This method uses the getTimestamp resultset method. * @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.getTimestamp(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. * This method uses the getTimestamp resultset method. * @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.getTimestamp(iColumn); if (resultset.wasNull()) this.setString(Constants.BLANK, false, DBConstants.READ_MOVE); // Null value else this.setValue((double)dateResult.getTime(), false, DBConstants.READ_MOVE); } /**
m_strModuleStartDate = this.getProperty(BookingAnswerGridScreen.MODULE_START_DATE); if (m_strModuleStartDate != null) m_fldModuleStart.setString(m_strModuleStartDate); if ((m_strModuleID != null) && (m_strModuleStartDate != null))
/** * Add all the screen listeners. */ public void addListeners() { super.addListeners(); this.getMainRecord().getField(BookingAnswer.DESCRIPTION).setEnabled(false); Record recTourHeader = this.getRecord(TourHeader.TOUR_HEADER_FILE); Record recBooking = this.getRecord(Booking.BOOKING_FILE); m_fldModuleStart.setString(m_strModuleStartDate); this.getMainRecord().setKeyArea(BookingAnswer.BOOKING_ID_KEY); this.getMainRecord().addListener(new SubFileFilter(recBooking.getField(Booking.ID), BookingAnswer.BOOKING_ID, m_recBookingPax.getField(BookingPax.ID), BookingAnswer.BOOKING_PAX_ID, recTourHeader.getField(TourHeader.ID), BookingAnswer.MODULE_ID)); this.getMainRecord().addListener(new StringSubFileFilter(m_strTourOrOption, BookingAnswer.TOUR_OR_OPTION, m_strTourOrOptionID, BookingAnswer.TOUR_OR_OPTION_ID, null, null)); this.getMainRecord().addListener(new SubFileFilter(m_fldModuleStart, BookingAnswer.MODULE_START_DATE, null, null, null, null)); BooleanField fldTrue = new BooleanField(null, DBConstants.BLANK, DBConstants.DEFAULT_FIELD_LENGTH, DBConstants.BLANK, null); fldTrue.setState(true); this.getMainRecord().addListener(new FreeOnFreeHandler(fldTrue)); this.getMainRecord().addListener(new CompareFileFilter(BookingAnswer.ASK_FOR_ANSWER, fldTrue, DBConstants.EQUALS, null, false)); this.setAppending(false); this.getMainRecord().getField(BookingAnswer.SELECTED).addListener(new BookingAnswerSelectHandler(null)); } /**