if (!this.getOwner().isRefreshedRecord()) break; // No first add bSetIfModified = false; case DBConstants.ADD_TYPE: boolean bNonNulls = this.setMainKey(bDisplayOption, null, bSetIfModified); // Set up the key (keys are marked as changed if they change!) if ((bNonNulls == false) && ((this.getOwner().getMasterSlave() & RecordOwner.SLAVE) == 0)) // Don't return for a server! if (this.getOwner().getTask() != null) return this.getOwner().getTask().setLastError("Main key cannot be null"); return DBConstants.ERROR_RETURN; // Key can't be null!
/** * 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 DependentFileFilter(int iFieldSeq, int iFieldSeq2, int iFieldSeq3) { this(); this.init(null, iFieldSeq, iFieldSeq2, iFieldSeq3); } /**
/** * 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) } /**
/** * Set the record that owns this listener. * This method caches the current key values. * @param owner My owner. */ public void setOwner(ListenerOwner owner) { if (owner != null) if (m_buffer == null) { // Save the current key KeyArea keyArea = ((Record)owner).getKeyArea(-1); m_buffer = new VectorBuffer(null); keyArea.setupKeyBuffer(m_buffer, DBConstants.FILE_KEY_AREA); } super.setOwner(owner); } /**
/** * Set the record that owns this listener. * This method looks up up all the fields in the record. * @param owner My owner. */ public void setOwner(ListenerOwner owner) { super.setOwner(owner); if (owner == null) return; if (m_iThisFileFieldSeq != -1) m_fldThisFile = this.getOwner().getField(m_iThisFileFieldSeq); if (m_iThisFileFieldSeq2 != -1) m_fldThisFile2 = this.getOwner().getField(m_iThisFileFieldSeq2); if (m_iThisFileFieldSeq3 != -1) m_fldThisFile3 = this.getOwner().getField(m_iThisFileFieldSeq3); //? if (m_fldThisFile != null) //? m_fldThisFile.saveEnableListeners(false); // Don't let behaviors mess with my values. //? if (m_fldThisFile2 != null) //? m_fldThisFile2.saveEnableListeners(false); // Note: This is because of a conflict with. //? if (m_fldThisFile3 != null) //? m_fldThisFile3.saveEnableListeners(false); // InitOnceFieldHandler, the value is only set once. //x this.setMainKey(true, null); // Initialize the keys } /**
return super.doRecordChange(field, iChangeType, bDisplayOption); // Initialize the record
/** * 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(); } /**
/** * Set the record that owns this listener. * This method caches the current key values. * @param owner My owner. */ public void setOwner(ListenerOwner owner) { if (owner != null) if (m_buffer == null) { // Save the current key KeyArea keyArea = ((Record)owner).getKeyArea(-1); m_buffer = new VectorBuffer(null); keyArea.setupKeyBuffer(m_buffer, DBConstants.FILE_KEY_AREA); } super.setOwner(owner); } /**
/** * Set the record that owns this listener. * This method looks up up all the fields in the record. * @param owner My owner. */ public void setOwner(ListenerOwner owner) { super.setOwner(owner); if (owner == null) return; if (m_iThisFileFieldSeq != -1) m_fldThisFile = this.getOwner().getField(m_iThisFileFieldSeq); if (m_iThisFileFieldSeq2 != -1) m_fldThisFile2 = this.getOwner().getField(m_iThisFileFieldSeq2); if (m_iThisFileFieldSeq3 != -1) m_fldThisFile3 = this.getOwner().getField(m_iThisFileFieldSeq3); //? if (m_fldThisFile != null) //? m_fldThisFile.saveEnableListeners(false); // Don't let behaviors mess with my values. //? if (m_fldThisFile2 != null) //? m_fldThisFile2.saveEnableListeners(false); // Note: This is because of a conflict with. //? if (m_fldThisFile3 != null) //? m_fldThisFile3.saveEnableListeners(false); // InitOnceFieldHandler, the value is only set once. //x this.setMainKey(true, null); // Initialize the keys } /**
return super.doRecordChange(field, iChangeType, bDisplayOption); // Initialize the record
/** * 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) } /**
if (!this.getOwner().isRefreshedRecord()) break; // No first add bSetIfModified = false; case DBConstants.ADD_TYPE: boolean bNonNulls = this.setMainKey(bDisplayOption, null, bSetIfModified); // Set up the key (keys are marked as changed if they change!) if ((bNonNulls == false) && ((this.getOwner().getMasterSlave() & RecordOwner.SLAVE) == 0)) // Don't return for a server! if (this.getOwner().getTask() != null) return this.getOwner().getTask().setLastError("Main key cannot be null"); return DBConstants.ERROR_RETURN; // Key can't be null!
/** * 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 DependentFileFilter(int iFieldSeq, int iFieldSeq2, int iFieldSeq3) { this(); this.init(null, iFieldSeq, iFieldSeq2, iFieldSeq3); } /**
/** * Set the record that owns this listener. * This method caches the current key values. * @param owner My owner. */ public void setOwner(ListenerOwner owner) { if (owner != null) if (m_buffer == null) { // Save the current key KeyArea keyArea = ((Record)owner).getKeyArea(-1); m_buffer = new VectorBuffer(null); keyArea.setupKeyBuffer(m_buffer, DBConstants.FILE_KEY_AREA); } super.setOwner(owner); } /**
/** * Set the record that owns this listener. * This method looks up up all the fields in the record. * @param owner My owner. */ public void setOwner(ListenerOwner owner) { super.setOwner(owner); if (owner == null) return; if (m_fldThisFile == null) if (thisFileFieldName != null) m_fldThisFile = this.getOwner().getField(thisFileFieldName); if (m_fldThisFile2 == null) if (thisFileFieldName2 != null) m_fldThisFile2 = this.getOwner().getField(thisFileFieldName2); if (m_fldThisFile3 == null) if (thisFileFieldName3 != null) m_fldThisFile3 = this.getOwner().getField(thisFileFieldName3); //? if (m_fldThisFile != null) //? m_fldThisFile.saveEnableListeners(false); // Don't let behaviors mess with my values. //? if (m_fldThisFile2 != null) //? m_fldThisFile2.saveEnableListeners(false); // Note: This is because of a conflict with. //? if (m_fldThisFile3 != null) //? m_fldThisFile3.saveEnableListeners(false); // InitOnceFieldHandler, the value is only set once. //x this.setMainKey(true, null); // Initialize the keys } /**
return super.doRecordChange(field, iChangeType, bDisplayOption); // Initialize the record
/** * 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) } /**
if (!this.getOwner().isRefreshedRecord()) break; // No first add bSetIfModified = false; case DBConstants.ADD_TYPE: boolean bNonNulls = this.setMainKey(bDisplayOption, null, bSetIfModified); // Set up the key (keys are marked as changed if they change!) if ((bNonNulls == false) && ((this.getOwner().getMasterSlave() & RecordOwner.SLAVE) == 0)) // Don't return for a server! if (this.getOwner().getTask() != null) return this.getOwner().getTask().setLastError("Main key cannot be null"); return DBConstants.ERROR_RETURN; // Key can't be null!
/** * Constructor. * @param strFirst First string in the key fields. * @param strSecond Second string in the key fields. * @param strThird Third string in the key fields. * @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 void init(Record record, String mainString, int iFieldSeq, String strSecond, int secondFilesField, String strThird, int thirdFilesField) { super.init(record, iFieldSeq, secondFilesField, thirdFilesField); m_strFirst = mainString; m_strSecond = strSecond; m_strThird = strThird; } /**
super.setOwner(owner); if (owner == null) return;