| java.lang.Object org.jpox.store.fieldmanager.AbstractFieldManager org.jpox.store.fieldmanager.PersistFieldManager
PersistFieldManager | public class PersistFieldManager extends AbstractFieldManager (Code) | | Field manager that perists all unpersisted PC objects referenced from the source object.
If any collection/map fields are not currently using SCO wrappers they will be converted to do so.
Effectively provides "persistence-by-reachability" (at persist).
version: $Revision: 1.30 $ |
Method Summary | |
protected void | processPersistable(Object pc, int ownerFieldNum, int objectType) Utility method to process the passed persistable object. | public void | storeBooleanField(int fieldNumber, boolean value) Method to store a boolean field. | public void | storeByteField(int fieldNumber, byte value) Method to store a byte field. | public void | storeCharField(int fieldNumber, char value) Method to store a char field. | public void | storeDoubleField(int fieldNumber, double value) Method to store a double field. | public void | storeFloatField(int fieldNumber, float value) Method to store a float field. | public void | storeIntField(int fieldNumber, int value) Method to store an int field. | public void | storeLongField(int fieldNumber, long value) Method to store a long field. | public void | storeObjectField(int fieldNumber, Object value) Method to store an object field. | public void | storeShortField(int fieldNumber, short value) Method to store a short field. | public void | storeStringField(int fieldNumber, String value) Method to store a string field. |
PersistFieldManager | public PersistFieldManager(StateManager sm, boolean replaceSCOsWithWrappers)(Code) | | Constructor.
Parameters: sm - The state manager for the object. Parameters: replaceSCOsWithWrappers - Whether to swap any SCO field objects for SCO wrappers |
processPersistable | protected void processPersistable(Object pc, int ownerFieldNum, int objectType)(Code) | | Utility method to process the passed persistable object.
Parameters: pc - The PC object Parameters: ownerFieldNum - Field number of owner where this is embedded Parameters: objectType - Type of object (see org.jpox.StateManager) |
storeBooleanField | public void storeBooleanField(int fieldNumber, boolean value)(Code) | | Method to store a boolean field.
Parameters: fieldNumber - Number of the field (absolute) Parameters: value - Value of the field |
storeByteField | public void storeByteField(int fieldNumber, byte value)(Code) | | Method to store a byte field.
Parameters: fieldNumber - Number of the field (absolute) Parameters: value - Value of the field |
storeCharField | public void storeCharField(int fieldNumber, char value)(Code) | | Method to store a char field.
Parameters: fieldNumber - Number of the field (absolute) Parameters: value - Value of the field |
storeDoubleField | public void storeDoubleField(int fieldNumber, double value)(Code) | | Method to store a double field.
Parameters: fieldNumber - Number of the field (absolute) Parameters: value - Value of the field |
storeFloatField | public void storeFloatField(int fieldNumber, float value)(Code) | | Method to store a float field.
Parameters: fieldNumber - Number of the field (absolute) Parameters: value - Value of the field |
storeIntField | public void storeIntField(int fieldNumber, int value)(Code) | | Method to store an int field.
Parameters: fieldNumber - Number of the field (absolute) Parameters: value - Value of the field |
storeLongField | public void storeLongField(int fieldNumber, long value)(Code) | | Method to store a long field.
Parameters: fieldNumber - Number of the field (absolute) Parameters: value - Value of the field |
storeObjectField | public void storeObjectField(int fieldNumber, Object value)(Code) | | Method to store an object field.
Parameters: fieldNumber - Number of the field (absolute) Parameters: value - Value of the field |
storeShortField | public void storeShortField(int fieldNumber, short value)(Code) | | Method to store a short field.
Parameters: fieldNumber - Number of the field (absolute) Parameters: value - Value of the field |
storeStringField | public void storeStringField(int fieldNumber, String value)(Code) | | Method to store a string field.
Parameters: fieldNumber - Number of the field (absolute) Parameters: value - Value of the field |
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)
|
|
|