Class AbstractFieldManager
- java.lang.Object
-
- org.datanucleus.store.fieldmanager.AbstractFieldManager
-
- All Implemented Interfaces:
FieldConsumer,FieldManager,FieldSupplier
- 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 booleanfetchBooleanField(int fieldNumber)Fetch a boolean field at the specified field number, returning it.bytefetchByteField(int fieldNumber)Fetch a byte field at the specified field number, returning it.charfetchCharField(int fieldNumber)Fetch a char field at the specified field number, returning it.doublefetchDoubleField(int fieldNumber)Fetch a double field at the specified field number, returning it.floatfetchFloatField(int fieldNumber)Fetch a float field at the specified field number, returning it.intfetchIntField(int fieldNumber)Fetch an int field at the specified field number, returning it.longfetchLongField(int fieldNumber)Fetch a long field at the specified field number, returning it.ObjectfetchObjectField(int fieldNumber)Fetch an object field at the specified field number, returning it.shortfetchShortField(int fieldNumber)Fetch a short field at the specified field number, returning it.StringfetchStringField(int fieldNumber)Fetch a string field at the specified field number, returning it.voidstoreBooleanField(int fieldNumber, boolean value)Method to store a boolean field value in the object at the specified field position.voidstoreByteField(int fieldNumber, byte value)Method to store a byte field value in the object at the specified field position.voidstoreCharField(int fieldNumber, char value)Method to store a char field value in the object at the specified field position.voidstoreDoubleField(int fieldNumber, double value)Method to store a double field value in the object at the specified field position.voidstoreFloatField(int fieldNumber, float value)Method to store a float field value in the object at the specified field position.voidstoreIntField(int fieldNumber, int value)Method to store an int field value in the object at the specified field position.voidstoreLongField(int fieldNumber, long value)Method to store a long field value in the object at the specified field position.voidstoreObjectField(int fieldNumber, Object value)Method to store an object field value in the object at the specified field position.voidstoreShortField(int fieldNumber, short value)Method to store a short field value in the object at the specified field position.voidstoreStringField(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:FieldConsumerMethod to store a boolean field value in the object at the specified field position.- Specified by:
storeBooleanFieldin interfaceFieldConsumer- Parameters:
fieldNumber- Number of the fieldvalue- value to store
-
fetchBooleanField
public boolean fetchBooleanField(int fieldNumber)
Description copied from interface:FieldSupplierFetch a boolean field at the specified field number, returning it.- Specified by:
fetchBooleanFieldin interfaceFieldSupplier- Parameters:
fieldNumber- Number of the field- Returns:
- The value
-
storeCharField
public void storeCharField(int fieldNumber, char value)Description copied from interface:FieldConsumerMethod to store a char field value in the object at the specified field position.- Specified by:
storeCharFieldin interfaceFieldConsumer- Parameters:
fieldNumber- Number of the fieldvalue- value to store
-
fetchCharField
public char fetchCharField(int fieldNumber)
Description copied from interface:FieldSupplierFetch a char field at the specified field number, returning it.- Specified by:
fetchCharFieldin interfaceFieldSupplier- Parameters:
fieldNumber- Number of the field- Returns:
- The value
-
storeByteField
public void storeByteField(int fieldNumber, byte value)Description copied from interface:FieldConsumerMethod to store a byte field value in the object at the specified field position.- Specified by:
storeByteFieldin interfaceFieldConsumer- Parameters:
fieldNumber- Number of the fieldvalue- value to store
-
fetchByteField
public byte fetchByteField(int fieldNumber)
Description copied from interface:FieldSupplierFetch a byte field at the specified field number, returning it.- Specified by:
fetchByteFieldin interfaceFieldSupplier- Parameters:
fieldNumber- Number of the field- Returns:
- The value
-
storeShortField
public void storeShortField(int fieldNumber, short value)Description copied from interface:FieldConsumerMethod to store a short field value in the object at the specified field position.- Specified by:
storeShortFieldin interfaceFieldConsumer- Parameters:
fieldNumber- Number of the fieldvalue- value to store
-
fetchShortField
public short fetchShortField(int fieldNumber)
Description copied from interface:FieldSupplierFetch a short field at the specified field number, returning it.- Specified by:
fetchShortFieldin interfaceFieldSupplier- Parameters:
fieldNumber- Number of the field- Returns:
- The value
-
storeIntField
public void storeIntField(int fieldNumber, int value)Description copied from interface:FieldConsumerMethod to store an int field value in the object at the specified field position.- Specified by:
storeIntFieldin interfaceFieldConsumer- Parameters:
fieldNumber- Number of the fieldvalue- value to store
-
fetchIntField
public int fetchIntField(int fieldNumber)
Description copied from interface:FieldSupplierFetch an int field at the specified field number, returning it.- Specified by:
fetchIntFieldin interfaceFieldSupplier- Parameters:
fieldNumber- Number of the field- Returns:
- The value
-
storeLongField
public void storeLongField(int fieldNumber, long value)Description copied from interface:FieldConsumerMethod to store a long field value in the object at the specified field position.- Specified by:
storeLongFieldin interfaceFieldConsumer- Parameters:
fieldNumber- Number of the fieldvalue- value to store
-
fetchLongField
public long fetchLongField(int fieldNumber)
Description copied from interface:FieldSupplierFetch a long field at the specified field number, returning it.- Specified by:
fetchLongFieldin interfaceFieldSupplier- Parameters:
fieldNumber- Number of the field- Returns:
- The value
-
storeFloatField
public void storeFloatField(int fieldNumber, float value)Description copied from interface:FieldConsumerMethod to store a float field value in the object at the specified field position.- Specified by:
storeFloatFieldin interfaceFieldConsumer- Parameters:
fieldNumber- Number of the fieldvalue- value to store
-
fetchFloatField
public float fetchFloatField(int fieldNumber)
Description copied from interface:FieldSupplierFetch a float field at the specified field number, returning it.- Specified by:
fetchFloatFieldin interfaceFieldSupplier- Parameters:
fieldNumber- Number of the field- Returns:
- The value
-
storeDoubleField
public void storeDoubleField(int fieldNumber, double value)Description copied from interface:FieldConsumerMethod to store a double field value in the object at the specified field position.- Specified by:
storeDoubleFieldin interfaceFieldConsumer- Parameters:
fieldNumber- Number of the fieldvalue- value to store
-
fetchDoubleField
public double fetchDoubleField(int fieldNumber)
Description copied from interface:FieldSupplierFetch a double field at the specified field number, returning it.- Specified by:
fetchDoubleFieldin interfaceFieldSupplier- Parameters:
fieldNumber- Number of the field- Returns:
- The value
-
storeStringField
public void storeStringField(int fieldNumber, String value)Description copied from interface:FieldConsumerMethod to store a string field value in the object at the specified field position.- Specified by:
storeStringFieldin interfaceFieldConsumer- Parameters:
fieldNumber- Number of the fieldvalue- value to store
-
fetchStringField
public String fetchStringField(int fieldNumber)
Description copied from interface:FieldSupplierFetch a string field at the specified field number, returning it.- Specified by:
fetchStringFieldin interfaceFieldSupplier- Parameters:
fieldNumber- Number of the field- Returns:
- The value
-
storeObjectField
public void storeObjectField(int fieldNumber, Object value)Description copied from interface:FieldConsumerMethod to store an object field value in the object at the specified field position.- Specified by:
storeObjectFieldin interfaceFieldConsumer- Parameters:
fieldNumber- Number of the fieldvalue- value to store
-
fetchObjectField
public Object fetchObjectField(int fieldNumber)
Description copied from interface:FieldSupplierFetch an object field at the specified field number, returning it.- Specified by:
fetchObjectFieldin interfaceFieldSupplier- Parameters:
fieldNumber- Number of the field- Returns:
- The value
-
-