org.opengts.db.tables
Class StatusCode
java.lang.Object
org.opengts.dbtools.DBRecord<RT>
org.opengts.db.AccountRecord<RT>
org.opengts.db.DeviceRecord<StatusCode>
org.opengts.db.tables.StatusCode
- All Implemented Interfaces:
- StatusCodeProvider
public class StatusCode
- extends DeviceRecord<StatusCode>
- implements StatusCodeProvider
| Fields inherited from class org.opengts.dbtools.DBRecord |
errorDescription, excludedUpdateFields, FLD_creationMillis, FLD_creationTime, FLD_description, FLD_lastUpdateTime, FLD_lastUpdateUser, hasError, ID_SIZE, isValidating, lastSQLException, NOTIFY_GROUP, PSEUDO_FIELD_CHAR |
|
Method Summary |
static StatusCode |
createNewStatusCode(Account account,
java.lang.String deviceID,
int code)
|
static boolean |
exists(java.lang.String accountID,
java.lang.String deviceID,
int code)
|
static StatusCode |
findStatusCode(java.lang.String accountID,
java.lang.String deviceID,
int statusCode)
|
java.lang.String |
getBackgroundColor()
|
static java.lang.String |
getBackgroundColor(Device device,
int statusCode,
BasicPrivateLabel bpl,
java.lang.String dftColor)
|
static java.lang.String |
getBackgroundColor(java.lang.String accountID,
int statusCode,
BasicPrivateLabel bpl,
java.lang.String dftColor)
|
static java.lang.String |
getDescription(Device device,
int statusCode,
BasicPrivateLabel bpl,
java.lang.String dftDesc)
|
java.lang.String |
getDescription(java.util.Locale locale)
|
static java.lang.String |
getDescription(java.lang.String accountID,
int statusCode,
BasicPrivateLabel bpl,
java.lang.String dftDesc)
|
static DBFactory<StatusCode> |
getFactory()
|
java.lang.String |
getForegroundColor()
|
static java.lang.String |
getForegroundColor(Device device,
int statusCode,
BasicPrivateLabel bpl,
java.lang.String dftColor)
|
static java.lang.String |
getForegroundColor(java.lang.String accountID,
int statusCode,
BasicPrivateLabel bpl,
java.lang.String dftColor)
|
java.lang.String |
getIconName()
|
static java.lang.String |
getIconName(Device device,
int statusCode,
BasicPrivateLabel bpl)
|
java.lang.String |
getIconSelector()
|
static java.lang.String |
getIconSelector(Device device,
int statusCode,
BasicPrivateLabel bpl)
|
int |
getStatusCode()
|
static StatusCode |
getStatusCode(Account account,
java.lang.String deviceID,
int code)
|
static StatusCode |
getStatusCode(Account account,
java.lang.String deviceID,
int code,
boolean createOK)
|
static StatusCode |
getStatusCode(java.lang.String accountID,
java.lang.String deviceID,
int code)
|
static StatusCodeProvider |
getStatusCodeProvider(Device device,
int statusCode,
BasicPrivateLabel bpl,
StatusCodeProvider dftSCP)
|
static StatusCodeProvider |
getStatusCodeProvider(java.lang.String accountID,
int statusCode,
BasicPrivateLabel bpl,
StatusCodeProvider dftSCP)
|
static int[] |
getStatusCodes(java.lang.String accountID,
java.lang.String deviceID)
|
java.lang.String |
getStatusName()
|
static java.lang.String |
getTableDescription(java.util.Locale loc)
|
static void |
main(java.lang.String[] argv)
|
void |
setBackgroundColor(ColorTools.RGB rgb)
|
void |
setBackgroundColor(java.lang.String v)
|
void |
setCreationDefaultValues()
Override to set default values |
void |
setForegroundColor(ColorTools.RGB rgb)
|
void |
setForegroundColor(java.lang.String v)
|
void |
setIconName(java.lang.String v)
|
void |
setIconSelector(java.lang.String v)
|
void |
setStatusCode(int v)
|
void |
setStatusName(java.lang.String v)
|
static java.lang.String |
TABLE_NAME()
|
java.lang.String |
toString()
Returns a String representation of the DBRecordKey for this DBRecord |
| Methods inherited from class org.opengts.db.DeviceRecord |
getDevice, getDeviceDescription, getDeviceID, getDeviceVIN, hasDevice, newField_deviceID, newField_deviceID, newField_deviceID, newField_deviceID, setDevice, setDeviceID |
| Methods inherited from class org.opengts.db.AccountRecord |
createSystemAdminAccount, getAccount, getAccountDescription, getAccountID, getDisplayName, getFilteredID, getFilteredID, getIsActive, getNotes, getSystemAdminAccount, getSystemAdminAccountID, hasAccount, hasSystemAdminAccountID, isAccountManager, isActive, isSystemAdmin, isSystemAdmin, isSystemAdminAccountID, isValidID, newField_accountID, newField_accountID, newField_displayName, newField_displayName, newField_isActive, newField_isActive, newField_notes, newField_notes, setAccount, setDisplayName, setIsActive, setNotes, setRuntimeDefaultValues |
| Methods inherited from class org.opengts.dbtools.DBRecord |
_getFactory, _reload, addChangedNotification, addExcludedUpdateFields, appendFieldValues, clearChanged, clearError, clearExcludedUpdateFields, clearLastCaughtSQLException, equals, excludeFieldFromUpdate, excludeFieldFromUpdate, fireChangeNotification, getCreationDateTime, getCreationMillis, getCreationTime, GetCurrentUser, getDefaultFieldValueKey, getDescription, getErrorDescription, getFactory, getFactory, getField, getFieldBoolean, getFieldDateTime, getFieldDouble, getFieldFloat, getFieldInt, getFieldLong, getFieldName, getFieldString, getFieldValue, getFieldValue, getFieldValue, getFieldValue, getFieldValue, getFieldValue, getFieldValue, getFieldValue, getFieldValue, getLastCaughtSQLException, getLastUpdateTime, getLastUpdateTime, getLastUpdateUser, getNextGroup, getOptionalFieldValue, getOptionalFieldValue, getOptionalFieldValue, getOptionalFieldValue, getOptionalFieldValue, getOptionalFieldValue, getOptionalFieldValue, getOptionalFieldValue, getOptionalFieldValue, getRecordCount, getRecordCount, getRecordCount, getRecordCount, getRecordCount, getRecordKey, getRecords, getRecords, getValue, getVirtual, hasChanged, hasError, hasField, hasFieldValue, insert, isLastCaughtSQLExceptionErrorCode, isOkToReload, isOkToSave, isValidating, isVirtual, lock, lockRead, lockWrite, newField_creationMillis, newField_creationTime, newField_creationTime, newField_description, newField_description, newField_lastUpdateTime, newField_lastUpdateUser, printXML, printXML, printXML, printXML, printXML, printXML, recordDidInsert, recordDidUpdate, recordWillInsert, recordWillUpdate, reload, reload, removeChangedNotification, save, select, select, select, setAllFieldValues, setAllFieldValues, setAllFieldValues, setAllFieldValues, setChanged, setChanged, setCreationMillis, setCreationTime, SetCurrentUser, setDescription, setError, setError, setFieldValue, setFieldValue, setFieldValue, setFieldValue, setFieldValue, setFieldValue, setFieldValue, setIgnoreInvalidFields, setLastCaughtSQLException, setLastUpdateTime, setLastUpdateUser, setOptionalFieldValue, setOptionalFieldValue, setOptionalFieldValue, setOptionalFieldValue, setOptionalFieldValue, setOptionalFieldValue, setOptionalFieldValue, setOptionalFieldValue, setValidating, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setVirtual, toXML, toXML, toXML, toXML, toXML, unlock, update, update, update |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ALL_DEVICES
public static final java.lang.String ALL_DEVICES
- See Also:
- Constant Field Values
_TABLE_NAME
public static final java.lang.String _TABLE_NAME
- See Also:
- Constant Field Values
FLD_statusCode
public static final java.lang.String FLD_statusCode
- See Also:
- Constant Field Values
FLD_statusName
public static final java.lang.String FLD_statusName
- See Also:
- Constant Field Values
FLD_foregroundColor
public static final java.lang.String FLD_foregroundColor
- See Also:
- Constant Field Values
FLD_backgroundColor
public static final java.lang.String FLD_backgroundColor
- See Also:
- Constant Field Values
FLD_iconSelector
public static final java.lang.String FLD_iconSelector
- See Also:
- Constant Field Values
FLD_iconName
public static final java.lang.String FLD_iconName
- See Also:
- Constant Field Values
StatusCode
public StatusCode()
StatusCode
public StatusCode(StatusCode.Key key)
TABLE_NAME
public static java.lang.String TABLE_NAME()
getFactory
public static DBFactory<StatusCode> getFactory()
getTableDescription
public static java.lang.String getTableDescription(java.util.Locale loc)
getStatusCode
public int getStatusCode()
- Specified by:
getStatusCode in interface StatusCodeProvider
setStatusCode
public void setStatusCode(int v)
getStatusName
public java.lang.String getStatusName()
setStatusName
public void setStatusName(java.lang.String v)
getForegroundColor
public java.lang.String getForegroundColor()
- Specified by:
getForegroundColor in interface StatusCodeProvider
setForegroundColor
public void setForegroundColor(java.lang.String v)
setForegroundColor
public void setForegroundColor(ColorTools.RGB rgb)
getBackgroundColor
public java.lang.String getBackgroundColor()
- Specified by:
getBackgroundColor in interface StatusCodeProvider
setBackgroundColor
public void setBackgroundColor(java.lang.String v)
setBackgroundColor
public void setBackgroundColor(ColorTools.RGB rgb)
getIconSelector
public java.lang.String getIconSelector()
- Specified by:
getIconSelector in interface StatusCodeProvider
setIconSelector
public void setIconSelector(java.lang.String v)
getIconName
public java.lang.String getIconName()
- Specified by:
getIconName in interface StatusCodeProvider
setIconName
public void setIconName(java.lang.String v)
getDescription
public java.lang.String getDescription(java.util.Locale locale)
- Specified by:
getDescription in interface StatusCodeProvider
toString
public java.lang.String toString()
- Description copied from class:
DBRecord
- Returns a String representation of the DBRecordKey for this DBRecord
- Overrides:
toString in class DBRecord<StatusCode>
- Returns:
- A String representation of the DBRecordKey for this DBRecord
setCreationDefaultValues
public void setCreationDefaultValues()
- Description copied from class:
DBRecord
- Override to set default values
- Overrides:
setCreationDefaultValues in class DBRecord<StatusCode>
findStatusCode
public static StatusCode findStatusCode(java.lang.String accountID,
java.lang.String deviceID,
int statusCode)
getStatusCodeProvider
public static StatusCodeProvider getStatusCodeProvider(Device device,
int statusCode,
BasicPrivateLabel bpl,
StatusCodeProvider dftSCP)
getStatusCodeProvider
public static StatusCodeProvider getStatusCodeProvider(java.lang.String accountID,
int statusCode,
BasicPrivateLabel bpl,
StatusCodeProvider dftSCP)
getDescription
public static java.lang.String getDescription(Device device,
int statusCode,
BasicPrivateLabel bpl,
java.lang.String dftDesc)
getDescription
public static java.lang.String getDescription(java.lang.String accountID,
int statusCode,
BasicPrivateLabel bpl,
java.lang.String dftDesc)
getForegroundColor
public static java.lang.String getForegroundColor(Device device,
int statusCode,
BasicPrivateLabel bpl,
java.lang.String dftColor)
getForegroundColor
public static java.lang.String getForegroundColor(java.lang.String accountID,
int statusCode,
BasicPrivateLabel bpl,
java.lang.String dftColor)
getBackgroundColor
public static java.lang.String getBackgroundColor(Device device,
int statusCode,
BasicPrivateLabel bpl,
java.lang.String dftColor)
getBackgroundColor
public static java.lang.String getBackgroundColor(java.lang.String accountID,
int statusCode,
BasicPrivateLabel bpl,
java.lang.String dftColor)
getIconSelector
public static java.lang.String getIconSelector(Device device,
int statusCode,
BasicPrivateLabel bpl)
getIconName
public static java.lang.String getIconName(Device device,
int statusCode,
BasicPrivateLabel bpl)
exists
public static boolean exists(java.lang.String accountID,
java.lang.String deviceID,
int code)
throws DBException
- Throws:
DBException
getStatusCode
public static StatusCode getStatusCode(java.lang.String accountID,
java.lang.String deviceID,
int code)
throws DBException
- Throws:
DBException
getStatusCode
public static StatusCode getStatusCode(Account account,
java.lang.String deviceID,
int code)
throws DBException
- Throws:
DBException
getStatusCode
public static StatusCode getStatusCode(Account account,
java.lang.String deviceID,
int code,
boolean createOK)
throws DBException
- Throws:
DBException
createNewStatusCode
public static StatusCode createNewStatusCode(Account account,
java.lang.String deviceID,
int code)
throws DBException
- Throws:
DBException
getStatusCodes
public static int[] getStatusCodes(java.lang.String accountID,
java.lang.String deviceID)
throws DBException
- Throws:
DBException
main
public static void main(java.lang.String[] argv)