/** * Check to see if this record should be skipped. * @param strFilter The current SQL WHERE string. * @param bIncludeFileName Include the Filename.fieldName in the string. * @param vParamList The list of params. * @return true if the criteria passes. * @return false if the criteria fails, and returns without checking further. */ public boolean handleRemoteCriteria(StringBuffer strFilter, boolean bIncludeFileName, Vector<BaseField> vParamList) { BaseListener nextListener = this.getNextEnabledListener(); if (nextListener != null) return ((FileListener)nextListener).doRemoteCriteria(strFilter, bIncludeFileName, vParamList); else return this.doRemoteCriteria(strFilter, bIncludeFileName, vParamList); } /**
/** * Check to see if this record should be skipped. * @param strFilter The current SQL WHERE string. * @param bIncludeFileName Include the Filename.fieldName in the string. * @param vParamList The list of params. * @return true if the criteria passes. * @return false if the criteria fails, and returns without checking further. */ public boolean handleRemoteCriteria(StringBuffer strFilter, boolean bIncludeFileName, Vector<BaseField> vParamList) { BaseListener nextListener = this.getNextEnabledListener(); if (nextListener != null) return ((FileListener)nextListener).doRemoteCriteria(strFilter, bIncludeFileName, vParamList); else return this.doRemoteCriteria(strFilter, bIncludeFileName, vParamList); } /**
/** * Check to see if this record should be skipped. * @param strFilter The current SQL WHERE string. * @param bIncludeFileName Include the Filename.fieldName in the string. * @param vParamList The list of params. * @return true if the criteria passes. * @return false if the criteria fails, and returns without checking further. */ public boolean handleRemoteCriteria(StringBuffer strFilter, boolean bIncludeFileName, Vector<BaseField> vParamList) { BaseListener nextListener = this.getNextEnabledListener(); if (nextListener != null) return ((FileListener)nextListener).doRemoteCriteria(strFilter, bIncludeFileName, vParamList); else return this.doRemoteCriteria(strFilter, bIncludeFileName, vParamList); } /**
/** * Set up/do the remote criteria. * @param strbFilter The SQL query string to add to. * @param bIncludeFileName Include the file name with this query? * @param vParamList The param list to add the raw data to (for prepared statements). * @return True if you should not skip this record (does a check on the local data). */ public boolean doRemoteCriteria(StringBuffer strbFilter, boolean bIncludeFileName, Vector<BaseField> vParamList) { boolean bDontSkip = true; FileListener nextListener = (FileListener)this.getNextEnabledListener(); if (nextListener != null) { boolean bOldState = nextListener.setEnabledListener(false); // Don't allow it to be called again bDontSkip = nextListener.doRemoteCriteria(strbFilter, bIncludeFileName, vParamList); nextListener.setEnabledListener(bOldState); } else if (this.getOwner() != null) bDontSkip = this.getOwner().doRemoteCriteria(strbFilter, bIncludeFileName, vParamList); return bDontSkip; // Don't skip (no criteria) } /**
/** * Set up/do the remote criteria. * @param strbFilter The SQL query string to add to. * @param bIncludeFileName Include the file name with this query? * @param vParamList The param list to add the raw data to (for prepared statements). * @return True if you should not skip this record (does a check on the local data). */ public boolean doRemoteCriteria(StringBuffer strbFilter, boolean bIncludeFileName, Vector<BaseField> vParamList) { boolean bDontSkip = true; FileListener nextListener = (FileListener)this.getNextEnabledListener(); if (nextListener != null) { boolean bOldState = nextListener.setEnabledListener(false); // Don't allow it to be called again bDontSkip = nextListener.doRemoteCriteria(strbFilter, bIncludeFileName, vParamList); nextListener.setEnabledListener(bOldState); } else if (this.getOwner() != null) bDontSkip = this.getOwner().doRemoteCriteria(strbFilter, bIncludeFileName, vParamList); return bDontSkip; // Don't skip (no criteria) } /**
/** * Set up/do the remote criteria. * @param strbFilter The SQL query string to add to. * @param bIncludeFileName Include the file name with this query? * @param vParamList The param list to add the raw data to (for prepared statements). * @return True if you should not skip this record (does a check on the local data). */ public boolean doRemoteCriteria(StringBuffer strbFilter, boolean bIncludeFileName, Vector<BaseField> vParamList) { boolean bDontSkip = true; FileListener nextListener = (FileListener)this.getNextEnabledListener(); if (nextListener != null) { boolean bOldState = nextListener.setEnabledListener(false); // Don't allow it to be called again bDontSkip = nextListener.doRemoteCriteria(strbFilter, bIncludeFileName, vParamList); nextListener.setEnabledListener(bOldState); } else if (this.getOwner() != null) bDontSkip = this.getOwner().doRemoteCriteria(strbFilter, bIncludeFileName, vParamList); return bDontSkip; // Don't skip (no criteria) } /**