/** * Restore the given field. If this method returns true, then you need * to use this field manager to replace the given field in the state * manager's instance. */ public boolean restoreField(int field) { if (!_loaded.get(field)) return false; if (_mutable != null && _mutable.get(field)) return true; // copy the saved field over if (_copyField == null) _copyField = new int[1]; _copyField[0] = field; _sm.getPersistenceCapable().pcCopyFields(_copy, _copyField); return false; }
/** * Restore the given field. If this method returns true, then you need * to use this field manager to replace the given field in the state * manager's instance. */ public boolean restoreField(int field) { if (!_loaded.get(field)) return false; if (_mutable != null && _mutable.get(field)) return true; // copy the saved field over if (_copyField == null) _copyField = new int[1]; _copyField[0] = field; _sm.getPersistenceCapable().pcCopyFields(_copy, _copyField); return false; }
/** * Restore the given field. If this method returns true, then you need * to use this field manager to replace the given field in the state * manager's instance. */ public boolean restoreField(int field) { if (!_loaded.get(field)) return false; if (_mutable != null && _mutable.get(field)) return true; // copy the saved field over if (_copyField == null) _copyField = new int[1]; _copyField[0] = field; _sm.getPersistenceCapable().pcCopyFields(_copy, _copyField); return false; }
/** * Restore the given field. If this method returns true, then you need * to use this field manager to replace the given field in the state * manager's instance. */ public boolean restoreField(int field) { if (!_loaded.get(field)) return false; if (_mutable != null && _mutable.get(field)) return true; // copy the saved field over if (_copyField == null) _copyField = new int[1]; _copyField[0] = field; _sm.getPersistenceCapable().pcCopyFields(_copy, _copyField); return false; }
/** * Restore the given field. If this method returns true, then you need * to use this field manager to replace the given field in the state * manager's instance. */ public boolean restoreField(int field) { if (!_loaded.get(field)) return false; if (_mutable != null && _mutable.get(field)) return true; // copy the saved field over if (_copyField == null) _copyField = new int[1]; _copyField[0] = field; _sm.getPersistenceCapable().pcCopyFields(_copy, _copyField); return false; }
/** * Restore the given field. If this method returns true, then you need * to use this field manager to replace the given field in the state * manager's instance. */ public boolean restoreField(int field) { // if the given field needs to be unloaded, return true so that it gets // replaced with a default value if (_unloaded.get(field)) return true; // if the field was not saved, it must not have gotten dirty; just // return false so that the current value is kept if (_saved == null || !_saved.get(field)) return false; // copy the saved field over if (_copyField == null) _copyField = new int[1]; _copyField[0] = field; _sm.getPersistenceCapable().pcCopyFields(getState(), _copyField); return false; }
/** * Restore the given field. If this method returns true, then you need * to use this field manager to replace the given field in the state * manager's instance. */ public boolean restoreField(int field) { // if the given field needs to be unloaded, return true so that it gets // replaced with a default value if (_unloaded.get(field)) return true; // if the field was not saved, it must not have gotten dirty; just // return false so that the current value is kept if (_saved == null || !_saved.get(field)) return false; // copy the saved field over if (_copyField == null) _copyField = new int[1]; _copyField[0] = field; _sm.getPersistenceCapable().pcCopyFields(getState(), _copyField); return false; }
/** * Restore the given field. If this method returns true, then you need * to use this field manager to replace the given field in the state * manager's instance. */ public boolean restoreField(int field) { // if the given field needs to be unloaded, return true so that it gets // replaced with a default value if (_unloaded.get(field)) return true; // if the field was not saved, it must not have gotten dirty; just // return false so that the current value is kept if (_saved == null || !_saved.get(field)) return false; // copy the saved field over if (_copyField == null) _copyField = new int[1]; _copyField[0] = field; _sm.getPersistenceCapable().pcCopyFields(getState(), _copyField); return false; }
/** * Restore the given field. If this method returns true, then you need * to use this field manager to replace the given field in the state * manager's instance. */ public boolean restoreField(int field) { // if the given field needs to be unloaded, return true so that it gets // replaced with a default value if (_unloaded.get(field)) return true; // if the field was not saved, it must not have gotten dirty; just // return false so that the current value is kept if (_saved == null || !_saved.get(field)) return false; // copy the saved field over if (_copyField == null) _copyField = new int[1]; _copyField[0] = field; _sm.getPersistenceCapable().pcCopyFields(getState(), _copyField); return false; }
/** * Restore the given field. If this method returns true, then you need * to use this field manager to replace the given field in the state * manager's instance. */ public boolean restoreField(int field) { // if the given field needs to be unloaded, return true so that it gets // replaced with a default value if (_unloaded.get(field)) return true; // if the field was not saved, it must not have gotten dirty; just // return false so that the current value is kept if (_saved == null || !_saved.get(field)) return false; // copy the saved field over if (_copyField == null) _copyField = new int[1]; _copyField[0] = field; _sm.getPersistenceCapable().pcCopyFields(getState(), _copyField); return false; }
/** * Store the data for the given field. */ public void storeField(FieldMetaData field) { switch (field.getDeclaredTypeCode()) { case JavaTypes.DATE: case JavaTypes.ARRAY: case JavaTypes.COLLECTION: case JavaTypes.MAP: case JavaTypes.OBJECT: if (_mutable == null) _mutable = new BitSet(_sm.getMetaData().getFields().length); _mutable.set(field.getIndex()); } if (_mutable == null || !_mutable.get(field.getIndex())) { // immutable fields can just be copied over if (_copyField == null) _copyField = new int[1]; _copyField[0] = field.getIndex(); _copy.pcCopyFields(_sm.getPersistenceCapable(), _copyField); } else { _sm.provideField(_sm.getPersistenceCapable(), this, field.getIndex()); _sm.replaceField(_copy, this, field.getIndex()); } }
/** * Store the data for the given field. */ public void storeField(FieldMetaData field) { switch (field.getDeclaredTypeCode()) { case JavaTypes.DATE: case JavaTypes.ARRAY: case JavaTypes.COLLECTION: case JavaTypes.MAP: case JavaTypes.OBJECT: if (_mutable == null) _mutable = new BitSet(_sm.getMetaData().getFields().length); _mutable.set(field.getIndex()); } if (_mutable == null || !_mutable.get(field.getIndex())) { // immutable fields can just be copied over if (_copyField == null) _copyField = new int[1]; _copyField[0] = field.getIndex(); _copy.pcCopyFields(_sm.getPersistenceCapable(), _copyField); } else { _sm.provideField(_sm.getPersistenceCapable(), this, field.getIndex()); _sm.replaceField(_copy, this, field.getIndex()); } }
/** * Store the data for the given field. */ public void storeField(FieldMetaData field) { switch (field.getDeclaredTypeCode()) { case JavaTypes.DATE: case JavaTypes.ARRAY: case JavaTypes.COLLECTION: case JavaTypes.MAP: case JavaTypes.OBJECT: if (_mutable == null) _mutable = new BitSet(_sm.getMetaData().getFields().length); _mutable.set(field.getIndex()); } if (_mutable == null || !_mutable.get(field.getIndex())) { // immutable fields can just be copied over if (_copyField == null) _copyField = new int[1]; _copyField[0] = field.getIndex(); _copy.pcCopyFields(_sm.getPersistenceCapable(), _copyField); } else { _sm.provideField(_sm.getPersistenceCapable(), this, field.getIndex()); _sm.replaceField(_copy, this, field.getIndex()); } }
/** * Store the data for the given field. */ public void storeField(FieldMetaData field) { switch (field.getDeclaredTypeCode()) { case JavaTypes.DATE: case JavaTypes.ARRAY: case JavaTypes.COLLECTION: case JavaTypes.MAP: case JavaTypes.OBJECT: if (_mutable == null) _mutable = new BitSet(_sm.getMetaData().getFields().length); _mutable.set(field.getIndex()); } if (_mutable == null || !_mutable.get(field.getIndex())) { // immutable fields can just be copied over if (_copyField == null) _copyField = new int[1]; _copyField[0] = field.getIndex(); _copy.pcCopyFields(_sm.getPersistenceCapable(), _copyField); } else { _sm.provideField(_sm.getPersistenceCapable(), this, field.getIndex()); _sm.replaceField(_copy, this, field.getIndex()); } }
/** * Store the data for the given field. */ public void storeField(FieldMetaData field) { switch (field.getDeclaredTypeCode()) { case JavaTypes.DATE: case JavaTypes.ARRAY: case JavaTypes.COLLECTION: case JavaTypes.MAP: case JavaTypes.OBJECT: if (_mutable == null) _mutable = new BitSet(_sm.getMetaData().getFields().length); _mutable.set(field.getIndex()); } if (_mutable == null || !_mutable.get(field.getIndex())) { // immutable fields can just be copied over if (_copyField == null) _copyField = new int[1]; _copyField[0] = field.getIndex(); _copy.pcCopyFields(_sm.getPersistenceCapable(), _copyField); } else { _sm.provideField(_sm.getPersistenceCapable(), this, field.getIndex()); _sm.replaceField(_copy, this, field.getIndex()); } }
_copyField = new int[1]; _copyField[0] = field; getState().pcCopyFields(_sm.getPersistenceCapable(), _copyField); return false;
fields[i] = i; _pc.pcCopyFields(origPC, fields); _pc.pcReplaceStateManager(this); _state = newState;
fields[i] = i; _pc.pcCopyFields(origPC, fields); _pc.pcReplaceStateManager(this); _state = newState;
fields[i] = i; _pc.pcCopyFields(origPC, fields); _pc.pcReplaceStateManager(this); _state = newState;
fields[i] = i; _pc.pcCopyFields(origPC, fields); _pc.pcReplaceStateManager(this); _state = newState;