/** * Initialize this object. * @param record The parent record. * @param strName The field name. * @param iDataLength The maximum string length (pass -1 for default). * @param strDesc The string description (usually pass null, to use the resource file desc). * @param strDefault The default value (if object, this value is the default value, if string, the string is the default). */ public void init(Record record, String strName, int iDataLength, String strDesc, Object strDefault) { super.init(record, strName, iDataLength, strDesc, strDefault); if (iDataLength == DBConstants.DEFAULT_FIELD_LENGTH) m_iMaxLength = BIG_DEFAULT_LENGTH; if (this.getListener(FieldDataScratchHandler.class.getName()) == null) this.addListener(new FieldDataScratchHandler(null)); // This is needed for any merge operation } /**
/** * Initialize this object. * @param record The parent record. * @param strName The field name. * @param iDataLength The maximum string length (pass -1 for default). * @param strDesc The string description (usually pass null, to use the resource file desc). * @param strDefault The default value (if object, this value is the default value, if string, the string is the default). */ public void init(Record record, String strName, int iDataLength, String strDesc, Object strDefault) { super.init(record, strName, iDataLength, strDesc, strDefault); if (iDataLength == DBConstants.DEFAULT_FIELD_LENGTH) m_iMaxLength = BIG_DEFAULT_LENGTH; if (this.getListener(FieldDataScratchHandler.class.getName()) == null) this.addListener(new FieldDataScratchHandler(null)); // This is needed for any merge operation } /**
/** * Initialize this object. * @param record The parent record. * @param strName The field name. * @param iDataLength The maximum string length (pass -1 for default). * @param strDesc The string description (usually pass null, to use the resource file desc). * @param strDefault The default value (if object, this value is the default value, if string, the string is the default). */ public void init(Record record, String strName, int iDataLength, String strDesc, Object strDefault) { super.init(record, strName, iDataLength, strDesc, strDefault); if (iDataLength == DBConstants.DEFAULT_FIELD_LENGTH) m_iMaxLength = BIG_DEFAULT_LENGTH; if (this.getListener(FieldDataScratchHandler.class.getName()) == null) this.addListener(new FieldDataScratchHandler(null)); // This is needed for any merge operation } /**
/** * Constructor. * @param record My owner (usually passed as null, and set on addListener in setOwner()). * @param iMainFilesField The sequence of the date changed field in this record. * @param field The date changed field in this record. */ public void init(Record record, DateTimeField field) { super.init(record); m_field = field; FieldDataScratchHandler listener = new FieldDataScratchHandler(null); listener.setAlwaysEnabled(true); // Since this holds the current key m_field.addListener(listener); // I will need the original value for the sql update this.setMasterSlaveFlag(FileListener.RUN_IN_SLAVE | FileListener.RUN_IN_MASTER); // Set date key in slave code, check for error in master code } /**
/** * Constructor. * @param record My owner (usually passed as null, and set on addListener in setOwner()). * @param iMainFilesField The sequence of the date changed field in this record. * @param field The date changed field in this record. */ public void init(Record record, DateTimeField field) { super.init(record); m_field = field; FieldDataScratchHandler listener = new FieldDataScratchHandler(null); listener.setAlwaysEnabled(true); // Since this holds the current key m_field.addListener(listener); // I will need the original value for the sql update this.setMasterSlaveFlag(FileListener.RUN_IN_SLAVE | FileListener.RUN_IN_MASTER); // Set date key in slave code, check for error in master code } /**
/** * Constructor. * @param record My owner (usually passed as null, and set on addListener in setOwner()). * @param iMainFilesField The sequence of the date changed field in this record. * @param field The date changed field in this record. */ public void init(Record record, DateTimeField field) { super.init(record); m_field = field; FieldDataScratchHandler listener = new FieldDataScratchHandler(null); listener.setAlwaysEnabled(true); // Since this holds the current key m_field.addListener(listener); // I will need the original value for the sql update this.setMasterSlaveFlag(FileListener.RUN_IN_SLAVE | FileListener.RUN_IN_MASTER); // Set date key in slave code, check for error in master code } /**
this.getField(BookingDetail.DETAIL_DATE).addListener(new FieldDataScratchHandler(null, false)); // Don't change on refresh this.getField(BookingDetail.DETAIL_DATE).addListener(new CopyDataHandler(this.getField(BookingDetail.INFO_STATUS_REQUEST), boolRequestRequiredFlag, converterNotInfoManualTransport)); this.getField(BookingDetail.INFO_STATUS_REQUEST).addListener(new CheckRequestRequiredHandler(BookingDetail.INFO_STATUS_ID)); this.getField(BookingDetail.MARKUP_FROM_LAST).addListener(fieldListener = new FieldDataScratchHandler(null)
this.getField(BookingDetail.DETAIL_DATE).addListener(new FieldDataScratchHandler(null, false)); // Don't change on refresh this.getField(BookingDetail.DETAIL_DATE).addListener(new CopyDataHandler(this.getField(BookingDetail.INFO_STATUS_REQUEST), boolRequestRequiredFlag, converterNotInfoManualTransport)); this.getField(BookingDetail.INFO_STATUS_REQUEST).addListener(new CheckRequestRequiredHandler(BookingDetail.INFO_STATUS_ID)); this.getField(BookingDetail.MARKUP_FROM_LAST).addListener(fieldListener = new FieldDataScratchHandler(null)
this.getField(Tour.DEPARTURE_DATE).addListener(new FieldDataScratchHandler(null));
this.getField(Tour.DEPARTURE_DATE).addListener(new FieldDataScratchHandler(null));