/** * 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 { return new StartSearchFilter(m_fldToCompare); } }
/** * Constructor. * @param pfldToCompare The field to compare. */ public StartSearchFilter(BaseField fldToCompare, String strCompareOperation) { this(); this.init(null, -1, null, strCompareOperation, null, true, null, fldToCompare); } /**
public boolean doRemoteCriteria(StringBuffer strbFilter, boolean bIncludeFileName, Vector<BaseField> vParamList) { BaseField fldToCompare = m_fldToCompare; // Cache this in case it is changed KeyArea keyArea = this.getOwner().getKeyArea(); m_fldToCheck = keyArea.getField(DBConstants.MAIN_KEY_FIELD); String strSeekSignSave = m_strSeekSign; if (m_strSeekSign == DBConstants.BLANK) { m_strSeekSign = GREATER_THAN_EQUAL; if (keyArea.getKeyOrder(DBConstants.MAIN_KEY_FIELD) == DBConstants.DESCENDING) m_strSeekSign = LESS_THAN_EQUAL; } // Now, we have to convert the field to a CDate for the compare to use if (m_fldToCheck instanceof DateField) this.fakeTheDate(); // Convert the string field to a date for compare boolean bDontSkip = super.doRemoteCriteria(strbFilter, bIncludeFileName, vParamList); // Dont skip this record m_fldToCheck = null; m_fldToCompare = fldToCompare; // Set this value back m_strSeekSign = strSeekSignSave; // Restore this. return bDontSkip; } public static final String FAKE_DATE = "Fake Date";
public boolean doRemoteCriteria(StringBuffer strbFilter, boolean bIncludeFileName, Vector<BaseField> vParamList) { BaseField fldToCompare = m_fldToCompare; // Cache this in case it is changed KeyArea keyArea = this.getOwner().getKeyArea(); m_fldToCheck = keyArea.getField(DBConstants.MAIN_KEY_FIELD); String strSeekSignSave = m_strSeekSign; if (m_strSeekSign == DBConstants.BLANK) { m_strSeekSign = GREATER_THAN_EQUAL; if (keyArea.getKeyOrder(DBConstants.MAIN_KEY_FIELD) == DBConstants.DESCENDING) m_strSeekSign = LESS_THAN_EQUAL; } // Now, we have to convert the field to a CDate for the compare to use if (m_fldToCheck instanceof DateField) this.fakeTheDate(); // Convert the string field to a date for compare boolean bDontSkip = super.doRemoteCriteria(strbFilter, bIncludeFileName, vParamList); // Dont skip this record m_fldToCheck = null; m_fldToCompare = fldToCompare; // Set this value back m_strSeekSign = strSeekSignSave; // Restore this. return bDontSkip; } public static final String FAKE_DATE = "Fake Date";
/** * 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 { return new StartSearchFilter(m_fldToCompare); } }
public boolean doRemoteCriteria(StringBuffer strbFilter, boolean bIncludeFileName, Vector<BaseField> vParamList) { BaseField fldToCompare = m_fldToCompare; // Cache this in case it is changed KeyArea keyArea = this.getOwner().getKeyArea(); m_fldToCheck = keyArea.getField(DBConstants.MAIN_KEY_FIELD); String strSeekSignSave = m_strSeekSign; if (m_strSeekSign == DBConstants.BLANK) { m_strSeekSign = GREATER_THAN_EQUAL; if (keyArea.getKeyOrder(DBConstants.MAIN_KEY_FIELD) == DBConstants.DESCENDING) m_strSeekSign = LESS_THAN_EQUAL; } // Now, we have to convert the field to a CDate for the compare to use if (m_fldToCheck instanceof DateField) this.fakeTheDate(); // Convert the string field to a date for compare boolean bDontSkip = super.doRemoteCriteria(strbFilter, bIncludeFileName, vParamList); // Dont skip this record m_fldToCheck = null; m_fldToCompare = fldToCompare; // Set this value back m_strSeekSign = strSeekSignSave; // Restore this. return bDontSkip; } public static final String FAKE_DATE = "Fake Date";
/** * Constructor. * @param pfldToCompare The field to compare. */ public StartSearchFilter(BaseField fldToCompare) { this(); this.init(null, null, null, null, true, null, fldToCompare); } /**
/** * 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 { return new StartSearchFilter(m_fldToCompare); } }
/** * Constructor. * @param pfldToCompare The field to compare. */ public StartSearchFilter(BaseField fldToCompare, String strCompareOperation) { this(); this.init(null, null, strCompareOperation, null, true, null, fldToCompare); } /**
this.getMainRecord().addListener(new BitFileFilter(recTourHeader.getField(TourHeader.TOUR_TYPE), screenQuery.getField(LookupScreenRecord.TOUR_HDR_TOUR_TYPE))); screenQuery.getField(LookupScreenRecord.TOUR_HDR_TOUR_TYPE).addListener(new FieldReSelectHandler(this)); this.getMainRecord().addListener(new StartSearchFilter(screenQuery.getField(LookupScreenRecord.START_TARGET_FIELD))); screenQuery.getField(LookupScreenRecord.START_TARGET_FIELD).addListener(new FieldReSelectHandler(this)); FieldListener behInitOnChange = new InitOnChangeHandler(screenQuery.getField(LookupScreenRecord.START_TARGET_FIELD));
/** * Constructor. * @param pfldToCompare The field to compare. */ public StartSearchFilter(BaseField fldToCompare, String strCompareOperation) { this(); this.init(null, -1, null, strCompareOperation, null, true, null, fldToCompare); } /**
recTourHeader.addListener(new CompareFileFilter(TourHeader.START_DATE, screenRecord.getField(LookupScreenRecord.TOUR_HDR_END_DATE), "<=", null, true)); screenRecord.getField(LookupScreenRecord.TOUR_HDR_END_DATE).addListener(new FieldReSelectHandler(this)); this.getMainRecord().addListener(new StartSearchFilter(screenRecord.getField(LookupScreenRecord.START_TARGET_FIELD))); screenRecord.getField(LookupScreenRecord.START_TARGET_FIELD).addListener(new FieldReSelectHandler(this)); FieldListener behInitOnChange = new InitOnChangeHandler(screenRecord.getField(LookupScreenRecord.START_TARGET_FIELD));
/** * Constructor. * @param pfldToCompare The field to compare. */ public StartSearchFilter(BaseField fldToCompare) { this(); this.init(null, -1, null, null, null, true, null, fldToCompare); } /**
this.getMainRecord().addListener(new CompareFileFilter(recTour.getField(Tour.DEPARTURE_DATE), screenRecord.getField(LookupScreenRecord.TOUR_HDR_END_DATE), "<=", null, true)); screenRecord.getField(LookupScreenRecord.TOUR_HDR_END_DATE).addListener(new FieldReSelectHandler(this)); this.getMainRecord().addListener(new StartSearchFilter(screenRecord.getField(LookupScreenRecord.START_TARGET_FIELD))); screenRecord.getField(LookupScreenRecord.START_TARGET_FIELD).addListener(new FieldReSelectHandler(this)); FieldListener behInitOnChange = new InitOnChangeHandler(screenRecord.getField(LookupScreenRecord.START_TARGET_FIELD));
/** * Constructor. * @param pfldToCompare The field to compare. */ public StartSearchFilter(BaseField fldToCompare) { this(); this.init(null, -1, null, null, null, true, null, fldToCompare); } /**
this.getMainRecord().addListener(new CompareFileFilter(recTour.getField(Tour.DEPARTURE_DATE), screenRecord.getField(LookupScreenRecord.TOUR_HDR_END_DATE), "<=", null, true)); screenRecord.getField(LookupScreenRecord.TOUR_HDR_END_DATE).addListener(new FieldReSelectHandler(this)); this.getMainRecord().addListener(new StartSearchFilter(screenRecord.getField(LookupScreenRecord.START_TARGET_FIELD)));
this.getMainRecord().addListener(new CompareFileFilter(recTour.getField(Tour.DEPARTURE_DATE), screenRecord.getField(LookupScreenRecord.TOUR_HDR_END_DATE), "<=", null, true)); screenRecord.getField(LookupScreenRecord.TOUR_HDR_END_DATE).addListener(new FieldReSelectHandler(this)); this.getMainRecord().addListener(new StartSearchFilter(screenRecord.getField(LookupScreenRecord.START_TARGET_FIELD)));