|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface SandMessage
Root interface implemented by all SAND messages.
SandMessage
The methods declared in these message interfaces are implemented
using code generators, which are manually kept synchronized with these
declarations. There is currrently no mechanism for declaring tags
in these interface declarations.
| Method Summary | |
|---|---|
int |
getBaseMemoryUse()
Return the base memory use for this object. |
SandCollectionMessage |
getCollectionMessage()
If this message has a SandCollectionMessage verb form associated with it, then return a new instance. |
SandQueryMessage |
getQueryMessage()
If this message has a SandQueryMessage verb form associated with it, then return a new instance. |
java.lang.String |
getShortName()
Return the unqualified name of this message. |
SandStructMessage |
getStructMessage()
If this message has a SandStructMessage base form, then return a new instance. |
SandUpdateMessage |
getUpdateMessage()
If this message has a SandUpdateMessage verb form associated with it, then return a new instance. |
boolean |
isEquivalent(SandMessage other)
Field equivalence check. |
| Method Detail |
|---|
boolean isEquivalent(SandMessage other)
equals method is used. The generated fields are ignored, because their semantics
tend to get in the way and are best handled separately. For
persistent objects, you can test for equivalent uniqueIDs,
equivalent versions etc. already.
The contents of array elements ARE checked (recursively if
necessary) without sorting. This allows for checking equivalent
tree structures and suchlike.
Since the default equals method is not overridden,
you can test for binary equivalence this way.
It is recommended that more advanced equivalence testing
involving subgroups of fields, more relaxed constraints, fuzzy
logic etc. be done outside of the object using a static
equivalence checking utility. Ditto for comparisons.
java.lang.String getShortName()
SandQueryMessage getQueryMessage()
SandCollectionMessage getCollectionMessage()
SandUpdateMessage getUpdateMessage()
SandStructMessage getStructMessage()
int getBaseMemoryUse()
Due to memory alignment and the size of the underlying machine architecture (32 bit vs 64 bit etc) the base memory use reported here is likely to be an underestimate. Nevertheless this method is valuable for memory cache tuning and similar actions where some idea of size is needed.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||