/** * 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 { SubCurrentFilter newBehavior = new SubCurrentFilter(m_iLastModifiedToSet, m_bInitialKey, m_bEndKey); if (m_buffer != null) newBehavior.setBuffer((BaseBuffer)m_buffer.clone()); return newBehavior; } /**
/** * Constructor. * @param iLastModifedToSet Force all the keys to modified up to this key (-1 = none). * @param bStart Use the current key values for the initial key? * @param bEnd Use the current key values for the end key? */ public SubCurrentFilter(int iLastModifiedToSet, boolean bStart, boolean bEnd) { this(); this.init(null, iLastModifiedToSet, bStart, bEnd); } /**
/** * Constructor. * @param iLastModifedToSet Force all the keys to modified up to this key (-1 = none). * @param record My owner (usually passed as null, and set on addListener in setOwner()). * @param bStart Use the current key values for the initial key? * @param bEnd Use the current key values for the end key? */ public void init(Record record, int iLastModifiedToSet, boolean bStart, boolean bEnd) { super.init(record, null, null, null, null, null, null); this.setInitialKey(bStart); this.setEndKey(bEnd); m_iLastModifiedToSet = iLastModifiedToSet; } /**
this.close(); this.setKeyArea(HotelMealPricing.HOTEL_ID_KEY); this.addListener(listener = new SubCurrentFilter(true, false)); while (this.hasNext())
if (Boolean.TRUE.equals(boolSetModified)) KeyArea keyArea = this.getOwner().getKeyArea(-1); m_buffer.resetPosition(); keyArea.reverseKeyBuffer(m_buffer, DBConstants.FILE_KEY_AREA);
this.close(); this.setKeyArea(HotelMealPricing.HOTEL_ID_KEY); this.addListener(listener = new SubCurrentFilter(true, false)); while (this.hasNext())
if (Boolean.TRUE.equals(boolSetModified)) KeyArea keyArea = this.getOwner().getKeyArea(-1); m_buffer.resetPosition(); keyArea.reverseKeyBuffer(m_buffer, DBConstants.FILE_KEY_AREA);
this.close(); this.setKeyArea(HotelPricing.PRODUCT_ID_KEY); this.addListener(listener = new SubCurrentFilter(true, false)); while (this.hasNext())
/** * 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 { SubCurrentFilter newBehavior = new SubCurrentFilter(m_iLastModifiedToSet, m_bInitialKey, m_bEndKey); if (m_buffer != null) newBehavior.setBuffer((BaseBuffer)m_buffer.clone()); return newBehavior; } /**
/** * Constructor. * @param iLastModifedToSet Force all the keys to modified up to this key (-1 = none). * @param record My owner (usually passed as null, and set on addListener in setOwner()). * @param bStart Use the current key values for the initial key? * @param bEnd Use the current key values for the end key? */ public void init(Record record, int iLastModifiedToSet, boolean bStart, boolean bEnd) { super.init(record, -1, -1, -1); this.setInitialKey(bStart); this.setEndKey(bEnd); m_iLastModifiedToSet = iLastModifiedToSet; } /**
/** * Constructor. * @param bStart Use the current key values for the initial key? * @param bEnd Use the current key values for the end key? */ public SubCurrentFilter(boolean bStart, boolean bEnd) { this(); this.init(null, -1, bStart, bEnd); } /**
if (Boolean.TRUE.equals(boolSetModified)) KeyArea keyArea = this.getOwner().getKeyArea(-1); m_buffer.resetPosition(); keyArea.reverseKeyBuffer(m_buffer, DBConstants.FILE_KEY_AREA);
this.close(); this.setKeyArea(HotelPricing.PRODUCT_ID_KEY); this.addListener(listener = new SubCurrentFilter(true, false)); while (this.hasNext())
/** * 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 { SubCurrentFilter newBehavior = new SubCurrentFilter(m_iLastModifiedToSet, m_bInitialKey, m_bEndKey); if (m_buffer != null) newBehavior.setBuffer((BaseBuffer)m_buffer.clone()); return newBehavior; } /**
/** * Constructor. * @param iLastModifedToSet Force all the keys to modified up to this key (-1 = none). * @param record My owner (usually passed as null, and set on addListener in setOwner()). * @param bStart Use the current key values for the initial key? * @param bEnd Use the current key values for the end key? */ public void init(Record record, int iLastModifiedToSet, boolean bStart, boolean bEnd) { super.init(record, -1, -1, -1); this.setInitialKey(bStart); this.setEndKey(bEnd); m_iLastModifiedToSet = iLastModifiedToSet; } /**
/** * Constructor. * @param iLastModifedToSet Force all the keys to modified up to this key (-1 = none). * @param bStart Use the current key values for the initial key? * @param bEnd Use the current key values for the end key? */ public SubCurrentFilter(int iLastModifiedToSet, boolean bStart, boolean bEnd) { this(); this.init(null, iLastModifiedToSet, bStart, bEnd); } /**
iLastModified = -1; this.getMainRecord().addListener(listener = new SubCurrentFilter(iLastModified, true, false)); // Use current listener.setMasterSlaveFlag(listener.getMasterSlaveFlag() | FileListener.INITED_IN_SLAVE | FileListener.LINKED_TO_SLAVE | FileListener.RUN_IN_SLAVE); iLastModified = -1; this.getMainRecord().addListener(listener = new SubCurrentFilter(iLastModified, false, true)); // Use current listener.setMasterSlaveFlag(listener.getMasterSlaveFlag() | FileListener.INITED_IN_SLAVE | FileListener.LINKED_TO_SLAVE | FileListener.RUN_IN_SLAVE);
/** * Constructor. * @param bStart Use the current key values for the initial key? * @param bEnd Use the current key values for the end key? */ public SubCurrentFilter(boolean bStart, boolean bEnd) { this(); this.init(null, -1, bStart, bEnd); } /**
FileListener behavior = new SubCurrentFilter(true, false); this.addListener(behavior);
/** * Constructor. * @param iLastModifedToSet Force all the keys to modified up to this key (-1 = none). * @param bStart Use the current key values for the initial key? * @param bEnd Use the current key values for the end key? */ public SubCurrentFilter(int iLastModifiedToSet, boolean bStart, boolean bEnd) { this(); this.init(null, iLastModifiedToSet, bStart, bEnd); } /**