org.sandev.basics.sandmessages
Class ServerDeclarationUpdate

java.lang.Object
  extended by org.sandev.basics.sandmessages.ServerDeclarationUpdate
All Implemented Interfaces:
SandMessage, SandTransmitMessage, SandUpdateMessage, SandVerbMessage

public class ServerDeclarationUpdate
extends java.lang.Object
implements SandUpdateMessage

AUTOGENERATED FILE, DO NOT EDIT DIRECTLY.
source: org.sandev.basics.structs.ServerDeclarationStruct
generator: org.sandev.generator.MessageClassGenerator
time: Jul 31, 2008 4:34:15 PM


Field Summary
protected  int action
          support for SandUpdateMessage interface
static int ACTION_ADDING
          Possible value for action
static int ACTION_DELETING
          Possible value for action
static int ACTION_UNKNOWN
          Possible value for action
static int ACTION_UPDATING
          Possible value for action
protected  int sandTransmissionCount
          support for SandTransmitMessage interface
protected  java.util.Locale sandTransmissionLocale
          support for SandTransmitMessage interface
protected  long sandTransmitAuthID
          support for SandTransmitMessage interface
protected  java.lang.String sandTransmitErrorCode
          support for SandTransmitMessage interface
protected  java.lang.String sandTransmitErrorMessage
          support for SandTransmitMessage interface
protected  int sandTransmitStatus
          support for SandTransmitMessage interface
protected  ServerDeclaration serverDeclaration
          the contained instance for this update
protected  java.lang.String source
          The source of this update
 
Fields inherited from interface org.sandev.basics.structs.SandUpdateMessage
ACTION_ADD, ACTION_DELETE, ACTION_UNDEFINED, ACTION_UPDATE, APPERROR_UPDATEFAIL_OLDVERSION, APPERROR_UPDATEFAIL_UNIQUEVIO
 
Fields inherited from interface org.sandev.basics.structs.SandTransmitMessage
APPERROR_NODE_UNAVAILABLE, APPERROR_NODE_UNKNOWN, APPERROR_NODE_UNREACHABLE, STATUS_APPERROR, STATUS_NORMAL, STATUS_SANDERROR, STATUS_SYSERROR
 
Constructor Summary
ServerDeclarationUpdate()
          Default constructor calls init.
 
Method Summary
static java.lang.String actionActual2Print(java.lang.String actualVal)
          Utility method to transform an actual value for this field into a print value.
 int actionLabelToValue(java.lang.String label)
          Given a label, return the value for it.
static int actionLabelToValueStatic(java.lang.String label)
           
static java.lang.String actionPrint2Actual(java.lang.String printVal)
          Utility method to transform a print value for this field into an actual value.
static java.lang.String actionPrint2Key(java.lang.String printVal)
          Utility method to transform a print value for this field into a key value.
 java.lang.String actionValueToLabel(int val)
          Given a value, return the declared label for it.
static java.lang.String actionValueToLabelStatic(int val)
           
 boolean fieldHasFlag(java.lang.String fieldname, int fieldflag)
          Return true if the named field declares the indicated flag, false otherwise.
 int getAction()
          Accessor for action
static java.lang.String[] getActionActualVals()
          Return an array of the possible values for this field as Strings.
static int getActionDefaultValue()
          Default value for action.
static java.lang.String getActionEnumSummary()
          Return a single String summary of the possible enum values for debug and similar purposes.
 java.lang.String getActionFieldPrintValue()
          Return the print name of the action field.
static boolean getActionFlag(int fieldflag)
          Field flag accessor.
static int getActionInvalidValue()
          Invalid value for action.
static java.lang.String[] getActionKeyVals()
          Return an array of unique keys for the values of this field.
 java.lang.String getActionMetatype()
          Return the metatype text for this field, or "" if no metatype was declared.
static java.lang.String[] getActionPrintVals()
          Return an array of the possible values for this field in display format.
 java.lang.String getActionPrintValue()
          Retrieve the current value of this field as a print String.
 java.lang.String getActionRange()
          Return the range specification for this field
 java.lang.String getActionValidityCheck()
          Return the empty string if the value of this field is valid according to the base SAND declarations.
 int getBaseMemoryUse()
          Return the base memory use for this object.
 SandCollectionMessage getCollectionMessage()
          Returns a new ServerDeclarationCollection instance
 SandStructMessage getInstance()
          Generalized accessor for the update instance
 long getInstanceID()
          Return the uniqueID of the update instance, or -1 if it is not a persistent message.
 SandQueryMessage getQueryMessage()
          Returns a new ServerDeclarationQuery instance
 int getSandTransmissionCount()
          Accessor for sandTransmissionCount
static int getSandTransmissionCountDefaultValue()
          Default value for sandTransmissionCount.
 java.lang.String getSandTransmissionCountFieldPrintValue()
          Return the print name of the sandTransmissionCount field.
static boolean getSandTransmissionCountFlag(int fieldflag)
          Field flag accessor.
static int getSandTransmissionCountInvalidValue()
          Invalid value for sandTransmissionCount.
 java.lang.String getSandTransmissionCountMetatype()
          Return the metatype text for this field, or "" if no metatype was declared.
 java.lang.String getSandTransmissionCountPrintValue()
          Retrieve the current value of this field as a print String.
 java.lang.String getSandTransmissionCountRange()
          Return the range specification for this field
 java.lang.String getSandTransmissionCountValidityCheck()
          Return the empty string if the value of this field is valid according to the base SAND declarations.
 java.util.Locale getSandTransmissionLocale()
          Accessor for sandTransmissionLocale
static java.util.Locale getSandTransmissionLocaleDefaultValue()
          Default value for sandTransmissionLocale.
 java.lang.String getSandTransmissionLocaleFieldPrintValue()
          Return the print name of the sandTransmissionLocale field.
static boolean getSandTransmissionLocaleFlag(int fieldflag)
          Field flag accessor.
static java.util.Locale getSandTransmissionLocaleInvalidValue()
          Invalid value for sandTransmissionLocale.
 java.lang.String getSandTransmissionLocaleMetatype()
          Return the metatype text for this field, or "" if no metatype was declared.
 java.lang.String getSandTransmissionLocalePrintValue()
          Retrieve the current value of this field as a print String.
 java.lang.String getSandTransmissionLocaleRange()
          Return the range specification for this field
 java.lang.String getSandTransmissionLocaleValidityCheck()
          Return the empty string if the value of this field is valid according to the base SAND declarations.
 long getSandTransmitAuthID()
          Accessor for sandTransmitAuthID
static long getSandTransmitAuthIDDefaultValue()
          Default value for sandTransmitAuthID.
 java.lang.String getSandTransmitAuthIDFieldPrintValue()
          Return the print name of the sandTransmitAuthID field.
static boolean getSandTransmitAuthIDFlag(int fieldflag)
          Field flag accessor.
static long getSandTransmitAuthIDInvalidValue()
          Invalid value for sandTransmitAuthID.
 java.lang.String getSandTransmitAuthIDMetatype()
          Return the metatype text for this field, or "" if no metatype was declared.
 java.lang.String getSandTransmitAuthIDPrintValue()
          Retrieve the current value of this field as a print String.
 java.lang.String getSandTransmitAuthIDRange()
          Return the range specification for this field
 java.lang.String getSandTransmitAuthIDValidityCheck()
          Return the empty string if the value of this field is valid according to the base SAND declarations.
 java.lang.String getSandTransmitErrorCode()
          Accessor for sandTransmitErrorCode
static java.lang.String getSandTransmitErrorCodeDefaultValue()
          Default value for sandTransmitErrorCode.
 java.lang.String getSandTransmitErrorCodeFieldPrintValue()
          Return the print name of the sandTransmitErrorCode field.
static boolean getSandTransmitErrorCodeFlag(int fieldflag)
          Field flag accessor.
static java.lang.String getSandTransmitErrorCodeInvalidValue()
          Invalid value for sandTransmitErrorCode.
static int getSandTransmitErrorCodeLengthMax()
          Maximum sandTransmitErrorCode length is 70 characters
static int getSandTransmitErrorCodeLengthNorm()
          Normal sandTransmitErrorCode length is 30 characters
 java.lang.String getSandTransmitErrorCodeMetatype()
          Return the metatype text for this field, or "" if no metatype was declared.
 java.lang.String getSandTransmitErrorCodePrintValue()
          Retrieve the current value of this field as a print String.
 java.lang.String getSandTransmitErrorCodeRange()
          Return the range specification for this field
 java.lang.String getSandTransmitErrorCodeValidityCheck()
          Return the empty string if the value of this field is valid according to the base SAND declarations.
 java.lang.String getSandTransmitErrorMessage()
          Accessor for sandTransmitErrorMessage
static java.lang.String getSandTransmitErrorMessageDefaultValue()
          Default value for sandTransmitErrorMessage.
 java.lang.String getSandTransmitErrorMessageFieldPrintValue()
          Return the print name of the sandTransmitErrorMessage field.
static boolean getSandTransmitErrorMessageFlag(int fieldflag)
          Field flag accessor.
static java.lang.String getSandTransmitErrorMessageInvalidValue()
          Invalid value for sandTransmitErrorMessage.
static int getSandTransmitErrorMessageLengthMax()
          Maximum sandTransmitErrorMessage length is 70 characters
static int getSandTransmitErrorMessageLengthNorm()
          Normal sandTransmitErrorMessage length is 30 characters
 java.lang.String getSandTransmitErrorMessageMetatype()
          Return the metatype text for this field, or "" if no metatype was declared.
 java.lang.String getSandTransmitErrorMessagePrintValue()
          Retrieve the current value of this field as a print String.
 java.lang.String getSandTransmitErrorMessageRange()
          Return the range specification for this field
 java.lang.String getSandTransmitErrorMessageValidityCheck()
          Return the empty string if the value of this field is valid according to the base SAND declarations.
 int getSandTransmitStatus()
          Accessor for sandTransmitStatus
static int getSandTransmitStatusDefaultValue()
          Default value for sandTransmitStatus.
 java.lang.String getSandTransmitStatusFieldPrintValue()
          Return the print name of the sandTransmitStatus field.
static boolean getSandTransmitStatusFlag(int fieldflag)
          Field flag accessor.
static int getSandTransmitStatusInvalidValue()
          Invalid value for sandTransmitStatus.
 java.lang.String getSandTransmitStatusMetatype()
          Return the metatype text for this field, or "" if no metatype was declared.
 java.lang.String getSandTransmitStatusPrintValue()
          Retrieve the current value of this field as a print String.
 java.lang.String getSandTransmitStatusRange()
          Return the range specification for this field
 java.lang.String getSandTransmitStatusValidityCheck()
          Return the empty string if the value of this field is valid according to the base SAND declarations.
 ServerDeclaration getServerDeclaration()
          Accessor for serverDeclaration
static ServerDeclaration getServerDeclarationDefaultValue()
          Default value for serverDeclaration.
 java.lang.String getServerDeclarationFieldPrintValue()
          Return the print name of the serverDeclaration field.
static boolean getServerDeclarationFlag(int fieldflag)
          Field flag accessor.
static ServerDeclaration getServerDeclarationInvalidValue()
          Invalid value for serverDeclaration.
 java.lang.String getServerDeclarationMetatype()
          Return the metatype text for this field, or "" if no metatype was declared.
 java.lang.String getServerDeclarationPrintValue()
          Retrieve the current value of this field as a print String.
 java.lang.String getServerDeclarationRange()
          Return the range specification for this field
 java.lang.String getServerDeclarationValidityCheck()
          Return the empty string if the value of this field is valid according to the base SAND declarations.
 java.lang.String getShortName()
          Returns the unqualified name of this message.
 java.lang.String getSource()
          Generalized accessor for the source
 SandStructMessage getStructMessage()
          Returns a new ServerDeclaration instance
 SandUpdateMessage getUpdateMessage()
          Returns a new ServerDeclarationUpdate instance
 void init()
          Initialize all fields to their default values
 boolean isEquivalent(SandMessage sm)
          Declared field equivalence check as specified by the SandMessage interface.
 void setAction(int action)
          Mutator for action
 void setInstance(SandStructMessage msg)
          Generalized mutator for the update instance
 void setSandTransmissionCount(int sandTransmissionCount)
          Mutator for sandTransmissionCount
 void setSandTransmissionLocale(java.util.Locale sandTransmissionLocale)
          Mutator for sandTransmissionLocale
 void setSandTransmissionLocale(java.lang.Object sandTransmissionLocale)
          Generic mutator for sandTransmissionLocale
 void setSandTransmitAuthID(long sandTransmitAuthID)
          Mutator for sandTransmitAuthID
 void setSandTransmitError(java.lang.String code, java.lang.String errText)
          Sets both the code and the error in a single method.
 void setSandTransmitErrorCode(java.lang.Object sandTransmitErrorCode)
          Generic mutator for sandTransmitErrorCode
 void setSandTransmitErrorCode(java.lang.String sandTransmitErrorCode)
          Mutator for sandTransmitErrorCode
 void setSandTransmitErrorMessage(java.lang.Object sandTransmitErrorMessage)
          Generic mutator for sandTransmitErrorMessage
 void setSandTransmitErrorMessage(java.lang.String sandTransmitErrorMessage)
          Mutator for sandTransmitErrorMessage
 void setSandTransmitStatus(int sandTransmitStatus)
          Mutator for sandTransmitStatus
 void setServerDeclaration(java.lang.Object serverDeclaration)
          Generic mutator for serverDeclaration
 void setServerDeclaration(ServerDeclaration serverDeclaration)
          Mutator for serverDeclaration
 void setSource(java.lang.String val)
          Generalized mutator for the source
 java.lang.String toString()
          Return a string representation of this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

sandTransmitAuthID

protected long sandTransmitAuthID
support for SandTransmitMessage interface


sandTransmitErrorMessage

protected java.lang.String sandTransmitErrorMessage
support for SandTransmitMessage interface


sandTransmitErrorCode

protected java.lang.String sandTransmitErrorCode
support for SandTransmitMessage interface


sandTransmitStatus

protected int sandTransmitStatus
support for SandTransmitMessage interface


sandTransmissionCount

protected int sandTransmissionCount
support for SandTransmitMessage interface


sandTransmissionLocale

protected java.util.Locale sandTransmissionLocale
support for SandTransmitMessage interface


action

protected int action
support for SandUpdateMessage interface


ACTION_UNKNOWN

public static final int ACTION_UNKNOWN
Possible value for action

See Also:
Constant Field Values

ACTION_ADDING

public static final int ACTION_ADDING
Possible value for action

See Also:
Constant Field Values

ACTION_UPDATING

public static final int ACTION_UPDATING
Possible value for action

See Also:
Constant Field Values

ACTION_DELETING

public static final int ACTION_DELETING
Possible value for action

See Also:
Constant Field Values

serverDeclaration

protected ServerDeclaration serverDeclaration
the contained instance for this update


source

protected java.lang.String source
The source of this update

Constructor Detail

ServerDeclarationUpdate

public ServerDeclarationUpdate()
Default constructor calls init.

Method Detail

fieldHasFlag

public boolean fieldHasFlag(java.lang.String fieldname,
                            int fieldflag)
Return true if the named field declares the indicated flag, false otherwise. See the FIELDFLAG* constants in SandInstanceMessage for supported fieldflag values.


getSandTransmitAuthID

public long getSandTransmitAuthID()
Accessor for sandTransmitAuthID

Specified by:
getSandTransmitAuthID in interface SandTransmitMessage

setSandTransmitAuthID

public void setSandTransmitAuthID(long sandTransmitAuthID)
Mutator for sandTransmitAuthID

Specified by:
setSandTransmitAuthID in interface SandTransmitMessage

getSandTransmitAuthIDFlag

public static boolean getSandTransmitAuthIDFlag(int fieldflag)
Field flag accessor. Returns whether the given FIELDFLAG_* (defined in SandInstanceMessage) is true or false.


getSandTransmitAuthIDDefaultValue

public static long getSandTransmitAuthIDDefaultValue()
Default value for sandTransmitAuthID. Returns 0


getSandTransmitAuthIDInvalidValue

public static long getSandTransmitAuthIDInvalidValue()
Invalid value for sandTransmitAuthID. Returns Long.MIN_VALUE


getSandTransmitAuthIDPrintValue

public java.lang.String getSandTransmitAuthIDPrintValue()
Retrieve the current value of this field as a print String. For a String field, this returns the current value. For int, long, double this returns the standard string conversion. For a Date, this returns the default DateFormat format. For an enum, this returns the Actual2Print translation of the current value. For a struct this returns a summary description.

Used for debug output, and as an initial value for transformation and formatting.


getSandTransmitAuthIDFieldPrintValue

public java.lang.String getSandTransmitAuthIDFieldPrintValue()
Return the print name of the sandTransmitAuthID field. If no printname is declared then this returns the field name.


getSandTransmitAuthIDRange

public java.lang.String getSandTransmitAuthIDRange()
Return the range specification for this field


getSandTransmitAuthIDValidityCheck

public java.lang.String getSandTransmitAuthIDValidityCheck()
Return the empty string if the value of this field is valid according to the base SAND declarations. This method supports the fieldValidate method, which is in turn specified by the org.sandev.basics.structs.SandInstanceMessage interface. See the comments there for more information, including a list of error Strings returned from here when a field is not valid.


getSandTransmitAuthIDMetatype

public java.lang.String getSandTransmitAuthIDMetatype()
Return the metatype text for this field, or "" if no metatype was declared.


getSandTransmitErrorMessage

public java.lang.String getSandTransmitErrorMessage()
Accessor for sandTransmitErrorMessage

Specified by:
getSandTransmitErrorMessage in interface SandTransmitMessage

setSandTransmitErrorMessage

public void setSandTransmitErrorMessage(java.lang.String sandTransmitErrorMessage)
Mutator for sandTransmitErrorMessage

Specified by:
setSandTransmitErrorMessage in interface SandTransmitMessage

setSandTransmitErrorMessage

public void setSandTransmitErrorMessage(java.lang.Object sandTransmitErrorMessage)
Generic mutator for sandTransmitErrorMessage


getSandTransmitErrorMessageFlag

public static boolean getSandTransmitErrorMessageFlag(int fieldflag)
Field flag accessor. Returns whether the given FIELDFLAG_* (defined in SandInstanceMessage) is true or false.


getSandTransmitErrorMessageLengthNorm

public static int getSandTransmitErrorMessageLengthNorm()
Normal sandTransmitErrorMessage length is 30 characters


getSandTransmitErrorMessageLengthMax

public static int getSandTransmitErrorMessageLengthMax()
Maximum sandTransmitErrorMessage length is 70 characters


getSandTransmitErrorMessageDefaultValue

public static java.lang.String getSandTransmitErrorMessageDefaultValue()
Default value for sandTransmitErrorMessage. Returns ""


getSandTransmitErrorMessageInvalidValue

public static java.lang.String getSandTransmitErrorMessageInvalidValue()
Invalid value for sandTransmitErrorMessage. Returns null


getSandTransmitErrorMessagePrintValue

public java.lang.String getSandTransmitErrorMessagePrintValue()
Retrieve the current value of this field as a print String. For a String field, this returns the current value. For int, long, double this returns the standard string conversion. For a Date, this returns the default DateFormat format. For an enum, this returns the Actual2Print translation of the current value. For a struct this returns a summary description.

Used for debug output, and as an initial value for transformation and formatting.


getSandTransmitErrorMessageFieldPrintValue

public java.lang.String getSandTransmitErrorMessageFieldPrintValue()
Return the print name of the sandTransmitErrorMessage field. If no printname is declared then this returns the field name.


getSandTransmitErrorMessageRange

public java.lang.String getSandTransmitErrorMessageRange()
Return the range specification for this field


getSandTransmitErrorMessageValidityCheck

public java.lang.String getSandTransmitErrorMessageValidityCheck()
Return the empty string if the value of this field is valid according to the base SAND declarations. This method supports the fieldValidate method, which is in turn specified by the org.sandev.basics.structs.SandInstanceMessage interface. See the comments there for more information, including a list of error Strings returned from here when a field is not valid.


getSandTransmitErrorMessageMetatype

public java.lang.String getSandTransmitErrorMessageMetatype()
Return the metatype text for this field, or "" if no metatype was declared.


getSandTransmitErrorCode

public java.lang.String getSandTransmitErrorCode()
Accessor for sandTransmitErrorCode

Specified by:
getSandTransmitErrorCode in interface SandTransmitMessage

setSandTransmitErrorCode

public void setSandTransmitErrorCode(java.lang.String sandTransmitErrorCode)
Mutator for sandTransmitErrorCode

Specified by:
setSandTransmitErrorCode in interface SandTransmitMessage

setSandTransmitErrorCode

public void setSandTransmitErrorCode(java.lang.Object sandTransmitErrorCode)
Generic mutator for sandTransmitErrorCode


setSandTransmitError

public void setSandTransmitError(java.lang.String code,
                                 java.lang.String errText)
Sets both the code and the error in a single method.

Specified by:
setSandTransmitError in interface SandTransmitMessage

getSandTransmitErrorCodeFlag

public static boolean getSandTransmitErrorCodeFlag(int fieldflag)
Field flag accessor. Returns whether the given FIELDFLAG_* (defined in SandInstanceMessage) is true or false.


getSandTransmitErrorCodeLengthNorm

public static int getSandTransmitErrorCodeLengthNorm()
Normal sandTransmitErrorCode length is 30 characters


getSandTransmitErrorCodeLengthMax

public static int getSandTransmitErrorCodeLengthMax()
Maximum sandTransmitErrorCode length is 70 characters


getSandTransmitErrorCodeDefaultValue

public static java.lang.String getSandTransmitErrorCodeDefaultValue()
Default value for sandTransmitErrorCode. Returns ""


getSandTransmitErrorCodeInvalidValue

public static java.lang.String getSandTransmitErrorCodeInvalidValue()
Invalid value for sandTransmitErrorCode. Returns null


getSandTransmitErrorCodePrintValue

public java.lang.String getSandTransmitErrorCodePrintValue()
Retrieve the current value of this field as a print String. For a String field, this returns the current value. For int, long, double this returns the standard string conversion. For a Date, this returns the default DateFormat format. For an enum, this returns the Actual2Print translation of the current value. For a struct this returns a summary description.

Used for debug output, and as an initial value for transformation and formatting.


getSandTransmitErrorCodeFieldPrintValue

public java.lang.String getSandTransmitErrorCodeFieldPrintValue()
Return the print name of the sandTransmitErrorCode field. If no printname is declared then this returns the field name.


getSandTransmitErrorCodeRange

public java.lang.String getSandTransmitErrorCodeRange()
Return the range specification for this field


getSandTransmitErrorCodeValidityCheck

public java.lang.String getSandTransmitErrorCodeValidityCheck()
Return the empty string if the value of this field is valid according to the base SAND declarations. This method supports the fieldValidate method, which is in turn specified by the org.sandev.basics.structs.SandInstanceMessage interface. See the comments there for more information, including a list of error Strings returned from here when a field is not valid.


getSandTransmitErrorCodeMetatype

public java.lang.String getSandTransmitErrorCodeMetatype()
Return the metatype text for this field, or "" if no metatype was declared.


getSandTransmitStatus

public int getSandTransmitStatus()
Accessor for sandTransmitStatus

Specified by:
getSandTransmitStatus in interface SandTransmitMessage

setSandTransmitStatus

public void setSandTransmitStatus(int sandTransmitStatus)
Mutator for sandTransmitStatus

Specified by:
setSandTransmitStatus in interface SandTransmitMessage

getSandTransmitStatusFlag

public static boolean getSandTransmitStatusFlag(int fieldflag)
Field flag accessor. Returns whether the given FIELDFLAG_* (defined in SandInstanceMessage) is true or false.


getSandTransmitStatusDefaultValue

public static int getSandTransmitStatusDefaultValue()
Default value for sandTransmitStatus. Returns 0


getSandTransmitStatusInvalidValue

public static int getSandTransmitStatusInvalidValue()
Invalid value for sandTransmitStatus. Returns Integer.MIN_VALUE


getSandTransmitStatusPrintValue

public java.lang.String getSandTransmitStatusPrintValue()
Retrieve the current value of this field as a print String. For a String field, this returns the current value. For int, long, double this returns the standard string conversion. For a Date, this returns the default DateFormat format. For an enum, this returns the Actual2Print translation of the current value. For a struct this returns a summary description.

Used for debug output, and as an initial value for transformation and formatting.


getSandTransmitStatusFieldPrintValue

public java.lang.String getSandTransmitStatusFieldPrintValue()
Return the print name of the sandTransmitStatus field. If no printname is declared then this returns the field name.


getSandTransmitStatusRange

public java.lang.String getSandTransmitStatusRange()
Return the range specification for this field


getSandTransmitStatusValidityCheck

public java.lang.String getSandTransmitStatusValidityCheck()
Return the empty string if the value of this field is valid according to the base SAND declarations. This method supports the fieldValidate method, which is in turn specified by the org.sandev.basics.structs.SandInstanceMessage interface. See the comments there for more information, including a list of error Strings returned from here when a field is not valid.


getSandTransmitStatusMetatype

public java.lang.String getSandTransmitStatusMetatype()
Return the metatype text for this field, or "" if no metatype was declared.


getSandTransmissionCount

public int getSandTransmissionCount()
Accessor for sandTransmissionCount

Specified by:
getSandTransmissionCount in interface SandTransmitMessage

setSandTransmissionCount

public void setSandTransmissionCount(int sandTransmissionCount)
Mutator for sandTransmissionCount

Specified by:
setSandTransmissionCount in interface SandTransmitMessage

getSandTransmissionCountFlag

public static boolean getSandTransmissionCountFlag(int fieldflag)
Field flag accessor. Returns whether the given FIELDFLAG_* (defined in SandInstanceMessage) is true or false.


getSandTransmissionCountDefaultValue

public static int getSandTransmissionCountDefaultValue()
Default value for sandTransmissionCount. Returns 0


getSandTransmissionCountInvalidValue

public static int getSandTransmissionCountInvalidValue()
Invalid value for sandTransmissionCount. Returns Integer.MIN_VALUE


getSandTransmissionCountPrintValue

public java.lang.String getSandTransmissionCountPrintValue()
Retrieve the current value of this field as a print String. For a String field, this returns the current value. For int, long, double this returns the standard string conversion. For a Date, this returns the default DateFormat format. For an enum, this returns the Actual2Print translation of the current value. For a struct this returns a summary description.

Used for debug output, and as an initial value for transformation and formatting.


getSandTransmissionCountFieldPrintValue

public java.lang.String getSandTransmissionCountFieldPrintValue()
Return the print name of the sandTransmissionCount field. If no printname is declared then this returns the field name.


getSandTransmissionCountRange

public java.lang.String getSandTransmissionCountRange()
Return the range specification for this field


getSandTransmissionCountValidityCheck

public java.lang.String getSandTransmissionCountValidityCheck()
Return the empty string if the value of this field is valid according to the base SAND declarations. This method supports the fieldValidate method, which is in turn specified by the org.sandev.basics.structs.SandInstanceMessage interface. See the comments there for more information, including a list of error Strings returned from here when a field is not valid.


getSandTransmissionCountMetatype

public java.lang.String getSandTransmissionCountMetatype()
Return the metatype text for this field, or "" if no metatype was declared.


getSandTransmissionLocale

public java.util.Locale getSandTransmissionLocale()
Accessor for sandTransmissionLocale

Specified by:
getSandTransmissionLocale in interface SandTransmitMessage

setSandTransmissionLocale

public void setSandTransmissionLocale(java.util.Locale sandTransmissionLocale)
Mutator for sandTransmissionLocale

Specified by:
setSandTransmissionLocale in interface SandTransmitMessage

setSandTransmissionLocale

public void setSandTransmissionLocale(java.lang.Object sandTransmissionLocale)
Generic mutator for sandTransmissionLocale


getSandTransmissionLocaleFlag

public static boolean getSandTransmissionLocaleFlag(int fieldflag)
Field flag accessor. Returns whether the given FIELDFLAG_* (defined in SandInstanceMessage) is true or false.


getSandTransmissionLocaleDefaultValue

public static java.util.Locale getSandTransmissionLocaleDefaultValue()
Default value for sandTransmissionLocale. Returns null


getSandTransmissionLocaleInvalidValue

public static java.util.Locale getSandTransmissionLocaleInvalidValue()
Invalid value for sandTransmissionLocale. Returns null


getSandTransmissionLocalePrintValue

public java.lang.String getSandTransmissionLocalePrintValue()
Retrieve the current value of this field as a print String. For a String field, this returns the current value. For int, long, double this returns the standard string conversion. For a Date, this returns the default DateFormat format. For an enum, this returns the Actual2Print translation of the current value. For a struct this returns a summary description.

Used for debug output, and as an initial value for transformation and formatting.


getSandTransmissionLocaleFieldPrintValue

public java.lang.String getSandTransmissionLocaleFieldPrintValue()
Return the print name of the sandTransmissionLocale field. If no printname is declared then this returns the field name.


getSandTransmissionLocaleRange

public java.lang.String getSandTransmissionLocaleRange()
Return the range specification for this field


getSandTransmissionLocaleValidityCheck

public java.lang.String getSandTransmissionLocaleValidityCheck()
Return the empty string if the value of this field is valid according to the base SAND declarations. This method supports the fieldValidate method, which is in turn specified by the org.sandev.basics.structs.SandInstanceMessage interface. See the comments there for more information, including a list of error Strings returned from here when a field is not valid.


getSandTransmissionLocaleMetatype

public java.lang.String getSandTransmissionLocaleMetatype()
Return the metatype text for this field, or "" if no metatype was declared.


getAction

public int getAction()
Accessor for action

Specified by:
getAction in interface SandUpdateMessage

setAction

public void setAction(int action)
Mutator for action

Specified by:
setAction in interface SandUpdateMessage

actionValueToLabel

public java.lang.String actionValueToLabel(int val)
Given a value, return the declared label for it. This is a conversion method suitable for things like XML serialization where the value must be unique, descriptive, and readable, but is not subject to the same degree of transformation as a UI.

Specified by:
actionValueToLabel in interface SandUpdateMessage

actionValueToLabelStatic

public static java.lang.String actionValueToLabelStatic(int val)

actionLabelToValue

public int actionLabelToValue(java.lang.String label)
Given a label, return the value for it. This is a conversion method performing the inverse of ValueToLabel. See the comments there for more details.


actionLabelToValueStatic

public static int actionLabelToValueStatic(java.lang.String label)

getActionPrintVals

public static java.lang.String[] getActionPrintVals()
Return an array of the possible values for this field in display format. These values can be used by a UI directly, or as keys for looking up localized text. These values are not guaranteed to be globally unique, another field with the same possible value may share the same string instance.


getActionKeyVals

public static java.lang.String[] getActionKeyVals()
Return an array of unique keys for the values of this field. These keys are globally unique and can be used for looking up localized text without any chance of the same key being used by any other field value in the application.


getActionActualVals

public static java.lang.String[] getActionActualVals()
Return an array of the possible values for this field as Strings. These values can be directly converted to their integer equivalents.


actionPrint2Key

public static java.lang.String actionPrint2Key(java.lang.String printVal)
Utility method to transform a print value for this field into a key value. See the getActionPrintVals and getActionKeyVals methods for details.


actionPrint2Actual

public static java.lang.String actionPrint2Actual(java.lang.String printVal)
Utility method to transform a print value for this field into an actual value. See the getActionPrintVals and getActionActualVals methods for details.


actionActual2Print

public static java.lang.String actionActual2Print(java.lang.String actualVal)
Utility method to transform an actual value for this field into a print value. See the getActionActualVals and getActionPrintVals methods for details.


getActionEnumSummary

public static java.lang.String getActionEnumSummary()
Return a single String summary of the possible enum values for debug and similar purposes.


getActionFlag

public static boolean getActionFlag(int fieldflag)
Field flag accessor. Returns whether the given FIELDFLAG_* (defined in SandInstanceMessage) is true or false.


getActionDefaultValue

public static int getActionDefaultValue()
Default value for action. Returns 0


getActionInvalidValue

public static int getActionInvalidValue()
Invalid value for action. Returns Integer.MIN_VALUE


getActionPrintValue

public java.lang.String getActionPrintValue()
Retrieve the current value of this field as a print String. For a String field, this returns the current value. For int, long, double this returns the standard string conversion. For a Date, this returns the default DateFormat format. For an enum, this returns the Actual2Print translation of the current value. For a struct this returns a summary description.

Used for debug output, and as an initial value for transformation and formatting.


getActionFieldPrintValue

public java.lang.String getActionFieldPrintValue()
Return the print name of the action field. If no printname is declared then this returns the field name.


getActionRange

public java.lang.String getActionRange()
Return the range specification for this field


getActionValidityCheck

public java.lang.String getActionValidityCheck()
Return the empty string if the value of this field is valid according to the base SAND declarations. This method supports the fieldValidate method, which is in turn specified by the org.sandev.basics.structs.SandInstanceMessage interface. See the comments there for more information, including a list of error Strings returned from here when a field is not valid.


getActionMetatype

public java.lang.String getActionMetatype()
Return the metatype text for this field, or "" if no metatype was declared.


getServerDeclaration

public ServerDeclaration getServerDeclaration()
Accessor for serverDeclaration


setServerDeclaration

public void setServerDeclaration(ServerDeclaration serverDeclaration)
Mutator for serverDeclaration


setServerDeclaration

public void setServerDeclaration(java.lang.Object serverDeclaration)
Generic mutator for serverDeclaration


getServerDeclarationFlag

public static boolean getServerDeclarationFlag(int fieldflag)
Field flag accessor. Returns whether the given FIELDFLAG_* (defined in SandInstanceMessage) is true or false.


getServerDeclarationDefaultValue

public static ServerDeclaration getServerDeclarationDefaultValue()
Default value for serverDeclaration. Returns null


getServerDeclarationInvalidValue

public static ServerDeclaration getServerDeclarationInvalidValue()
Invalid value for serverDeclaration. Returns null


getServerDeclarationPrintValue

public java.lang.String getServerDeclarationPrintValue()
Retrieve the current value of this field as a print String. For a String field, this returns the current value. For int, long, double this returns the standard string conversion. For a Date, this returns the default DateFormat format. For an enum, this returns the Actual2Print translation of the current value. For a struct this returns a summary description.

Used for debug output, and as an initial value for transformation and formatting.


getServerDeclarationFieldPrintValue

public java.lang.String getServerDeclarationFieldPrintValue()
Return the print name of the serverDeclaration field. If no printname is declared then this returns the field name.


getServerDeclarationRange

public java.lang.String getServerDeclarationRange()
Return the range specification for this field


getServerDeclarationValidityCheck

public java.lang.String getServerDeclarationValidityCheck()
Return the empty string if the value of this field is valid according to the base SAND declarations. This method supports the fieldValidate method, which is in turn specified by the org.sandev.basics.structs.SandInstanceMessage interface. See the comments there for more information, including a list of error Strings returned from here when a field is not valid.


getServerDeclarationMetatype

public java.lang.String getServerDeclarationMetatype()
Return the metatype text for this field, or "" if no metatype was declared.


init

public void init()
Initialize all fields to their default values


getInstance

public SandStructMessage getInstance()
Generalized accessor for the update instance

Specified by:
getInstance in interface SandUpdateMessage

setInstance

public void setInstance(SandStructMessage msg)
Generalized mutator for the update instance

Specified by:
setInstance in interface SandUpdateMessage

getInstanceID

public long getInstanceID()
Return the uniqueID of the update instance, or -1 if it is not a persistent message.

Specified by:
getInstanceID in interface SandUpdateMessage

toString

public java.lang.String toString()
Return a string representation of this object.

Overrides:
toString in class java.lang.Object

getSource

public java.lang.String getSource()
Generalized accessor for the source

Specified by:
getSource in interface SandUpdateMessage

setSource

public void setSource(java.lang.String val)
Generalized mutator for the source

Specified by:
setSource in interface SandUpdateMessage

getShortName

public java.lang.String getShortName()
Returns the unqualified name of this message.

Specified by:
getShortName in interface SandMessage

getQueryMessage

public SandQueryMessage getQueryMessage()
Returns a new ServerDeclarationQuery instance

Specified by:
getQueryMessage in interface SandMessage

getCollectionMessage

public SandCollectionMessage getCollectionMessage()
Returns a new ServerDeclarationCollection instance

Specified by:
getCollectionMessage in interface SandMessage

getUpdateMessage

public SandUpdateMessage getUpdateMessage()
Returns a new ServerDeclarationUpdate instance

Specified by:
getUpdateMessage in interface SandMessage

getStructMessage

public SandStructMessage getStructMessage()
Returns a new ServerDeclaration instance

Specified by:
getStructMessage in interface SandMessage

isEquivalent

public boolean isEquivalent(SandMessage sm)
Declared field equivalence check as specified by the SandMessage interface. String values are trimmed before comparison because conversions may occasionally result in trailing whitespace, which should not cause equivalence comparisons to fail. Comparisons are case insensitive since that corresponds to what most people expect, and how most databases work.

When comparing arrays, it is possible that the array elements may have been set to null as part of authorization filtering or similar unusual circumstances. A null array element is only equivalent to another null array element.

Specified by:
isEquivalent in interface SandMessage

getBaseMemoryUse

public int getBaseMemoryUse()
Return the base memory use for this object. This number is a minimum value for estimation purposes, see the comments in the SandStructMessage declaration for details.

Specified by:
getBaseMemoryUse in interface SandMessage