Inherits from com.wombat.mama.MamaFieldCacheReadOnlyField
Inherited by com.wombat.mama.MamaFieldCacheBool, com.wombat.mama.MamaFieldCacheChar, com.wombat.mama.MamaFieldCacheDateTime, com.wombat.mama.MamaFieldCacheEnum, com.wombat.mama.MamaFieldCacheFloat32, com.wombat.mama.MamaFieldCacheFloat64, com.wombat.mama.MamaFieldCacheInt16, com.wombat.mama.MamaFieldCacheInt32, com.wombat.mama.MamaFieldCacheInt64, com.wombat.mama.MamaFieldCacheInt8, com.wombat.mama.MamaFieldCachePrice, com.wombat.mama.MamaFieldCacheString, com.wombat.mama.MamaFieldCacheUint16, com.wombat.mama.MamaFieldCacheUint32, com.wombat.mama.MamaFieldCacheUint64, com.wombat.mama.MamaFieldCacheUint8
Name | |
---|---|
MamaFieldCacheField(MamaFieldDescriptor desc, short type) | |
MamaFieldCacheField(int fid, short type, String name, boolean trackModState) | |
abstract MamaFieldCacheField | copy() |
abstract void | addToMessage(boolean fieldName, MamaMsg message) |
abstract void | apply(MamaMsgField msgField) |
abstract String | getAsString() |
void | setDescriptor(MamaFieldDescriptor desc) |
MamaFieldDescriptor | getDescriptor() |
short | getType() |
void | setTrackModState(boolean state) |
boolean | getTrackModState() |
void | setModState(short state) |
void | clearModState() |
short | getModState() |
boolean | isUnmodified() |
boolean | isModified() |
boolean | isTouched() |
void | touch() |
abstract void | apply(MamaFieldCacheField value) |
Name | |
---|---|
final short | MOD_STATE_NOT_MODIFIED |
final short | MOD_STATE_MODIFIED |
final short | MOD_STATE_TOUCHED |
Name | |
---|---|
short | mType |
MamaFieldDescriptor | mDesc |
short | mModState |
boolean | mTrackModState |
boolean | mLocalDescriptorCopy |
inline MamaFieldCacheField(
MamaFieldDescriptor desc,
short type
)
Constructor. Use one of the create() methods to actually initialize the field.
inline MamaFieldCacheField(
int fid,
short type,
String name,
boolean trackModState
)
Constructor. Also create a local copy of field descriptor based on supplied info.
abstract MamaFieldCacheField copy()
Return: the copy
Reimplements: com::wombat::mama::MamaFieldCacheReadOnlyField::copy
Reimplemented by: com::wombat::mama::MamaFieldCacheBool::copy, com::wombat::mama::MamaFieldCacheChar::copy, com::wombat::mama::MamaFieldCacheDateTime::copy, com::wombat::mama::MamaFieldCacheEnum::copy, com::wombat::mama::MamaFieldCacheFloat32::copy, com::wombat::mama::MamaFieldCacheFloat64::copy, com::wombat::mama::MamaFieldCacheInt16::copy, com::wombat::mama::MamaFieldCacheInt32::copy, com::wombat::mama::MamaFieldCacheInt64::copy, com::wombat::mama::MamaFieldCacheInt8::copy, com::wombat::mama::MamaFieldCachePrice::copy, com::wombat::mama::MamaFieldCacheString::copy, com::wombat::mama::MamaFieldCacheUint16::copy, com::wombat::mama::MamaFieldCacheUint32::copy, com::wombat::mama::MamaFieldCacheUint64::copy, com::wombat::mama::MamaFieldCacheUint8::copy
Make a copy of this field.
abstract void addToMessage(
boolean fieldName,
MamaMsg message
)
Reimplemented by: com::wombat::mama::MamaFieldCacheBool::addToMessage, com::wombat::mama::MamaFieldCacheChar::addToMessage, com::wombat::mama::MamaFieldCacheDateTime::addToMessage, com::wombat::mama::MamaFieldCacheEnum::addToMessage, com::wombat::mama::MamaFieldCacheFloat32::addToMessage, com::wombat::mama::MamaFieldCacheFloat64::addToMessage, com::wombat::mama::MamaFieldCacheInt16::addToMessage, com::wombat::mama::MamaFieldCacheInt32::addToMessage, com::wombat::mama::MamaFieldCacheInt64::addToMessage, com::wombat::mama::MamaFieldCacheInt8::addToMessage, com::wombat::mama::MamaFieldCachePrice::addToMessage, com::wombat::mama::MamaFieldCacheString::addToMessage, com::wombat::mama::MamaFieldCacheUint16::addToMessage, com::wombat::mama::MamaFieldCacheUint32::addToMessage, com::wombat::mama::MamaFieldCacheUint64::addToMessage, com::wombat::mama::MamaFieldCacheUint8::addToMessage
abstract void apply(
MamaMsgField msgField
)
Reimplemented by: com::wombat::mama::MamaFieldCacheBool::apply, com::wombat::mama::MamaFieldCacheChar::apply, com::wombat::mama::MamaFieldCacheDateTime::apply, com::wombat::mama::MamaFieldCacheEnum::apply, com::wombat::mama::MamaFieldCacheFloat32::apply, com::wombat::mama::MamaFieldCacheFloat64::apply, com::wombat::mama::MamaFieldCacheInt16::apply, com::wombat::mama::MamaFieldCacheInt32::apply, com::wombat::mama::MamaFieldCacheInt64::apply, com::wombat::mama::MamaFieldCacheInt8::apply, com::wombat::mama::MamaFieldCachePrice::apply, com::wombat::mama::MamaFieldCacheString::apply, com::wombat::mama::MamaFieldCacheUint16::apply, com::wombat::mama::MamaFieldCacheUint32::apply, com::wombat::mama::MamaFieldCacheUint64::apply, com::wombat::mama::MamaFieldCacheUint8::apply
Apply the MamaMsgField to the cached field.
abstract String getAsString()
Reimplements: com::wombat::mama::MamaFieldCacheReadOnlyField::getAsString
Reimplemented by: com::wombat::mama::MamaFieldCacheBool::getAsString, com::wombat::mama::MamaFieldCacheChar::getAsString, com::wombat::mama::MamaFieldCacheDateTime::getAsString, com::wombat::mama::MamaFieldCacheEnum::getAsString, com::wombat::mama::MamaFieldCacheFloat32::getAsString, com::wombat::mama::MamaFieldCacheFloat64::getAsString, com::wombat::mama::MamaFieldCacheInt16::getAsString, com::wombat::mama::MamaFieldCacheInt32::getAsString, com::wombat::mama::MamaFieldCacheInt64::getAsString, com::wombat::mama::MamaFieldCacheInt8::getAsString, com::wombat::mama::MamaFieldCachePrice::getAsString, com::wombat::mama::MamaFieldCacheString::getAsString, com::wombat::mama::MamaFieldCacheUint16::getAsString, com::wombat::mama::MamaFieldCacheUint32::getAsString, com::wombat::mama::MamaFieldCacheUint64::getAsString, com::wombat::mama::MamaFieldCacheUint8::getAsString
Create a string value of the field in the buffer provided.
inline void setDescriptor(
MamaFieldDescriptor desc
)
Set the MamaFieldDescriptor for this field. This is an unusual thing to want to do to an existing field but it can help with performance for specialized tasks.
inline MamaFieldDescriptor getDescriptor()
Reimplements: com::wombat::mama::MamaFieldCacheReadOnlyField::getDescriptor
Return the MamaFieldDescriptor for this field (or NULL).
inline short getType()
Reimplements: com::wombat::mama::MamaFieldCacheReadOnlyField::getType
Return the actual field type for this field. It is possible to create fields that actually differ from the type specified in the dictionary field descriptor.
inline void setTrackModState(
boolean state
)
Set the whether track modification state for the field
inline boolean getTrackModState()
Reimplements: com::wombat::mama::MamaFieldCacheReadOnlyField::getTrackModState
Get the track modification state for the field
inline void setModState(
short state
)
Set the modification state for the field.
inline void clearModState()
Clear the modification state for the field (i.e., set to MOD_STATE_NOT_MODIFIED).
inline short getModState()
Reimplements: com::wombat::mama::MamaFieldCacheReadOnlyField::getModState
Get the modification state for the field.
inline boolean isUnmodified()
Reimplements: com::wombat::mama::MamaFieldCacheReadOnlyField::isUnmodified
Return whether the field is unmodified.
inline boolean isModified()
Reimplements: com::wombat::mama::MamaFieldCacheReadOnlyField::isModified
Return whether the field is modified.
inline boolean isTouched()
Reimplements: com::wombat::mama::MamaFieldCacheReadOnlyField::isTouched
Return whether the field is modified.
inline void touch()
Explicitly “touch” the cached value. To touch the cached value means to mark it as modified (or touched, actually) without actually bothering to check/update the current value.
abstract void apply(
MamaFieldCacheField value
)
Reimplemented by: com::wombat::mama::MamaFieldCacheBool::apply, com::wombat::mama::MamaFieldCacheChar::apply, com::wombat::mama::MamaFieldCacheDateTime::apply, com::wombat::mama::MamaFieldCacheEnum::apply, com::wombat::mama::MamaFieldCacheFloat32::apply, com::wombat::mama::MamaFieldCacheFloat64::apply, com::wombat::mama::MamaFieldCacheInt16::apply, com::wombat::mama::MamaFieldCacheInt32::apply, com::wombat::mama::MamaFieldCacheInt64::apply, com::wombat::mama::MamaFieldCacheInt8::apply, com::wombat::mama::MamaFieldCachePrice::apply, com::wombat::mama::MamaFieldCacheString::apply, com::wombat::mama::MamaFieldCacheUint16::apply, com::wombat::mama::MamaFieldCacheUint32::apply, com::wombat::mama::MamaFieldCacheUint64::apply, com::wombat::mama::MamaFieldCacheUint8::apply
static final short MOD_STATE_NOT_MODIFIED = 1;
static final short MOD_STATE_MODIFIED = 2;
static final short MOD_STATE_TOUCHED = 3;
short mType;
MamaFieldDescriptor mDesc;
short mModState;
boolean mTrackModState;
boolean mLocalDescriptorCopy;
Updated on 2023-03-31 at 15:29:42 +0100