- java.lang.Object
-
- org.datanucleus.state.AppIdObjectIdFieldConsumer
-
- All Implemented Interfaces:
Persistable.ObjectIdFieldConsumer,FieldManager
public class AppIdObjectIdFieldConsumer extends Object implements FieldManager, Persistable.ObjectIdFieldConsumer
Simple class to handle the copying of PK fields from an object id to an object. Uses the supplied FieldManager to put the values into the object. Handles PC fields that are part of the PK, cascading to (PK) fields of that object.
-
-
Constructor Summary
Constructors Constructor Description AppIdObjectIdFieldConsumer(ApiAdapter api, FieldManager fm)
-
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.
-
-
-
Constructor Detail
-
AppIdObjectIdFieldConsumer
public AppIdObjectIdFieldConsumer(ApiAdapter api, FieldManager fm)
-
-
Method Detail
-
storeBooleanField
public void storeBooleanField(int fieldNumber, boolean value)Description copied from interface:FieldManagerMethod to store a boolean field value in the object at the specified field position.- Specified by:
storeBooleanFieldin interfaceFieldManager- Specified by:
storeBooleanFieldin interfacePersistable.ObjectIdFieldConsumer- Parameters:
fieldNumber- Number of the fieldvalue- value to store
-
storeByteField
public void storeByteField(int fieldNumber, byte value)Description copied from interface:FieldManagerMethod to store a byte field value in the object at the specified field position.- Specified by:
storeByteFieldin interfaceFieldManager- Specified by:
storeByteFieldin interfacePersistable.ObjectIdFieldConsumer- Parameters:
fieldNumber- Number of the fieldvalue- value to store
-
storeCharField
public void storeCharField(int fieldNumber, char value)Description copied from interface:FieldManagerMethod to store a char field value in the object at the specified field position.- Specified by:
storeCharFieldin interfaceFieldManager- Specified by:
storeCharFieldin interfacePersistable.ObjectIdFieldConsumer- Parameters:
fieldNumber- Number of the fieldvalue- value to store
-
storeDoubleField
public void storeDoubleField(int fieldNumber, double value)Description copied from interface:FieldManagerMethod to store a double field value in the object at the specified field position.- Specified by:
storeDoubleFieldin interfaceFieldManager- Specified by:
storeDoubleFieldin interfacePersistable.ObjectIdFieldConsumer- Parameters:
fieldNumber- Number of the fieldvalue- value to store
-
storeFloatField
public void storeFloatField(int fieldNumber, float value)Description copied from interface:FieldManagerMethod to store a float field value in the object at the specified field position.- Specified by:
storeFloatFieldin interfaceFieldManager- Specified by:
storeFloatFieldin interfacePersistable.ObjectIdFieldConsumer- Parameters:
fieldNumber- Number of the fieldvalue- value to store
-
storeIntField
public void storeIntField(int fieldNumber, int value)Description copied from interface:FieldManagerMethod to store an int field value in the object at the specified field position.- Specified by:
storeIntFieldin interfaceFieldManager- Specified by:
storeIntFieldin interfacePersistable.ObjectIdFieldConsumer- Parameters:
fieldNumber- Number of the fieldvalue- value to store
-
storeLongField
public void storeLongField(int fieldNumber, long value)Description copied from interface:FieldManagerMethod to store a long field value in the object at the specified field position.- Specified by:
storeLongFieldin interfaceFieldManager- Specified by:
storeLongFieldin interfacePersistable.ObjectIdFieldConsumer- Parameters:
fieldNumber- Number of the fieldvalue- value to store
-
storeShortField
public void storeShortField(int fieldNumber, short value)Description copied from interface:FieldManagerMethod to store a short field value in the object at the specified field position.- Specified by:
storeShortFieldin interfaceFieldManager- Specified by:
storeShortFieldin interfacePersistable.ObjectIdFieldConsumer- Parameters:
fieldNumber- Number of the fieldvalue- value to store
-
storeStringField
public void storeStringField(int fieldNumber, String value)Description copied from interface:FieldManagerMethod to store a string field value in the object at the specified field position.- Specified by:
storeStringFieldin interfaceFieldManager- Specified by:
storeStringFieldin interfacePersistable.ObjectIdFieldConsumer- Parameters:
fieldNumber- Number of the fieldvalue- value to store
-
storeObjectField
public void storeObjectField(int fieldNumber, Object value)Description copied from interface:FieldManagerMethod to store an object field value in the object at the specified field position.- Specified by:
storeObjectFieldin interfaceFieldManager- Specified by:
storeObjectFieldin interfacePersistable.ObjectIdFieldConsumer- Parameters:
fieldNumber- Number of the fieldvalue- value to store
-
fetchBooleanField
public boolean fetchBooleanField(int fieldNumber)
Description copied from interface:FieldManagerFetch a boolean field at the specified field number, returning it.- Specified by:
fetchBooleanFieldin interfaceFieldManager- Parameters:
fieldNumber- Number of the field- Returns:
- The value
-
fetchByteField
public byte fetchByteField(int fieldNumber)
Description copied from interface:FieldManagerFetch a byte field at the specified field number, returning it.- Specified by:
fetchByteFieldin interfaceFieldManager- Parameters:
fieldNumber- Number of the field- Returns:
- The value
-
fetchCharField
public char fetchCharField(int fieldNumber)
Description copied from interface:FieldManagerFetch a char field at the specified field number, returning it.- Specified by:
fetchCharFieldin interfaceFieldManager- Parameters:
fieldNumber- Number of the field- Returns:
- The value
-
fetchDoubleField
public double fetchDoubleField(int fieldNumber)
Description copied from interface:FieldManagerFetch a double field at the specified field number, returning it.- Specified by:
fetchDoubleFieldin interfaceFieldManager- Parameters:
fieldNumber- Number of the field- Returns:
- The value
-
fetchFloatField
public float fetchFloatField(int fieldNumber)
Description copied from interface:FieldManagerFetch a float field at the specified field number, returning it.- Specified by:
fetchFloatFieldin interfaceFieldManager- Parameters:
fieldNumber- Number of the field- Returns:
- The value
-
fetchIntField
public int fetchIntField(int fieldNumber)
Description copied from interface:FieldManagerFetch an int field at the specified field number, returning it.- Specified by:
fetchIntFieldin interfaceFieldManager- Parameters:
fieldNumber- Number of the field- Returns:
- The value
-
fetchLongField
public long fetchLongField(int fieldNumber)
Description copied from interface:FieldManagerFetch a long field at the specified field number, returning it.- Specified by:
fetchLongFieldin interfaceFieldManager- Parameters:
fieldNumber- Number of the field- Returns:
- The value
-
fetchShortField
public short fetchShortField(int fieldNumber)
Description copied from interface:FieldManagerFetch a short field at the specified field number, returning it.- Specified by:
fetchShortFieldin interfaceFieldManager- Parameters:
fieldNumber- Number of the field- Returns:
- The value
-
fetchStringField
public String fetchStringField(int fieldNumber)
Description copied from interface:FieldManagerFetch a string field at the specified field number, returning it.- Specified by:
fetchStringFieldin interfaceFieldManager- Parameters:
fieldNumber- Number of the field- Returns:
- The value
-
fetchObjectField
public Object fetchObjectField(int fieldNumber)
Description copied from interface:FieldManagerFetch an object field at the specified field number, returning it.- Specified by:
fetchObjectFieldin interfaceFieldManager- Parameters:
fieldNumber- Number of the field- Returns:
- The value
-
-