|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.store.fieldmanager.AbstractFieldManager
org.datanucleus.store.fieldmanager.AttachFieldManager
public class AttachFieldManager
Utility class to handle the attach of fields. The attachment process has 2 distinct cases to cater for.
| Field Summary | |
|---|---|
protected static Localiser |
LOCALISER
Localiser for internationalisation. |
| Constructor Summary | |
|---|---|
AttachFieldManager(StateManager smAttached,
boolean[] secondClassMutableFields,
boolean[] fieldsToAttach,
boolean persistent,
boolean cascadeAttach,
boolean copy)
Constructor. |
|
| Method Summary | |
|---|---|
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,
java.lang.Object value)
Method to store an object field into the attached instance. |
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,
java.lang.String value)
Method to store a string field value in the object at the specified field position. |
| Methods inherited from class org.datanucleus.store.fieldmanager.AbstractFieldManager |
|---|
fetchBooleanField, fetchByteField, fetchCharField, fetchDoubleField, fetchFloatField, fetchIntField, fetchLongField, fetchObjectField, fetchShortField, fetchStringField |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final Localiser LOCALISER
| Constructor Detail |
|---|
public AttachFieldManager(StateManager smAttached,
boolean[] secondClassMutableFields,
boolean[] fieldsToAttach,
boolean persistent,
boolean cascadeAttach,
boolean copy)
smAttached - the attached instancesecondClassMutableFields - second class mutable field flagsfieldsToAttach - flags of fields to attachpersistent - whether the object is persistentcascadeAttach - Whether to cascade any attach calls to related fields| Method Detail |
|---|
public void storeObjectField(int fieldNumber,
java.lang.Object value)
storeObjectField in interface FieldConsumerstoreObjectField in class AbstractFieldManagerfieldNumber - Number of the field to storevalue - the value in the detached instance
public void storeBooleanField(int fieldNumber,
boolean value)
FieldConsumer
storeBooleanField in interface FieldConsumerstoreBooleanField in class AbstractFieldManagerfieldNumber - Number of the fieldvalue - value to store
public void storeByteField(int fieldNumber,
byte value)
FieldConsumer
storeByteField in interface FieldConsumerstoreByteField in class AbstractFieldManagerfieldNumber - Number of the fieldvalue - value to store
public void storeCharField(int fieldNumber,
char value)
FieldConsumer
storeCharField in interface FieldConsumerstoreCharField in class AbstractFieldManagerfieldNumber - Number of the fieldvalue - value to store
public void storeDoubleField(int fieldNumber,
double value)
FieldConsumer
storeDoubleField in interface FieldConsumerstoreDoubleField in class AbstractFieldManagerfieldNumber - Number of the fieldvalue - value to store
public void storeFloatField(int fieldNumber,
float value)
FieldConsumer
storeFloatField in interface FieldConsumerstoreFloatField in class AbstractFieldManagerfieldNumber - Number of the fieldvalue - value to store
public void storeIntField(int fieldNumber,
int value)
FieldConsumer
storeIntField in interface FieldConsumerstoreIntField in class AbstractFieldManagerfieldNumber - Number of the fieldvalue - value to store
public void storeLongField(int fieldNumber,
long value)
FieldConsumer
storeLongField in interface FieldConsumerstoreLongField in class AbstractFieldManagerfieldNumber - Number of the fieldvalue - value to store
public void storeShortField(int fieldNumber,
short value)
FieldConsumer
storeShortField in interface FieldConsumerstoreShortField in class AbstractFieldManagerfieldNumber - Number of the fieldvalue - value to store
public void storeStringField(int fieldNumber,
java.lang.String value)
FieldConsumer
storeStringField in interface FieldConsumerstoreStringField in class AbstractFieldManagerfieldNumber - Number of the fieldvalue - value to store
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||