| java.lang.Object org.jpox.store.fieldmanager.AbstractFieldManager org.jpox.store.fieldmanager.AttachFieldManager
AttachFieldManager | public class AttachFieldManager extends AbstractFieldManager (Code) | | Utility class to handle the attach of fields.
The attachment process has 2 distinct cases to cater for.
- The object was detached, has been updated, and needs reattaching.
- The object was detached from a different datastore, and is being attached here.
In the first case, the fields which are dirty have their values (and dirty flags) updated.
In the second case, all fields have their fields (and dirty flags) updated.
In addition this field manager allows attaching a copy, or attaching in-situ
version: $Revision: 1.14 $ |
Field Summary | |
final protected static Localiser | LOCALISER Localiser for internationalisation. | boolean | copy Whether we should create attached copies, or attach in situ. |
Constructor Summary | |
public | AttachFieldManager(StateManager smAttached, boolean secondClassMutableFields, boolean dirtyFields, boolean persistent, boolean cascadeAttach, boolean copy) Constructor. |
Method Summary | |
public void | storeBooleanField(int fieldNumber, boolean value) | public void | storeByteField(int fieldNumber, byte value) | public void | storeCharField(int fieldNumber, char value) | public void | storeDoubleField(int fieldNumber, double value) | public void | storeFloatField(int fieldNumber, float value) | public void | storeIntField(int fieldNumber, int value) | public void | storeLongField(int fieldNumber, long value) | public void | storeObjectField(int fieldNumber, Object value) Method to store an object field into the attached instance. | public void | storeShortField(int fieldNumber, short value) | public void | storeStringField(int fieldNumber, String value) |
LOCALISER | final protected static Localiser LOCALISER(Code) | | Localiser for internationalisation.
|
copy | boolean copy(Code) | | Whether we should create attached copies, or attach in situ.
|
AttachFieldManager | public AttachFieldManager(StateManager smAttached, boolean secondClassMutableFields, boolean dirtyFields, boolean persistent, boolean cascadeAttach, boolean copy)(Code) | | Constructor.
Parameters: smAttached - the attached instance Parameters: secondClassMutableFields - second class mutable field flags Parameters: dirtyFields - dirty field flags Parameters: persistent - whether the object is persistent Parameters: cascadeAttach - Whether to cascade any attach calls to related fields |
storeBooleanField | public void storeBooleanField(int fieldNumber, boolean value)(Code) | | |
storeByteField | public void storeByteField(int fieldNumber, byte value)(Code) | | |
storeCharField | public void storeCharField(int fieldNumber, char value)(Code) | | |
storeDoubleField | public void storeDoubleField(int fieldNumber, double value)(Code) | | |
storeFloatField | public void storeFloatField(int fieldNumber, float value)(Code) | | |
storeIntField | public void storeIntField(int fieldNumber, int value)(Code) | | |
storeLongField | public void storeLongField(int fieldNumber, long value)(Code) | | |
storeObjectField | public void storeObjectField(int fieldNumber, Object value)(Code) | | Method to store an object field into the attached instance.
Parameters: fieldNumber - Number of the field to store Parameters: value - the value in the detached instance |
storeShortField | public void storeShortField(int fieldNumber, short value)(Code) | | |
storeStringField | public void storeStringField(int fieldNumber, String value)(Code) | | |
Methods inherited from org.jpox.store.fieldmanager.AbstractFieldManager | public boolean fetchBooleanField(int fieldNumber)(Code)(Java Doc) public byte fetchByteField(int fieldNumber)(Code)(Java Doc) public char fetchCharField(int fieldNumber)(Code)(Java Doc) public double fetchDoubleField(int fieldNumber)(Code)(Java Doc) public float fetchFloatField(int fieldNumber)(Code)(Java Doc) public int fetchIntField(int fieldNumber)(Code)(Java Doc) public long fetchLongField(int fieldNumber)(Code)(Java Doc) public Object fetchObjectField(int fieldNumber)(Code)(Java Doc) public short fetchShortField(int fieldNumber)(Code)(Java Doc) public String fetchStringField(int fieldNumber)(Code)(Java Doc) public void storeBooleanField(int fieldNumber, boolean value)(Code)(Java Doc) public void storeByteField(int fieldNumber, byte value)(Code)(Java Doc) public void storeCharField(int fieldNumber, char value)(Code)(Java Doc) public void storeDoubleField(int fieldNumber, double value)(Code)(Java Doc) public void storeFloatField(int fieldNumber, float value)(Code)(Java Doc) public void storeIntField(int fieldNumber, int value)(Code)(Java Doc) public void storeLongField(int fieldNumber, long value)(Code)(Java Doc) public void storeObjectField(int fieldNumber, Object value)(Code)(Java Doc) public void storeShortField(int fieldNumber, short value)(Code)(Java Doc) public void storeStringField(int fieldNumber, String value)(Code)(Java Doc)
|
|
|