org.sandev.basics.sandmessages
Class BaseUser

java.lang.Object
  extended byorg.sandev.basics.structs.BaseUserStruct
      extended byorg.sandev.basics.sandmessages.BaseUser
All Implemented Interfaces:
AuthUser, Resolvable, SandInstanceMessage, SandMessage, SandPersistMessage, SandStructMessage

public class BaseUser
extends BaseUserStruct
implements SandStructMessage, Resolvable, SandPersistMessage, AuthUser

AUTOGENERATED FILE, DO NOT EDIT DIRECTLY.
source: org.sandev.basics.structs.BaseUserStruct
generator: org.sandev.generator.MessageClassGenerator
time: Dec 2, 2005 6:38:50 PM


Field Summary
protected  java.util.Date creationTime
          An immutable timestamp reflecting the time when this instance first created.
protected  java.lang.String lastModifiedReason
          A text field describing the reason for the update or add.
protected  java.util.Date lastModifiedTime
          An immutable timestamp reflecting the time when this instance was last updated.
protected  int recordStatus
          Initially set to SandPersistMessage.RECORDSTATUS_ACTIVE by the persistence processing on creation, this field is set to RECORDSTATUS_DELETED in response to a SandUpdateMessage ACTION_DELETE.
static int RECORDSTATUS_ACTIVE
          Possible value for recordStatus
static int RECORDSTATUS_ARCHIVED
          Possible value for recordStatus
static int RECORDSTATUS_DELETED
          Possible value for recordStatus
protected  long revisionNumber
          An immutable version number updated by the persistence processing on each update.
protected  long uniqueID
          An immutable unique identifier generated by the persistence processing when a SandUpdateMessage ACTION_ADD is sent to a DataManager node instance and processed successfully.
 
Fields inherited from class org.sandev.basics.structs.BaseUserStruct
password, username
 
Fields inherited from interface org.sandev.basics.structs.SandInstanceMessage
FIELDCHECK_INVALIDVAL, FIELDCHECK_NOTAREF, FIELDCHECK_NOTINRANGE, FIELDCHECK_NULLARRAY, FIELDCHECK_STRINGOVER, FIELDCHECK_UNKNOWNVAL, FIELDFLAG_BINARY, FIELDFLAG_ENCRYPT, FIELDFLAG_INTERNAL, FIELDFLAG_NOECHO, FIELDFLAG_OBFUSCATE, FIELDFLAG_STRINGPERSIST, FIELDFLAG_UNIQUE, GENMOD_ACTION_APPEND, GENMOD_ACTION_INSERT, GENMOD_ACTION_REMOVE, GENMOD_ACTION_SET
 
Constructor Summary
BaseUser()
          Default constructor calls init.
 
Method Summary
 BaseUser cloneBaseUser()
          Make a deep copy of this BaseUser.
 SandInstanceMessage cloneMessage()
          Calls cloneBaseUser
 SandInstanceMessage convertToSuperstructClass()
          Return a new instance of the message associated with the superstruct of this instance.
 void copyDataFrom(BaseUser other)
          Deep copy all the data from the specified instance.
 void copyFieldValue(java.lang.String fieldName, SandInstanceMessage other)
          Copy the specified field from the given instance.
 java.lang.String debugDump(java.lang.String prefix)
          Dump this instance into a debug printable string.
 void defaultField(java.lang.String fieldname)
          Set the specified field to its default value.
 boolean fieldHasFlag(java.lang.String fieldname, int fieldflag)
          Return true if the named field declares the indicated flag, false otherwise.
 boolean fieldsValid()
          Validate the fields as specified in the SandInstanceMessage interface
 SandAttrVal[] fieldValidate(SandAttrVal[] checkFields)
          Validate the fields as specified in the SandInstanceMessage interface
 java.lang.Object generalAccessor(java.lang.String fieldspec)
          General field accessor method.
 SandAttrVal generalDereference(java.lang.String fieldspec)
          General reference field accessor method.
 void generalModifier(int action, java.lang.String field, int index, java.lang.Object val)
          General mutator method.
 java.lang.String[] getAllFields()
          Return an array of all fields for this class.
 SandCollectionMessage getCollectionMessage()
          Returns a new BaseUserCollection instance
 java.util.Date getCreationTime()
          Accessor for creationTime
static java.util.Date getCreationTimeDefaultValue()
          Default value for creationTime.
 java.lang.String getCreationTimeFieldPrintValue()
          Return the print name of the creationTime field.
static boolean getCreationTimeFlag(int fieldflag)
          Field flag accessor.
static java.util.Date getCreationTimeInvalidValue()
          Invalid value for creationTime.
 java.lang.String getCreationTimeMetatype()
          Return the metatype text for this field, or "" if no metatype was declared.
 java.lang.String getCreationTimePrintValue()
          Retrieve the current value of this field as a print String.
 java.lang.String getCreationTimeRange()
          Return the range specification for this field
 java.lang.String getCreationTimeValidityCheck()
          Return the empty string if the value of this field is valid according to the base SAND declarations.
 java.lang.String[] getDisplayFields()
          Return an array of the summary field names for this class.
 java.lang.String[] getDisplayValues()
          Return the values for the summary fields.
 java.lang.String[] getDisplayValues(IDLookup lookup, AuthUser user, java.lang.String defaultVal)
          Return the values for the summary fields, including dereference expressions.
 java.lang.String getLastModifiedReason()
          Accessor for lastModifiedReason
static java.lang.String getLastModifiedReasonDefaultValue()
          Default value for lastModifiedReason.
 java.lang.String getLastModifiedReasonFieldPrintValue()
          Return the print name of the lastModifiedReason field.
static boolean getLastModifiedReasonFlag(int fieldflag)
          Field flag accessor.
static java.lang.String getLastModifiedReasonInvalidValue()
          Invalid value for lastModifiedReason.
static int getLastModifiedReasonLengthMax()
          Maximum lastModifiedReason length is 70 characters
static int getLastModifiedReasonLengthNorm()
          Normal lastModifiedReason length is 30 characters
 java.lang.String getLastModifiedReasonMetatype()
          Return the metatype text for this field, or "" if no metatype was declared.
 java.lang.String getLastModifiedReasonPrintValue()
          Retrieve the current value of this field as a print String.
 java.lang.String getLastModifiedReasonRange()
          Return the range specification for this field
 java.lang.String getLastModifiedReasonValidityCheck()
          Return the empty string if the value of this field is valid according to the base SAND declarations.
 java.util.Date getLastModifiedTime()
          Accessor for lastModifiedTime
static java.util.Date getLastModifiedTimeDefaultValue()
          Default value for lastModifiedTime.
 java.lang.String getLastModifiedTimeFieldPrintValue()
          Return the print name of the lastModifiedTime field.
static boolean getLastModifiedTimeFlag(int fieldflag)
          Field flag accessor.
static java.util.Date getLastModifiedTimeInvalidValue()
          Invalid value for lastModifiedTime.
 java.lang.String getLastModifiedTimeMetatype()
          Return the metatype text for this field, or "" if no metatype was declared.
 java.lang.String getLastModifiedTimePrintValue()
          Retrieve the current value of this field as a print String.
 java.lang.String getLastModifiedTimeRange()
          Return the range specification for this field
 java.lang.String getLastModifiedTimeValidityCheck()
          Return the empty string if the value of this field is valid according to the base SAND declarations.
 java.lang.String getPassword()
          Accessor for password
static java.lang.String getPasswordDefaultValue()
          Default value for password.
 java.lang.String getPasswordFieldPrintValue()
          Return the print name of the password field.
static boolean getPasswordFlag(int fieldflag)
          Field flag accessor.
static java.lang.String getPasswordInvalidValue()
          Invalid value for password.
static int getPasswordLengthMax()
          Maximum password length is 80 characters
static int getPasswordLengthNorm()
          Normal password length is 15 characters
 java.lang.String getPasswordMetatype()
          Return the metatype text for this field, or "" if no metatype was declared.
 java.lang.String getPasswordPrintValue()
          Retrieve the current value of this field as a print String.
 java.lang.String getPasswordRange()
          Return the range specification for this field
 java.lang.String getPasswordValidityCheck()
          Return the empty string if the value of this field is valid according to the base SAND declarations.
 SandQueryMessage getQueryMessage()
          Returns a new BaseUserQuery instance
 int getRecordStatus()
          Accessor for recordStatus
static java.lang.String[] getRecordStatusActualVals()
          Return an array of the possible values for this field as Strings.
static int getRecordStatusDefaultValue()
          Default value for recordStatus.
static java.lang.String getRecordStatusEnumSummary()
          Return a single String summary of the possible enum values for debug and similar purposes.
 java.lang.String getRecordStatusFieldPrintValue()
          Return the print name of the recordStatus field.
static boolean getRecordStatusFlag(int fieldflag)
          Field flag accessor.
static int getRecordStatusInvalidValue()
          Invalid value for recordStatus.
static java.lang.String[] getRecordStatusKeyVals()
          Return an array of unique keys for the values of this field.
 java.lang.String getRecordStatusMetatype()
          Return the metatype text for this field, or "" if no metatype was declared.
static java.lang.String[] getRecordStatusPrintVals()
          Return an array of the possible values for this field in display format.
 java.lang.String getRecordStatusPrintValue()
          Retrieve the current value of this field as a print String.
 java.lang.String getRecordStatusRange()
          Return the range specification for this field
 java.lang.String getRecordStatusValidityCheck()
          Return the empty string if the value of this field is valid according to the base SAND declarations.
 long getRevisionNumber()
          Accessor for revisionNumber
static long getRevisionNumberDefaultValue()
          Default value for revisionNumber.
 java.lang.String getRevisionNumberFieldPrintValue()
          Return the print name of the revisionNumber field.
static boolean getRevisionNumberFlag(int fieldflag)
          Field flag accessor.
static long getRevisionNumberInvalidValue()
          Invalid value for revisionNumber.
 java.lang.String getRevisionNumberMetatype()
          Return the metatype text for this field, or "" if no metatype was declared.
 java.lang.String getRevisionNumberPrintValue()
          Retrieve the current value of this field as a print String.
 java.lang.String getRevisionNumberRange()
          Return the range specification for this field
 java.lang.String getRevisionNumberValidityCheck()
          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.
 SandStructMessage getStructMessage()
          Returns a new BaseUser instance
 long getUniqueID()
          Accessor for uniqueID
static long getUniqueIDDefaultValue()
          Default value for uniqueID.
 java.lang.String getUniqueIDFieldPrintValue()
          Return the print name of the uniqueID field.
static boolean getUniqueIDFlag(int fieldflag)
          Field flag accessor.
static long getUniqueIDInvalidValue()
          Invalid value for uniqueID.
 java.lang.String getUniqueIDMetatype()
          Return the metatype text for this field, or "" if no metatype was declared.
 java.lang.String getUniqueIDPrintValue()
          Retrieve the current value of this field as a print String.
 java.lang.String getUniqueIDRange()
          Return the range specification for this field
 java.lang.String getUniqueIDValidityCheck()
          Return the empty string if the value of this field is valid according to the base SAND declarations.
 SandUpdateMessage getUpdateMessage()
          Returns a new BaseUserUpdate instance
 java.lang.String getUsername()
          Accessor for username
static java.lang.String getUsernameDefaultValue()
          Default value for username.
 java.lang.String getUsernameFieldPrintValue()
          Return the print name of the username field.
static boolean getUsernameFlag(int fieldflag)
          Field flag accessor.
static java.lang.String getUsernameInvalidValue()
          Invalid value for username.
static int getUsernameLengthMax()
          Maximum username length is 80 characters
static int getUsernameLengthNorm()
          Normal username length is 15 characters
 java.lang.String getUsernameMetatype()
          Return the metatype text for this field, or "" if no metatype was declared.
 java.lang.String getUsernamePrintValue()
          Retrieve the current value of this field as a print String.
 java.lang.String getUsernameRange()
          Return the range specification for this field
 java.lang.String getUsernameValidityCheck()
          Return the empty string if the value of this field is valid according to the base SAND declarations.
 java.lang.String getValueForFieldName(java.lang.String fieldname, IDLookup lookup, AuthUser user, java.lang.String defaultVal)
          Returns the print representation of the value of the specified field, or the given default value if innaccessible.
 void init()
          Initialize all fields to their default values
 boolean isEquivalent(SandMessage sm)
          Declared field equivalence check as specified by the SandMessage interface.
static java.lang.String recordStatusActual2Print(java.lang.String actualVal)
          Utility method to transform an actual value for this field into a print value.
 int recordStatusLabelToValue(java.lang.String label)
          Given a label, return the value for it.
static java.lang.String recordStatusPrint2Actual(java.lang.String printVal)
          Utility method to transform a print value for this field into an actual value.
static java.lang.String recordStatusPrint2Key(java.lang.String printVal)
          Utility method to transform a print value for this field into a key value.
 java.lang.String recordStatusValueToLabel(int val)
          Given a value, return the declared label for it.
 java.lang.String[] referenceValidate(java.lang.String[] locations, java.lang.String prefix, IDLookup idlookup, NameLookup namelookup, AuthUser au)
          Validate the references as specified in the Resolvable interface.
 void setCreationTime(java.util.Date creationTime)
          Mutator for creationTime
 void setCreationTime(java.lang.Object creationTime)
          Generic mutator for creationTime
 void setLastModifiedReason(java.lang.Object lastModifiedReason)
          Generic mutator for lastModifiedReason
 void setLastModifiedReason(java.lang.String lastModifiedReason)
          Mutator for lastModifiedReason
 void setLastModifiedTime(java.util.Date lastModifiedTime)
          Mutator for lastModifiedTime
 void setLastModifiedTime(java.lang.Object lastModifiedTime)
          Generic mutator for lastModifiedTime
 void setPassword(java.lang.Object password)
          Generic mutator for password
 void setPassword(java.lang.String password)
          Mutator for password
 void setRecordStatus(int recordStatus)
          Mutator for recordStatus
 void setRevisionNumber(long revisionNumber)
          Mutator for revisionNumber
 void setUniqueID(long uniqueID)
          Mutator for uniqueID
 void setUsername(java.lang.Object username)
          Generic mutator for username
 void setUsername(java.lang.String username)
          Mutator for username
 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

uniqueID

protected long uniqueID
An immutable unique identifier generated by the persistence processing when a SandUpdateMessage ACTION_ADD is sent to a DataManager node instance and processed successfully.


creationTime

protected java.util.Date creationTime
An immutable timestamp reflecting the time when this instance first created. The creationTime is when the instance was first persisted.


lastModifiedTime

protected java.util.Date lastModifiedTime
An immutable timestamp reflecting the time when this instance was last updated. This is set by the persistence processing when the updated instance information is persisted.


lastModifiedReason

protected java.lang.String lastModifiedReason
A text field describing the reason for the update or add. The text can be entered manually by the user, or generated by the application, or a combination of both.


revisionNumber

protected long revisionNumber
An immutable version number updated by the persistence processing on each update. Starts at 1 on initial creation.


recordStatus

protected int recordStatus
Initially set to SandPersistMessage.RECORDSTATUS_ACTIVE by the persistence processing on creation, this field is set to RECORDSTATUS_DELETED in response to a SandUpdateMessage ACTION_DELETE. The DataManager will only access persistent information for RECORDSTATUS_ACTIVE unless processing object history. RECORDSTATUS_ARCHIVED is provided to indicate existent data that has been moved offline.


RECORDSTATUS_ACTIVE

public static final int RECORDSTATUS_ACTIVE
Possible value for recordStatus

See Also:
Constant Field Values

RECORDSTATUS_DELETED

public static final int RECORDSTATUS_DELETED
Possible value for recordStatus

See Also:
Constant Field Values

RECORDSTATUS_ARCHIVED

public static final int RECORDSTATUS_ARCHIVED
Possible value for recordStatus

See Also:
Constant Field Values
Constructor Detail

BaseUser

public BaseUser()
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.

Specified by:
fieldHasFlag in interface SandInstanceMessage

getUsername

public java.lang.String getUsername()
Accessor for username

Specified by:
getUsername in interface AuthUser

setUsername

public void setUsername(java.lang.String username)
Mutator for username

Specified by:
setUsername in interface AuthUser

setUsername

public void setUsername(java.lang.Object username)
Generic mutator for username


getUsernameFlag

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


getUsernameLengthNorm

public static int getUsernameLengthNorm()
Normal username length is 15 characters


getUsernameLengthMax

public static int getUsernameLengthMax()
Maximum username length is 80 characters


getUsernameDefaultValue

public static java.lang.String getUsernameDefaultValue()
Default value for username. Returns ""


getUsernameInvalidValue

public static java.lang.String getUsernameInvalidValue()
Invalid value for username. Returns ""


getUsernamePrintValue

public java.lang.String getUsernamePrintValue()
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.


getUsernameFieldPrintValue

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


getUsernameRange

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


getUsernameValidityCheck

public java.lang.String getUsernameValidityCheck()
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.


getUsernameMetatype

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


getPassword

public java.lang.String getPassword()
Accessor for password

Specified by:
getPassword in interface AuthUser

setPassword

public void setPassword(java.lang.String password)
Mutator for password

Specified by:
setPassword in interface AuthUser

setPassword

public void setPassword(java.lang.Object password)
Generic mutator for password


getPasswordFlag

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


getPasswordLengthNorm

public static int getPasswordLengthNorm()
Normal password length is 15 characters


getPasswordLengthMax

public static int getPasswordLengthMax()
Maximum password length is 80 characters


getPasswordDefaultValue

public static java.lang.String getPasswordDefaultValue()
Default value for password. Returns ""


getPasswordInvalidValue

public static java.lang.String getPasswordInvalidValue()
Invalid value for password. Returns "SANDEV_INVALID_PASSWORD"


getPasswordPrintValue

public java.lang.String getPasswordPrintValue()
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.


getPasswordFieldPrintValue

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


getPasswordRange

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


getPasswordValidityCheck

public java.lang.String getPasswordValidityCheck()
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.


getPasswordMetatype

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


getUniqueID

public long getUniqueID()
Accessor for uniqueID

Specified by:
getUniqueID in interface SandPersistMessage

setUniqueID

public void setUniqueID(long uniqueID)
Mutator for uniqueID

Specified by:
setUniqueID in interface SandPersistMessage

getUniqueIDFlag

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


getUniqueIDDefaultValue

public static long getUniqueIDDefaultValue()
Default value for uniqueID. Returns 0


getUniqueIDInvalidValue

public static long getUniqueIDInvalidValue()
Invalid value for uniqueID. Returns Long.MIN_VALUE


getUniqueIDPrintValue

public java.lang.String getUniqueIDPrintValue()
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.


getUniqueIDFieldPrintValue

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


getUniqueIDRange

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


getUniqueIDValidityCheck

public java.lang.String getUniqueIDValidityCheck()
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.


getUniqueIDMetatype

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


getCreationTime

public java.util.Date getCreationTime()
Accessor for creationTime

Specified by:
getCreationTime in interface SandPersistMessage

setCreationTime

public void setCreationTime(java.util.Date creationTime)
Mutator for creationTime


setCreationTime

public void setCreationTime(java.lang.Object creationTime)
Generic mutator for creationTime


getCreationTimeFlag

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


getCreationTimeDefaultValue

public static java.util.Date getCreationTimeDefaultValue()
Default value for creationTime. Returns System.currentTimeMillis()


getCreationTimeInvalidValue

public static java.util.Date getCreationTimeInvalidValue()
Invalid value for creationTime. Returns null


getCreationTimePrintValue

public java.lang.String getCreationTimePrintValue()
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.


getCreationTimeFieldPrintValue

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


getCreationTimeRange

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


getCreationTimeValidityCheck

public java.lang.String getCreationTimeValidityCheck()
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.


getCreationTimeMetatype

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


getLastModifiedTime

public java.util.Date getLastModifiedTime()
Accessor for lastModifiedTime

Specified by:
getLastModifiedTime in interface SandPersistMessage

setLastModifiedTime

public void setLastModifiedTime(java.util.Date lastModifiedTime)
Mutator for lastModifiedTime


setLastModifiedTime

public void setLastModifiedTime(java.lang.Object lastModifiedTime)
Generic mutator for lastModifiedTime


getLastModifiedTimeFlag

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


getLastModifiedTimeDefaultValue

public static java.util.Date getLastModifiedTimeDefaultValue()
Default value for lastModifiedTime. Returns System.currentTimeMillis()


getLastModifiedTimeInvalidValue

public static java.util.Date getLastModifiedTimeInvalidValue()
Invalid value for lastModifiedTime. Returns null


getLastModifiedTimePrintValue

public java.lang.String getLastModifiedTimePrintValue()
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.


getLastModifiedTimeFieldPrintValue

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


getLastModifiedTimeRange

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


getLastModifiedTimeValidityCheck

public java.lang.String getLastModifiedTimeValidityCheck()
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.


getLastModifiedTimeMetatype

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


getLastModifiedReason

public java.lang.String getLastModifiedReason()
Accessor for lastModifiedReason

Specified by:
getLastModifiedReason in interface SandPersistMessage

setLastModifiedReason

public void setLastModifiedReason(java.lang.String lastModifiedReason)
Mutator for lastModifiedReason

Specified by:
setLastModifiedReason in interface SandPersistMessage

setLastModifiedReason

public void setLastModifiedReason(java.lang.Object lastModifiedReason)
Generic mutator for lastModifiedReason


getLastModifiedReasonFlag

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


getLastModifiedReasonLengthNorm

public static int getLastModifiedReasonLengthNorm()
Normal lastModifiedReason length is 30 characters


getLastModifiedReasonLengthMax

public static int getLastModifiedReasonLengthMax()
Maximum lastModifiedReason length is 70 characters


getLastModifiedReasonDefaultValue

public static java.lang.String getLastModifiedReasonDefaultValue()
Default value for lastModifiedReason. Returns ""


getLastModifiedReasonInvalidValue

public static java.lang.String getLastModifiedReasonInvalidValue()
Invalid value for lastModifiedReason. Returns null


getLastModifiedReasonPrintValue

public java.lang.String getLastModifiedReasonPrintValue()
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.


getLastModifiedReasonFieldPrintValue

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


getLastModifiedReasonRange

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


getLastModifiedReasonValidityCheck

public java.lang.String getLastModifiedReasonValidityCheck()
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.


getLastModifiedReasonMetatype

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


getRevisionNumber

public long getRevisionNumber()
Accessor for revisionNumber

Specified by:
getRevisionNumber in interface SandPersistMessage

setRevisionNumber

public void setRevisionNumber(long revisionNumber)
Mutator for revisionNumber

Specified by:
setRevisionNumber in interface SandPersistMessage

getRevisionNumberFlag

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


getRevisionNumberDefaultValue

public static long getRevisionNumberDefaultValue()
Default value for revisionNumber. Returns 0


getRevisionNumberInvalidValue

public static long getRevisionNumberInvalidValue()
Invalid value for revisionNumber. Returns Long.MIN_VALUE


getRevisionNumberPrintValue

public java.lang.String getRevisionNumberPrintValue()
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.


getRevisionNumberFieldPrintValue

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


getRevisionNumberRange

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


getRevisionNumberValidityCheck

public java.lang.String getRevisionNumberValidityCheck()
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.


getRevisionNumberMetatype

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


getRecordStatus

public int getRecordStatus()
Accessor for recordStatus

Specified by:
getRecordStatus in interface SandPersistMessage

setRecordStatus

public void setRecordStatus(int recordStatus)
Mutator for recordStatus


recordStatusValueToLabel

public java.lang.String recordStatusValueToLabel(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.


recordStatusLabelToValue

public int recordStatusLabelToValue(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.


getRecordStatusPrintVals

public static java.lang.String[] getRecordStatusPrintVals()
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.


getRecordStatusKeyVals

public static java.lang.String[] getRecordStatusKeyVals()
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.


getRecordStatusActualVals

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


recordStatusPrint2Key

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


recordStatusPrint2Actual

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


recordStatusActual2Print

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


getRecordStatusEnumSummary

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


getRecordStatusFlag

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


getRecordStatusDefaultValue

public static int getRecordStatusDefaultValue()
Default value for recordStatus. Returns 0


getRecordStatusInvalidValue

public static int getRecordStatusInvalidValue()
Invalid value for recordStatus. Returns Integer.MIN_VALUE


getRecordStatusPrintValue

public java.lang.String getRecordStatusPrintValue()
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.


getRecordStatusFieldPrintValue

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


getRecordStatusRange

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


getRecordStatusValidityCheck

public java.lang.String getRecordStatusValidityCheck()
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.


getRecordStatusMetatype

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


init

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


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 BaseUserQuery instance

Specified by:
getQueryMessage in interface SandMessage

getCollectionMessage

public SandCollectionMessage getCollectionMessage()
Returns a new BaseUserCollection instance

Specified by:
getCollectionMessage in interface SandMessage

getUpdateMessage

public SandUpdateMessage getUpdateMessage()
Returns a new BaseUserUpdate instance

Specified by:
getUpdateMessage in interface SandMessage

getStructMessage

public SandStructMessage getStructMessage()
Returns a new BaseUser 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.

Specified by:
isEquivalent in interface SandMessage

generalModifier

public void generalModifier(int action,
                            java.lang.String field,
                            int index,
                            java.lang.Object val)
                     throws SandException
General mutator method. Specified by SandInstanceMessage interface.

Specified by:
generalModifier in interface SandInstanceMessage
Throws:
SandException

generalDereference

public SandAttrVal generalDereference(java.lang.String fieldspec)
General reference field accessor method. Specified by SandInstanceMessage interface.

Specified by:
generalDereference in interface SandInstanceMessage

generalAccessor

public java.lang.Object generalAccessor(java.lang.String fieldspec)
General field accessor method. Specified by SandInstanceMessage interface.

Specified by:
generalAccessor in interface SandInstanceMessage

getDisplayFields

public java.lang.String[] getDisplayFields()
Return an array of the summary field names for this class.

Specified by:
getDisplayFields in interface SandInstanceMessage

getDisplayValues

public java.lang.String[] getDisplayValues()
Return the values for the summary fields. The standard String representation of each value is returned. For Dates, the default DateFormat output is used. For enums, the print value is used. These can be further transformed as needed.

Specified by:
getDisplayValues in interface SandInstanceMessage

getDisplayValues

public java.lang.String[] getDisplayValues(IDLookup lookup,
                                           AuthUser user,
                                           java.lang.String defaultVal)
Return the values for the summary fields, including dereference expressions.

Specified by:
getDisplayValues in interface Resolvable

getValueForFieldName

public java.lang.String getValueForFieldName(java.lang.String fieldname,
                                             IDLookup lookup,
                                             AuthUser user,
                                             java.lang.String defaultVal)
Returns the print representation of the value of the specified field, or the given default value if innaccessible. A field value may be innaccessible due to authorization, null reference, or other call failure.


toString

public java.lang.String toString()
Return a string representation of this object. Uses the declared summary fields minus any dereference expressions.


getAllFields

public java.lang.String[] getAllFields()
Return an a