org.opengts.db.dmtp
Class Diagnostic
java.lang.Object
org.opengts.dbtools.DBRecord<RT>
org.opengts.db.AccountRecord<RT>
org.opengts.db.DeviceRecord<Diagnostic>
org.opengts.db.dmtp.Diagnostic
public class Diagnostic
- extends DeviceRecord<Diagnostic>
Fields inherited from class org.opengts.dbtools.DBRecord |
errorDescription, excludedUpdateFields, FLD_creationMillis, FLD_creationTime, FLD_description, FLD_lastUpdateAccount, FLD_lastUpdateTime, FLD_lastUpdateUser, hasError, ID_SIZE, isValidating, lastSQLException, NOTIFY_GROUP, PSEUDO_FIELD_CHAR, tempProps |
Method Summary |
byte[] |
getBinaryValue()
|
int |
getCodeKey()
|
java.lang.String |
getCodeKeyHex()
|
java.lang.String |
getDescription()
Gets the description field value |
static Diagnostic[] |
getDiagnostics(java.lang.String acctId,
java.lang.String devId,
long timeStart,
long timeEnd)
|
static DBFactory<Diagnostic> |
getFactory()
|
boolean |
getIsError()
|
static java.lang.String |
getTableDescription(java.util.Locale loc)
|
long |
getTimestamp()
|
java.lang.String |
getValueAsString()
|
java.lang.String |
getValueAsString(java.util.TimeZone tz)
|
boolean |
isError()
|
static boolean |
saveDiagnostic(Device device,
int codeKey,
byte[] codeVal)
|
static boolean |
saveDiagnostic(java.lang.String acctID,
java.lang.String devID,
int codeKey,
byte[] codeVal)
|
static boolean |
saveError(Device device,
int codeKey,
byte[] codeVal)
|
static boolean |
saveError(java.lang.String acctID,
java.lang.String devID,
int codeKey,
byte[] codeVal)
|
void |
setCodeKey(int v)
|
void |
setIsError(boolean v)
|
void |
setTimestamp(long 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, GetSimpleLocalString, 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, adjustStringLength_1, adjustStringLength, appendFieldValues, clearChanged, clearError, clearExcludedUpdateFields, clearLastCaughtSQLException, equals, excludeFieldFromUpdate, excludeFieldFromUpdate, fireChangeNotification, geKeyValue, getCreationDateTime, getCreationMillis, getCreationTime, GetCurrentAccount, GetCurrentUser, getDefaultFieldValueKey, getErrorDescription, getFactory, getFactory, getField, getFieldBoolean, getFieldDateTime, getFieldDouble, getFieldFloat, getFieldInt, getFieldLong, getFieldName, getFieldString, getFieldValue, getFieldValue, getFieldValue, getFieldValue, getFieldValue, getFieldValue, getFieldValue, getFieldValue, getFieldValue, getKeyValue, getLastCaughtSQLException, getLastUpdateAccount, getLastUpdateTime, getLastUpdateTime, getLastUpdateUser, getNextGroup, getOptionalFieldValue, getOptionalFieldValue, getOptionalFieldValue, getOptionalFieldValue, getOptionalFieldValue, getOptionalFieldValue, getOptionalFieldValue, getOptionalFieldValue, getOptionalFieldValue, getRecordCount, getRecordCount, getRecordCount, getRecordCount, getRecordCount, getRecordKey, getRecords, getRecords, getTemporaryProperties, getValue, getVirtual, hasChanged, hasError, hasField, hasFieldValue, hasOptionalFieldValue, hasTemporaryProperties, insert, isFieldUnsigned, isLastCaughtSQLExceptionErrorCode, isOkToReload, isOkToSave, isValidating, isVirtual, lock, lockRead, lockWrite, newField_creationMillis, newField_creationTime, newField_creationTime, newField_description, newField_description, newField_lastUpdateAccount, newField_lastUpdateAccount, newField_lastUpdateTime, newField_lastUpdateUser, 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, setCreationDefaultValues, setCreationMillis, setCreationTime, SetCurrentAccount, SetCurrentUser, setDescription, setError, setError, setFieldValue, setFieldValue, setFieldValue, setFieldValue, setFieldValue, setFieldValue, setFieldValue, setIgnoreInvalidFields, setKeyValue, setLastCaughtSQLException, setLastUpdateAccount, 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 |
_TABLE_NAME
public static final java.lang.String _TABLE_NAME
- See Also:
- Constant Field Values
FLD_isError
public static final java.lang.String FLD_isError
- See Also:
- Constant Field Values
FLD_codeKey
public static final java.lang.String FLD_codeKey
- See Also:
- Constant Field Values
FLD_timestamp
public static final java.lang.String FLD_timestamp
- See Also:
- Constant Field Values
FLD_binaryValue
public static final java.lang.String FLD_binaryValue
- See Also:
- Constant Field Values
Diagnostic
public Diagnostic()
Diagnostic
public Diagnostic(Diagnostic.Key key)
TABLE_NAME
public static java.lang.String TABLE_NAME()
getFactory
public static DBFactory<Diagnostic> getFactory()
getTableDescription
public static java.lang.String getTableDescription(java.util.Locale loc)
getIsError
public boolean getIsError()
setIsError
public void setIsError(boolean v)
isError
public boolean isError()
getCodeKey
public int getCodeKey()
getCodeKeyHex
public java.lang.String getCodeKeyHex()
setCodeKey
public void setCodeKey(int v)
getTimestamp
public long getTimestamp()
setTimestamp
public void setTimestamp(long v)
getBinaryValue
public byte[] getBinaryValue()
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<Diagnostic>
- Returns:
- A String representation of the DBRecordKey for this DBRecord
getDescription
public java.lang.String getDescription()
- Description copied from class:
DBRecord
- Gets the description field value
- Overrides:
getDescription
in class DBRecord<Diagnostic>
- Returns:
- The record description
getValueAsString
public java.lang.String getValueAsString()
getValueAsString
public java.lang.String getValueAsString(java.util.TimeZone tz)
saveDiagnostic
public static boolean saveDiagnostic(Device device,
int codeKey,
byte[] codeVal)
throws DBException
- Throws:
DBException
saveDiagnostic
public static boolean saveDiagnostic(java.lang.String acctID,
java.lang.String devID,
int codeKey,
byte[] codeVal)
throws DBException
- Throws:
DBException
saveError
public static boolean saveError(Device device,
int codeKey,
byte[] codeVal)
throws DBException
- Throws:
DBException
saveError
public static boolean saveError(java.lang.String acctID,
java.lang.String devID,
int codeKey,
byte[] codeVal)
throws DBException
- Throws:
DBException
getDiagnostics
public static Diagnostic[] getDiagnostics(java.lang.String acctId,
java.lang.String devId,
long timeStart,
long timeEnd)
throws DBException
- Throws:
DBException