org.opengts.db
Class DeviceRecord<RT extends DBRecord>

java.lang.Object
  extended by org.opengts.dbtools.DBRecord<RT>
      extended by org.opengts.db.AccountRecord<RT>
          extended by org.opengts.db.DeviceRecord<RT>
Direct Known Subclasses:
Antx, Device, DeviceList, DeviceMessage, Diagnostic, EventData, EventTemplate, PendingCommands, PendingPacket, Property, SessionStats, StatusCode

public class DeviceRecord<RT extends DBRecord>
extends AccountRecord<RT>


Nested Class Summary
static class DeviceRecord.DeviceKey<RT extends DBRecord>
           
 
Nested classes/interfaces inherited from class org.opengts.db.AccountRecord
AccountRecord.AccountKey<RT extends DBRecord>
 
Nested classes/interfaces inherited from class org.opengts.dbtools.DBRecord
DBRecord.DBChangeListener
 
Field Summary
static java.lang.String FLD_deviceID
           
 
Fields inherited from class org.opengts.db.AccountRecord
FLD_accountID, FLD_displayName, FLD_isActive, FLD_notes
 
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
 
Constructor Summary
DeviceRecord()
           
DeviceRecord(DeviceRecord.DeviceKey<RT> key)
           
 
Method Summary
 Device getDevice()
           
 java.lang.String getDeviceDescription()
          Return the description for this DBRecord's Device
 java.lang.String getDeviceID()
           
 java.lang.String getDeviceVIN()
          Return the short Vehicle-ID description for this DBRecord's Device
 boolean hasDevice()
           
static DBField newField_deviceID(boolean priKey)
           
static DBField newField_deviceID(boolean priKey, java.lang.String xAttr)
           
static DBField newField_deviceID(boolean priKey, java.lang.String xAttr, I18N.Text title)
           
static DBField newField_deviceID(boolean priKey, java.lang.String xAttr, java.lang.String title)
           
 void setDevice(Device dev)
           
 void setDeviceID(java.lang.String v)
           
 
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, getDescription, 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, getTableDescription, 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, toString, 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
 

Field Detail

FLD_deviceID

public static final java.lang.String FLD_deviceID
See Also:
Constant Field Values
Constructor Detail

DeviceRecord

public DeviceRecord()

DeviceRecord

public DeviceRecord(DeviceRecord.DeviceKey<RT> key)
Method Detail

newField_deviceID

public static DBField newField_deviceID(boolean priKey)

newField_deviceID

public static DBField newField_deviceID(boolean priKey,
                                        java.lang.String xAttr)

newField_deviceID

public static DBField newField_deviceID(boolean priKey,
                                        java.lang.String xAttr,
                                        I18N.Text title)

newField_deviceID

public static DBField newField_deviceID(boolean priKey,
                                        java.lang.String xAttr,
                                        java.lang.String title)

getDeviceID

public final java.lang.String getDeviceID()

setDeviceID

public void setDeviceID(java.lang.String v)

hasDevice

public final boolean hasDevice()

getDevice

public final Device getDevice()

setDevice

public final void setDevice(Device dev)

getDeviceDescription

public final java.lang.String getDeviceDescription()
Return the description for this DBRecord's Device

Returns:
The Device description

getDeviceVIN

public final java.lang.String getDeviceVIN()
Return the short Vehicle-ID description for this DBRecord's Device

Returns:
The Device short Vehicle-ID description