/** * Creates a new object of the same class as this object. * @return a clone of this instance. * @exception CloneNotSupportedException if the object's class does not support the <code>Cloneable</code> interface. * @see java.lang.Cloneable */ public Object clone() throws CloneNotSupportedException { CompareFileFilter listener = new CompareFileFilter(); listener.init(null, fieldNameToCheck, m_strToCompare, m_strSeekSign, m_convFlag, m_bDontFilterIfNullCompare, m_fldToCheck, m_fldToCompare); return listener; } /**
/** * Creates a new object of the same class as this object. * @return a clone of this instance. * @exception CloneNotSupportedException if the object's class does not support the <code>Cloneable</code> interface. * @see java.lang.Cloneable */ public Object clone() throws CloneNotSupportedException { CompareFileFilter listener = new CompareFileFilter(); listener.init(null, m_iFieldSeqToCheck, m_strToCompare, m_strSeekSign, m_convFlag, m_bDontFilterIfNullCompare, m_fldToCheck, m_fldToCompare); return listener; } /**
/** * Get (or make) the current record for this reference. */ public Record makeReferenceRecord(RecordOwner recordOwner) { Record record = super.makeReferenceRecord(recordOwner); record.addListener(new CompareFileFilter(MessageTransport.kMessageTransportType, MessageTransportTypeField.MANUAL_RESPONSE, DBConstants.EQUALS, null, false)); return record; }
/** * DeleteAllDetail Method. */ public int deleteAllDetail(Booking recBooking, BaseField fldBookingPaxID, BaseField fldTourModuleID, Date dateStart) { CompareFileFilter filter = new CompareFileFilter(BookingLine.PRICING_STATUS_ID, Integer.toString(PricingStatus.MANUAL), FileListener.NOT_EQUAL, null, true); this.addListener(filter); // Don't delete manually entered items int iErrorCode = super.deleteAllDetail(recBooking, fldBookingPaxID, fldTourModuleID, dateStart); this.removeListener(filter, true); return iErrorCode; } /**
/** * Get (or make) the current record for this reference. */ public Record makeReferenceRecord(RecordOwner recordOwner) { Record record = super.makeReferenceRecord(recordOwner); record.addListener(new CompareFileFilter(record.getField(ContactType.LEVEL), "1", DBConstants.EQUALS, null, true)); return record; }
/** * Add behaviors to this session. */ public void addListeners() { super.addListeners(); ((ReferenceField)this.getScreenRecord().getField(ProductScreenRecord.CLASS_ID)).getReferenceRecord(this); ((ReferenceField)this.getScreenRecord().getField(AirScreenRecord.AIRLINE_ID)).getReferenceRecord(this); this.getMainRecord().addListener(new CompareFileFilter(Air.AIRLINE_ID, this.getScreenRecord().getField(AirScreenRecord.AIRLINE_ID), DBConstants.EQUALS, null, true)); this.getMainRecord().addListener(new CompareFileFilter(TransportProduct.CITY_ID, this.getScreenRecord().getField(ProductScreenRecord.CITY_ID), DBConstants.EQUALS, null, true)); this.getMainRecord().addListener(new CompareFileFilter(TransportProduct.TO_CITY_ID, this.getScreenRecord().getField(ProductScreenRecord.TO_CITY_ID), DBConstants.EQUALS, null, true)); } /**
/** * Add all the screen listeners. */ public void addListeners() { super.addListeners(); this.getMainRecord().addListener(new CompareFileFilter(this.getMainRecord().getField(Air.AIRLINE_ID), this.getScreenRecord().getField(AirScreenRecord.AIRLINE_ID), DBConstants.EQUALS)); this.getMainRecord().addListener(new CompareFileFilter(Product.CITY_ID, this.getScreenRecord().getField(ProductScreenRecord.CITY_ID), DBConstants.EQUALS, null, true)); this.getScreenRecord().getField(AirScreenRecord.AIRLINE_ID).addListener(new FieldReSelectHandler(this)); } /**
/** * Add all the screen listeners. */ public void addListeners() { super.addListeners(); this.getMainRecord().addListener(new CompareFileFilter(this.getMainRecord().getField(Air.AIRLINE_ID), this.getScreenRecord().getField(AirScreenRecord.AIRLINE_ID), DBConstants.EQUALS)); this.getMainRecord().addListener(new CompareFileFilter(Product.CITY_ID, this.getScreenRecord().getField(ProductScreenRecord.CITY_ID), DBConstants.EQUALS, null, true)); this.getScreenRecord().getField(AirScreenRecord.AIRLINE_ID).addListener(new FieldReSelectHandler(this)); } /**
/** * Add all the screen listeners. */ public void addListeners() { super.addListeners(); this.getMainRecord().addListener(new CompareFileFilter(Inventory.RATE_ID, this.getScreenRecord().getField(HotelScreenRecord.RATE_ID), "=", null, true)); this.getMainRecord().addListener(new CompareFileFilter(Inventory.CLASS_ID, this.getScreenRecord().getField(HotelScreenRecord.CLASS_ID), "=", null, true)); this.getScreenRecord().getField(HotelScreenRecord.RATE_ID).addListener(new FieldReSelectHandler(this)); this.getScreenRecord().getField(HotelScreenRecord.CLASS_ID).addListener(new FieldReSelectHandler(this)); } /**
/** * Add behaviors to this session. */ public void addListeners() { super.addListeners(); ((ReferenceField)this.getScreenRecord().getField(ProductScreenRecord.CLASS_ID)).getReferenceRecord(this); this.getMainRecord().addListener(new ExtractRangeFilter(Product.DESC_SORT, this.getScreenRecord().getField(ProductScreenRecord.DESCRIPTION))); this.getMainRecord().addListener(new CompareFileFilter(TransportProduct.CITY_ID, this.getScreenRecord().getField(ProductScreenRecord.CITY_ID), DBConstants.EQUALS, null, true)); this.getMainRecord().addListener(new CompareFileFilter(TransportProduct.TO_CITY_ID, this.getScreenRecord().getField(ProductScreenRecord.TO_CITY_ID), DBConstants.EQUALS, null, true)); } /**
/** * Add behaviors to this session. */ public void addListeners() { super.addListeners(); ((ReferenceField)this.getScreenRecord().getField(ProductScreenRecord.CLASS_ID)).getReferenceRecord(this); this.getMainRecord().addListener(new ExtractRangeFilter(Product.DESC_SORT, this.getScreenRecord().getField(ProductScreenRecord.DESCRIPTION))); this.getMainRecord().addListener(new CompareFileFilter(TransportProduct.CITY_ID, this.getScreenRecord().getField(ProductScreenRecord.CITY_ID), DBConstants.EQUALS, null, true)); this.getMainRecord().addListener(new CompareFileFilter(TransportProduct.TO_CITY_ID, this.getScreenRecord().getField(ProductScreenRecord.TO_CITY_ID), DBConstants.EQUALS, null, true)); } /**
/** * Add all the screen listeners. */ public void addListeners() { super.addListeners(); this.getMainRecord().addListener(new CompareFileFilter(HotelPricing.RATE_ID, this.getScreenRecord().getField(HotelScreenRecord.RATE_ID), "=", null, true)); this.getMainRecord().addListener(new CompareFileFilter(HotelPricing.CLASS_ID, this.getScreenRecord().getField(HotelScreenRecord.CLASS_ID), "=", null, true)); this.getScreenRecord().getField(HotelScreenRecord.RATE_ID).addListener(new FieldReSelectHandler(this)); this.getScreenRecord().getField(HotelScreenRecord.CLASS_ID).addListener(new FieldReSelectHandler(this)); } /**
/** * Add behaviors to this session. */ public void addListeners() { super.addListeners(); ((ReferenceField)this.getScreenRecord().getField(ProductScreenRecord.CLASS_ID)).getReferenceRecord(this); this.getMainRecord().addListener(new ExtractRangeFilter(Product.DESC_SORT, this.getScreenRecord().getField(ProductScreenRecord.DESCRIPTION))); this.getMainRecord().addListener(new CompareFileFilter(TransportProduct.CITY_ID, this.getScreenRecord().getField(ProductScreenRecord.CITY_ID), DBConstants.EQUALS, null, true)); this.getMainRecord().addListener(new CompareFileFilter(TransportProduct.TO_CITY_ID, this.getScreenRecord().getField(ProductScreenRecord.TO_CITY_ID), DBConstants.EQUALS, null, true)); } /**
/** * Add all the screen listeners. */ public void addListeners() { super.addListeners(); this.getMainRecord().addListener(new ExtractRangeFilter(Product.DESC_SORT, this.getScreenRecord().getField(ProductScreenRecord.DESCRIPTION))); this.getMainRecord().addListener(new CompareFileFilter(Product.CITY_ID, this.getScreenRecord().getField(ProductScreenRecord.CITY_ID), "=", null, true)); this.getMainRecord().addListener(new CompareFileFilter(Product.VENDOR_ID, this.getScreenRecord().getField(ProductScreenRecord.VENDOR_ID), "=", null, true)); this.getScreenRecord().getField(ProductScreenRecord.VENDOR_ID).addListener(new FieldReSelectHandler(this)); } /**
/** * Add all the screen listeners. */ public void addListeners() { super.addListeners(); this.getMainRecord().addListener(new ExtractRangeFilter(Product.DESC_SORT, this.getScreenRecord().getField(ProductScreenRecord.DESCRIPTION))); this.getMainRecord().addListener(new CompareFileFilter(Product.CITY_ID, this.getScreenRecord().getField(ProductScreenRecord.CITY_ID), "=", null, true)); this.getMainRecord().addListener(new CompareFileFilter(Product.VENDOR_ID, this.getScreenRecord().getField(ProductScreenRecord.VENDOR_ID), "=", null, true)); this.getScreenRecord().getField(ProductScreenRecord.VENDOR_ID).addListener(new FieldReSelectHandler(this)); } /**
/** * Add the sub file filter (linking the header to the main file) * Override this if the header does not have a direct link to the detail. */ public void addSubFileFilter() { this.getMainRecord().addListener(new CompareFileFilter(MessageProcessInfo.kMessageInfoID, (BaseField)this.getHeaderRecord().getCounterField(), DBConstants.EQUALS, null, true)); this.getMainRecord().getField(MessageProcessInfo.kMessageInfoID).addListener(new InitFieldHandler((BaseField)this.getHeaderRecord().getCounterField(), false)); }
/** * Add behaviors to this session. */ public void addListeners() { super.addListeners(); this.getMainRecord().addListener(new ExtractRangeFilter(Product.DESC_SORT, this.getScreenRecord().getField(ProductScreenRecord.DESCRIPTION))); this.getMainRecord().addListener(new CompareFileFilter(Product.CITY_ID, this.getScreenRecord().getField(ProductScreenRecord.CITY_ID), DBConstants.EQUALS, null, true)); } /**
/** * Add the behaviors. */ public void addListeners() { super.addListeners(); this.getScreenRecord().getField(RequestLabelsScreenRecord.SEND_VIA_ID).setData(this.getProperty("sendvia")); this.getMainRecord().addListener(new CompareFileFilter(this.getMainRecord().getField(Request.SEND_VIA_CODE), this.getScreenRecord().getField(RequestLabelsScreenRecord.SEND_VIA_ID), "=")); } /**
/** * Add behaviors to this session. */ public void addListeners() { super.addListeners(); ((ReferenceField)this.getScreenRecord().getField(ProductScreenRecord.CLASS_ID)).getReferenceRecord(this); this.getMainRecord().addListener(new ExtractRangeFilter(Product.DESC_SORT, this.getScreenRecord().getField(ProductScreenRecord.DESCRIPTION))); this.getMainRecord().addListener(new CompareFileFilter(Product.CITY_ID, this.getScreenRecord().getField(ProductScreenRecord.CITY_ID), DBConstants.EQUALS, null, true)); } /**
/** * Add all the screen listeners. */ public void addListeners() { super.addListeners(); this.getScreenRecord().getField(McoScreenRecord.CARD_ID).addListener(new InitFieldHandler(this.getRecord(ArControl.AR_CONTROL_FILE).getField(ArControl.CARD_ID))); this.getMainRecord().addListener(new CompareFileFilter(CreditCard.CARD_ID, this.getScreenRecord().getField(McoScreenRecord.CARD_ID), "=", null, false)); this.getScreenRecord().getField(McoScreenRecord.CARD_ID).addListener(new FieldReSelectHandler(this)); this.setAppending(false); } /**