Class AbstractFieldManager
- java.lang.Object
-
- org.datanucleus.store.fieldmanager.AbstractFieldManager
-
- All Implemented Interfaces:
FieldManager
- Direct Known Subclasses:
AbstractFetchDepthFieldManager
,AbstractFetchFieldManager
,AbstractStoreFieldManager
,AttachFieldManager
,DeleteFieldManager
,L2CachePopulateFieldManager
,L2CacheRetrieveFieldManager
,NullifyRelationFieldManager
,PersistFieldManager
,ReachabilityFieldManager
,UnsetOwnerFieldManager
public abstract class AbstractFieldManager extends Object implements FieldManager
Abstract representation of a field manager.
-
-
Constructor Summary
Constructors Constructor Description AbstractFieldManager()
Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
fetchBooleanField(int fieldNumber)
Fetch a boolean field at the specified field number, returning it.byte
fetchByteField(int fieldNumber)
Fetch a byte field at the specified field number, returning it.char
fetchCharField(int fieldNumber)
Fetch a char field at the specified field number, returning it.double
fetchDoubleField(int fieldNumber)
Fetch a double field at the specified field number, returning it.float
fetchFloatField(int fieldNumber)
Fetch a float field at the specified field number, returning it.int
fetchIntField(int fieldNumber)
Fetch an int field at the specified field number, returning it.long
fetchLongField(int fieldNumber)
Fetch a long field at the specified field number, returning it.Object
fetchObjectField(int fieldNumber)
Fetch an object field at the specified field number, returning it.short
fetchShortField(int fieldNumber)
Fetch a short field at the specified field number, returning it.String
fetchStringField(int fieldNumber)
Fetch a string field at the specified field number, returning it.void
storeBooleanField(int fieldNumber, boolean value)
Method to store a boolean field value in the object at the specified field position.void
storeByteField(int fieldNumber, byte value)
Method to store a byte field value in the object at the specified field position.void
storeCharField(int fieldNumber, char value)
Method to store a char field value in the object at the specified field position.void
storeDoubleField(int fieldNumber, double value)
Method to store a double field value in the object at the specified field position.void
storeFloatField(int fieldNumber, float value)
Method to store a float field value in the object at the specified field position.void
storeIntField(int fieldNumber, int value)
Method to store an int field value in the object at the specified field position.void
storeLongField(int fieldNumber, long value)
Method to store a long field value in the object at the specified field position.void
storeObjectField(int fieldNumber, Object value)
Method to store an object field value in the object at the specified field position.void
storeShortField(int fieldNumber, short value)
Method to store a short field value in the object at the specified field position.void
storeStringField(int fieldNumber, String value)
Method to store a string field value in the object at the specified field position.
-
-
-
Method Detail
-
storeBooleanField
public void storeBooleanField(int fieldNumber, boolean value)
Description copied from interface:FieldManager
Method to store a boolean field value in the object at the specified field position.- Specified by:
storeBooleanField
in interfaceFieldManager
- Parameters:
fieldNumber
- Number of the fieldvalue
- value to store
-
fetchBooleanField
public boolean fetchBooleanField(int fieldNumber)
Description copied from interface:FieldManager
Fetch a boolean field at the specified field number, returning it.- Specified by:
fetchBooleanField
in interfaceFieldManager
- Parameters:
fieldNumber
- Number of the field- Returns:
- The value
-
storeCharField
public void storeCharField(int fieldNumber, char value)
Description copied from interface:FieldManager
Method to store a char field value in the object at the specified field position.- Specified by:
storeCharField
in interfaceFieldManager
- Parameters:
fieldNumber
- Number of the fieldvalue
- value to store
-
fetchCharField
public char fetchCharField(int fieldNumber)
Description copied from interface:FieldManager
Fetch a char field at the specified field number, returning it.- Specified by:
fetchCharField
in interfaceFieldManager
- Parameters:
fieldNumber
- Number of the field- Returns:
- The value
-
storeByteField
public void storeByteField(int fieldNumber, byte value)
Description copied from interface:FieldManager
Method to store a byte field value in the object at the specified field position.- Specified by:
storeByteField
in interfaceFieldManager
- Parameters:
fieldNumber
- Number of the fieldvalue
- value to store
-
fetchByteField
public byte fetchByteField(int fieldNumber)
Description copied from interface:FieldManager
Fetch a byte field at the specified field number, returning it.- Specified by:
fetchByteField
in interfaceFieldManager
- Parameters:
fieldNumber
- Number of the field- Returns:
- The value
-
storeShortField
public void storeShortField(int fieldNumber, short value)
Description copied from interface:FieldManager
Method to store a short field value in the object at the specified field position.- Specified by:
storeShortField
in interfaceFieldManager
- Parameters:
fieldNumber
- Number of the fieldvalue
- value to store
-
fetchShortField
public short fetchShortField(int fieldNumber)
Description copied from interface:FieldManager
Fetch a short field at the specified field number, returning it.- Specified by:
fetchShortField
in interfaceFieldManager
- Parameters:
fieldNumber
- Number of the field- Returns:
- The value
-
storeIntField
public void storeIntField(int fieldNumber, int value)
Description copied from interface:FieldManager
Method to store an int field value in the object at the specified field position.- Specified by:
storeIntField
in interfaceFieldManager
- Parameters:
fieldNumber
- Number of the fieldvalue
- value to store
-
fetchIntField
public int fetchIntField(int fieldNumber)
Description copied from interface:FieldManager
Fetch an int field at the specified field number, returning it.- Specified by:
fetchIntField
in interfaceFieldManager
- Parameters:
fieldNumber
- Number of the field- Returns:
- The value
-
storeLongField
public void storeLongField(int fieldNumber, long value)
Description copied from interface:FieldManager
Method to store a long field value in the object at the specified field position.- Specified by:
storeLongField
in interfaceFieldManager
- Parameters:
fieldNumber
- Number of the fieldvalue
- value to store
-
fetchLongField
public long fetchLongField(int fieldNumber)
Description copied from interface:FieldManager
Fetch a long field at the specified field number, returning it.- Specified by:
fetchLongField
in interfaceFieldManager
- Parameters:
fieldNumber
- Number of the field- Returns:
- The value
-
storeFloatField
public void storeFloatField(int fieldNumber, float value)
Description copied from interface:FieldManager
Method to store a float field value in the object at the specified field position.- Specified by:
storeFloatField
in interfaceFieldManager
- Parameters:
fieldNumber
- Number of the fieldvalue
- value to store
-
fetchFloatField
public float fetchFloatField(int fieldNumber)
Description copied from interface:FieldManager
Fetch a float field at the specified field number, returning it.- Specified by:
fetchFloatField
in interfaceFieldManager
- Parameters:
fieldNumber
- Number of the field- Returns:
- The value
-
storeDoubleField
public void storeDoubleField(int fieldNumber, double value)
Description copied from interface:FieldManager
Method to store a double field value in the object at the specified field position.- Specified by:
storeDoubleField
in interfaceFieldManager
- Parameters:
fieldNumber
- Number of the fieldvalue
- value to store
-
fetchDoubleField
public double fetchDoubleField(int fieldNumber)
Description copied from interface:FieldManager
Fetch a double field at the specified field number, returning it.- Specified by:
fetchDoubleField
in interfaceFieldManager
- Parameters:
fieldNumber
- Number of the field- Returns:
- The value
-
storeStringField
public void storeStringField(int fieldNumber, String value)
Description copied from interface:FieldManager
Method to store a string field value in the object at the specified field position.- Specified by:
storeStringField
in interfaceFieldManager
- Parameters:
fieldNumber
- Number of the fieldvalue
- value to store
-
fetchStringField
public String fetchStringField(int fieldNumber)
Description copied from interface:FieldManager
Fetch a string field at the specified field number, returning it.- Specified by:
fetchStringField
in interfaceFieldManager
- Parameters:
fieldNumber
- Number of the field- Returns:
- The value
-
storeObjectField
public void storeObjectField(int fieldNumber, Object value)
Description copied from interface:FieldManager
Method to store an object field value in the object at the specified field position.- Specified by:
storeObjectField
in interfaceFieldManager
- Parameters:
fieldNumber
- Number of the fieldvalue
- value to store
-
fetchObjectField
public Object fetchObjectField(int fieldNumber)
Description copied from interface:FieldManager
Fetch an object field at the specified field number, returning it.- Specified by:
fetchObjectField
in interfaceFieldManager
- Parameters:
fieldNumber
- Number of the field- Returns:
- The value
-
-