/** * Initialize class fields. */ public void init(String iFieldSeq, BaseField fldStart, BaseField fldEnd) { super.init(null); m_iFieldSeq = iFieldSeq; m_fldStart = fldStart; m_fldEnd = fldEnd; } /**
/** * DoValidRecord Method. */ public void doValidRecord(boolean bDisplayOption) { super.doValidRecord(bDisplayOption); } /**
/** * Free Method. */ public void free() { super.free(); } /**
/** * Check the record locally. */ public boolean doLocalCriteria(StringBuffer strbFilter, boolean bIncludeFileName, Vector<BaseField> vParamList) { Object objTargetValue = m_fldTarget.getData(); if ((m_hsFilter != null) && (!m_hsFilter.isEmpty()) && (!m_hsFilter.contains(objTargetValue))) return false; return super.doLocalCriteria(strbFilter, bIncludeFileName, vParamList); } /**
/** * Set the field or file that owns this listener. * @param owner My owner. */ public void setOwner(ListenerOwner owner) { super.setOwner(owner); } /**
/** * Add the criteria to the SQL string. */ public boolean doRemoteCriteria(StringBuffer strbFilter, boolean bIncludeFileName, Vector<BaseField> vParamList) { BaseField fldTarget = this.getOwner().getField(m_iTypeField); String strToCompare = Integer.toString(m_iTargetValue); boolean bDontSkip = this.fieldCompare(fldTarget, strToCompare, DBConstants.EQUALS, strbFilter, bIncludeFileName, vParamList); if (strbFilter != null) bDontSkip = true; // Don't need to compare, if I'm creating a filter to pass to SQL if (bDontSkip) return super.doRemoteCriteria(strbFilter, bIncludeFileName, vParamList); // Dont skip this record else return false; // Skip this one } /**
/** * Called when a new blank record is required for the table/query. * @param bDisplayOption If true, display any changes. */ public void doNewRecord(boolean bDisplayOption) { super.doNewRecord(bDisplayOption); // Initialize the record this.setMainKey(bDisplayOption, Boolean.FALSE, true); // Set up the key (DO NOT mark all fields as changed) } /**
/** * Setup the initial key position in this record... Save it! */ public void doInitialKey() { if (m_bInitialKey) this.setMainKey(DBConstants.DONT_DISPLAY, Boolean.TRUE, true); // Set up the key (mark all fields as changed) super.doInitialKey(); // This is the starting key, set the initial position } /**
/** * Setup the end key position in this record... Save it! */ public void doEndKey() { if (m_bEndKey) this.setMainKey(DBConstants.DONT_DISPLAY, Boolean.TRUE, true); // Set up the key (mark all fields as changed) super.doEndKey(); } /**
int iErrorCode = super.doRecordChange(field, iChangeType, bDisplayOption); // Initialize the record if (iErrorCode != DBConstants.NORMAL_RETURN) return iErrorCode;
/** * Check the record locally. */ public boolean doLocalCriteria(StringBuffer strbFilter, boolean bIncludeFileName, Vector<BaseField> vParamList) { Object objTargetValue = m_fldTarget.getData(); if ((m_hsFilter != null) && (!m_hsFilter.isEmpty()) && (!m_hsFilter.contains(objTargetValue))) return false; return super.doLocalCriteria(strbFilter, bIncludeFileName, vParamList); } /**
/** * Set the field or file that owns this listener. * @param owner My owner. */ public void setOwner(ListenerOwner owner) { super.setOwner(owner); } /**
/** * Add the criteria to the SQL string. */ public boolean doRemoteCriteria(StringBuffer strbFilter, boolean bIncludeFileName, Vector<BaseField> vParamList) { BaseField fldTarget = this.getOwner().getField(m_iTypeField); String strToCompare = Integer.toString(m_iTargetValue); boolean bDontSkip = this.fieldCompare(fldTarget, strToCompare, DBConstants.EQUALS, strbFilter, bIncludeFileName, vParamList); if (strbFilter != null) bDontSkip = true; // Don't need to compare, if I'm creating a filter to pass to SQL if (bDontSkip) return super.doRemoteCriteria(strbFilter, bIncludeFileName, vParamList); // Dont skip this record else return false; // Skip this one } /**
/** * Called when a new blank record is required for the table/query. * @param bDisplayOption If true, display any changes. */ public void doNewRecord(boolean bDisplayOption) { super.doNewRecord(bDisplayOption); // Initialize the record this.setMainKey(bDisplayOption, Boolean.FALSE, true); // Set up the key (DO NOT mark all fields as changed) } /**
/** * Setup the initial key position in this record... Save it! */ public void doInitialKey() { if (m_bInitialKey) this.setMainKey(DBConstants.DONT_DISPLAY, Boolean.TRUE, true); // Set up the key (mark all fields as changed) super.doInitialKey(); // This is the starting key, set the initial position } /**
/** * Setup the end key position in this record... Save it! */ public void doEndKey() { if (m_bEndKey) this.setMainKey(DBConstants.DONT_DISPLAY, Boolean.TRUE, true); // Set up the key (mark all fields as changed) super.doEndKey(); } /**
int iErrorCode = super.doRecordChange(field, iChangeType, bDisplayOption); // Initialize the record if (iErrorCode != DBConstants.NORMAL_RETURN) return iErrorCode;
/** * Constructor. * @param iFieldSeq The First field sequence of the key. * @param iFieldSeq2 The Second field sequence of the key (-1 for none). * @param iFieldSeq3 The Third field sequence of the key (-1 for none). */ public FileFilter(Record record) { this(); this.init(record); } /**
/** * Check the record locally. */ public boolean doLocalCriteria(StringBuffer strbFilter, boolean bIncludeFileName, Vector<BaseField> vParamList) { Object objTargetValue = m_fldTarget.getData(); if ((m_hsFilter != null) && (!m_hsFilter.isEmpty()) && (!m_hsFilter.contains(objTargetValue))) return false; return super.doLocalCriteria(strbFilter, bIncludeFileName, vParamList); } /**
/** * Set the field or file that owns this listener. * @param owner My owner. */ public void setOwner(ListenerOwner owner) { super.setOwner(owner); } /**