org.opengts.db.tables
Class Transport

java.lang.Object
  extended by org.opengts.dbtools.DBRecord<RT>
      extended by org.opengts.db.AccountRecord<Transport>
          extended by org.opengts.db.tables.Transport
All Implemented Interfaces:
DataTransport

public class Transport
extends AccountRecord<Transport>
implements DataTransport

This class represents a single data transport for a tracking/telematic hardware device. In the case where a single hardware tracking/telematic device supports multiple data transports (such as GPRS and Satellite), a hardware device would have more than one 'Transport' instance.


Nested Class Summary
static class Transport.Encodings
           
static class Transport.Key
           
 
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 _TABLE_NAME
           
static int DEFAULT_DUPLEX_MAX_CONNECTIONS
           
static int DEFAULT_DUPLEX_MAX_CONNECTIONS_PER_MIN
           
static int DEFAULT_ENCODING
           
static int DEFAULT_MAX_ALLOWED_EVENTS
           
static int DEFAULT_TOTAL_MAX_CONNECTIONS
           
static int DEFAULT_TOTAL_MAX_CONNECTIONS_PER_MIN
           
static int DEFAULT_UNIT_LIMIT_INTERVAL_MIN
           
static java.lang.String DEFAULT_XPORT_NAME
           
static java.lang.String FLD_assocAccountID
           
static java.lang.String FLD_assocDeviceID
           
static java.lang.String FLD_codeVersion
           
static java.lang.String FLD_deviceCode
           
static java.lang.String FLD_deviceType
           
static java.lang.String FLD_duplexMaxConn
           
static java.lang.String FLD_duplexMaxConnPerMin
           
static java.lang.String FLD_duplexProfileMask
           
static java.lang.String FLD_expectAck
           
static java.lang.String FLD_featureSet
           
static java.lang.String FLD_ignitionIndex
           
static java.lang.String FLD_imeiNumber
           
static java.lang.String FLD_ipAddressCurrent
           
static java.lang.String FLD_ipAddressValid
           
static java.lang.String FLD_lastAckCommand
           
static java.lang.String FLD_lastAckTime
           
static java.lang.String FLD_lastDuplexConnectTime
           
static java.lang.String FLD_lastInputState
           
static java.lang.String FLD_lastOutputState
           
static java.lang.String FLD_lastPingTime
           
static java.lang.String FLD_lastTotalConnectTime
           
static java.lang.String FLD_listenPortCurrent
           
static java.lang.String FLD_maxAllowedEvents
           
static java.lang.String FLD_maxPingCount
           
static java.lang.String FLD_pendingPingCommand
           
static java.lang.String FLD_remotePortCurrent
           
static java.lang.String FLD_serialNumber
           
static java.lang.String FLD_simPhoneNumber
           
static java.lang.String FLD_smsEmail
           
static java.lang.String FLD_supportedEncodings
           
static java.lang.String FLD_supportsDMTP
           
static java.lang.String FLD_totalMaxConn
           
static java.lang.String FLD_totalMaxConnPerMin
           
static java.lang.String FLD_totalPingCount
           
static java.lang.String FLD_totalProfileMask
           
static java.lang.String FLD_transportID
           
static java.lang.String FLD_uniqueID
           
static java.lang.String FLD_unitLimitInterval
           
static int PROP_COMM_MAX_CONNECTIONS
           
static java.lang.String PROP_COMM_MAX_CONNECTIONS_STR
           
static int PROP_COMM_MAX_DUP_EVENTS
           
static java.lang.String PROP_COMM_MAX_DUP_EVENTS_STR
           
static int PROP_COMM_MAX_SIM_EVENTS
           
static java.lang.String PROP_COMM_MAX_SIM_EVENTS_STR
           
static int PROP_COMM_MAX_XMIT_RATE
           
static java.lang.String PROP_COMM_MAX_XMIT_RATE_STR
           
static int PROP_COMM_MIN_XMIT_DELAY
           
static java.lang.String PROP_COMM_MIN_XMIT_DELAY_STR
           
static int PROP_COMM_MIN_XMIT_RATE
           
static java.lang.String PROP_COMM_MIN_XMIT_RATE_STR
           
static int SUPPORTED_ENCODING_BASE64
           
static int SUPPORTED_ENCODING_BINARY
           
static int SUPPORTED_ENCODING_CSV
           
static int SUPPORTED_ENCODING_HEX
           
 
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
Transport()
           
Transport(Transport.Key key)
           
 
Method Summary
 void _setExpectAck(boolean v)
           
 void _setLastAckTime(long v)
           
 void _setLastDuplexConnectTime(long v)
           
 void _setLastPingTime(long v)
           
 void _setLastTotalConnectTime(long v)
           
 void _setMaxPingCount(int v)
           
 void _setTotalPingCount(int v)
           
static boolean allowCreateDefaultTransport()
           
static Transport createNewTransport(Account account, java.lang.String xportID, java.lang.String uniqueID)
           
static Transport createNewTransport(Device device)
           
static boolean exists(java.lang.String uniqID)
           
static boolean exists(java.lang.String[] prefix, java.lang.String mobileID)
           
static boolean exists(java.lang.String acctID, java.lang.String xportID)
           
protected  Account getAssocAccount()
           
 java.lang.String getAssocAccountID()
          Returns the AccountID associated with this Transport
This method should return non-blank only if not equal to 'getAccountID()' and Account level indirection is desired.
 Device getAssocDevice()
           
 java.lang.String getAssocDeviceID()
          Returns the DeviceID associated with this Transport
This method should return non-blank only if not equal to 'getTransportID()' and Device level indirection is desired.
 java.lang.String getCodeVersion()
           
 java.lang.String getDeviceCode()
           
 java.lang.String getDeviceType()
           
 int getDuplexMaxConn()
           
 int getDuplexMaxConnPerMin()
           
 DTProfileMask getDuplexProfileMask()
           
 boolean getExpectAck()
           
static DBFactory<Transport> getFactory()
           
 java.lang.String getFeatureSet()
           
 int getIgnitionIndex()
           
 int[] getIgnitionStatusCodes()
           
 java.lang.String getImeiNumber()
           
 DTIPAddress getIpAddressCurrent()
           
 DTIPAddrList getIpAddressValid()
           
 java.lang.String getLastAckCommand()
           
 long getLastAckTime()
           
 long getLastDuplexConnectTime()
           
 long getLastInputState()
           
 long getLastOutputState()
           
 long getLastPingTime()
           
 long getLastTotalConnectTime()
           
 int getListenPortCurrent()
           
 int getMaxAllowedEvents()
           
 int getMaxPingCount()
           
 java.lang.String getPendingPingCommand()
           
 int getRemotePortCurrent()
           
 java.lang.String getSerialNumber()
           
 java.lang.String getSimPhoneNumber()
           
 java.lang.String getSmsEmail()
           
static java.lang.String getSuggestedDMTPConnectionAttribute(int prop, DataTransport dt)
           
 int getSupportedEncodings()
           
 boolean getSupportsDMTP()
           
static java.lang.String getTableDescription(java.util.Locale loc)
           
 java.lang.String getTargetAccountID()
          Gets the target Account ID
 java.lang.String getTargetDeviceID()
          Gets the target Device ID
 int getTotalMaxConn()
           
 int getTotalMaxConnPerMin()
           
 int getTotalPingCount()
           
 DTProfileMask getTotalProfileMask()
           
static Transport getTransport(Account account, java.lang.String xportID)
           
static Transport getTransport(Account account, java.lang.String xportID, boolean create)
           
static Transport getTransportByUniqueID(java.lang.String uniqId)
           
 java.lang.String getTransportID()
           
static java.lang.String[] getTransports(DBSelect<Transport> dsel)
           
static java.lang.String[] getTransportsForAccount(java.lang.String acctId)
           
 java.lang.String getUniqueID()
           
 int getUnitLimitInterval()
           
 boolean isAssocTargetDevice(Device device)
          Returns true if the specified Device is the target of this Transport.
 boolean isAssocTargetDevice(java.lang.String accountID, java.lang.String deviceID)
          Returns true if the specified Device is the target of this Transport.
 boolean isExpectingCommandAck()
           
static boolean isTransportQueryEnabled()
           
 boolean isValidIPAddress(java.lang.String ipAddr)
           
static Device loadDeviceByTransportID(Account account, java.lang.String xportID)
          This method is used by Device Communication Servers to load a Device record based on the Account and Transport/Device IDs.
static Device loadDeviceByTransportID(java.lang.String accountID, java.lang.String xportID)
          This method is used by Device Communication Servers to load a Device record based on the Account and Transport/Device IDs.
static Device loadDeviceByUniqueID(byte[] uniqID)
          This method is used by Device Communication Servers to load a Device record based on a Unique-ID.
static Device loadDeviceByUniqueID(java.lang.String uniqId)
          This method is used by Device Communication Servers to load a Device record based on a Unique-ID.
static Device loadDeviceUniqueID(java.lang.String[] prefix, java.lang.String modemID)
          This method is used by Device Communication Servers to load a Device record based on a Unique-ID.
static void main(java.lang.String[] args)
           
 void setAssocAccountID(java.lang.String v)
          Sets the associated account ID
 void setAssocDeviceID(java.lang.String v)
          Sets the Associated Device ID
 void setCodeVersion(java.lang.String v)
           
 void setCreationDefaultValues()
          Override to set default values
 void setDeviceCode(java.lang.String v)
           
 void setDeviceType(java.lang.String v)
           
 void setDuplexMaxConn(int max)
           
 void setDuplexMaxConnPerMin(int max)
           
 void setDuplexProfileMask(DTProfileMask v)
           
 void setExpectAck(boolean v)
           
 void setFeatureSet(java.lang.String v)
           
 void setIgnitionIndex(int v)
           
 void setImeiNumber(java.lang.String v)
           
 void setIpAddressCurrent(DTIPAddress v)
           
 void setIpAddressCurrent(java.lang.String v)
           
 void setIpAddressValid(DTIPAddrList v)
           
 void setIpAddressValid(java.lang.String v)
           
 void setLastAckCommand(java.lang.String v)
           
 void setLastAckTime(long v)
           
 void setLastDuplexConnectTime(long v)
           
 void setLastInputState(long v)
           
 void setLastOutputState(long v)
           
 void setLastPingTime(long v)
           
 void setLastTotalConnectTime(long v)
           
 void setListenPortCurrent(int v)
           
 void setMaxAllowedEvents(int max)
           
 void setMaxPingCount(int v)
           
 void setPendingPingCommand(java.lang.String v)
           
 void setRemotePortCurrent(int v)
           
 void setSerialNumber(java.lang.String v)
           
 void setSimPhoneNumber(java.lang.String v)
           
 void setSmsEmail(java.lang.String v)
           
 void setSupportedEncodings(int v)
           
 void setSupportsDMTP(boolean v)
           
 void setTotalMaxConn(int v)
           
 void setTotalMaxConnPerMin(int v)
           
 void setTotalPingCount(int v)
           
 void setTotalProfileMask(DTProfileMask v)
           
 void setUniqueID(java.lang.String v)
           
 void setUnitLimitInterval(int v)
           
 boolean supportsDMTP()
           
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.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, 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, 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
 
Methods inherited from interface org.opengts.db.DataTransport
getDescription, update, update
 

Field Detail

SUPPORTED_ENCODING_BINARY

public static final int SUPPORTED_ENCODING_BINARY
See Also:
Constant Field Values

SUPPORTED_ENCODING_BASE64

public static final int SUPPORTED_ENCODING_BASE64
See Also:
Constant Field Values

SUPPORTED_ENCODING_HEX

public static final int SUPPORTED_ENCODING_HEX
See Also:
Constant Field Values

SUPPORTED_ENCODING_CSV

public static final int SUPPORTED_ENCODING_CSV
See Also:
Constant Field Values

DEFAULT_XPORT_NAME

public static final java.lang.String DEFAULT_XPORT_NAME
See Also:
Constant Field Values

DEFAULT_ENCODING

public static final int DEFAULT_ENCODING
See Also:
Constant Field Values

DEFAULT_UNIT_LIMIT_INTERVAL_MIN

public static final int DEFAULT_UNIT_LIMIT_INTERVAL_MIN
See Also:
Constant Field Values

DEFAULT_MAX_ALLOWED_EVENTS

public static final int DEFAULT_MAX_ALLOWED_EVENTS
See Also:
Constant Field Values

DEFAULT_TOTAL_MAX_CONNECTIONS

public static final int DEFAULT_TOTAL_MAX_CONNECTIONS
See Also:
Constant Field Values

DEFAULT_TOTAL_MAX_CONNECTIONS_PER_MIN

public static final int DEFAULT_TOTAL_MAX_CONNECTIONS_PER_MIN
See Also:
Constant Field Values

DEFAULT_DUPLEX_MAX_CONNECTIONS

public static final int DEFAULT_DUPLEX_MAX_CONNECTIONS
See Also:
Constant Field Values

DEFAULT_DUPLEX_MAX_CONNECTIONS_PER_MIN

public static final int DEFAULT_DUPLEX_MAX_CONNECTIONS_PER_MIN
See Also:
Constant Field Values

PROP_COMM_MAX_CONNECTIONS

public static final int PROP_COMM_MAX_CONNECTIONS
See Also:
Constant Field Values

PROP_COMM_MAX_CONNECTIONS_STR

public static final java.lang.String PROP_COMM_MAX_CONNECTIONS_STR
See Also:
Constant Field Values

PROP_COMM_MIN_XMIT_DELAY

public static final int PROP_COMM_MIN_XMIT_DELAY
See Also:
Constant Field Values

PROP_COMM_MIN_XMIT_DELAY_STR

public static final java.lang.String PROP_COMM_MIN_XMIT_DELAY_STR
See Also:
Constant Field Values

PROP_COMM_MIN_XMIT_RATE

public static final int PROP_COMM_MIN_XMIT_RATE
See Also:
Constant Field Values

PROP_COMM_MIN_XMIT_RATE_STR

public static final java.lang.String PROP_COMM_MIN_XMIT_RATE_STR
See Also:
Constant Field Values

PROP_COMM_MAX_XMIT_RATE

public static final int PROP_COMM_MAX_XMIT_RATE
See Also:
Constant Field Values

PROP_COMM_MAX_XMIT_RATE_STR

public static final java.lang.String PROP_COMM_MAX_XMIT_RATE_STR
See Also:
Constant Field Values

PROP_COMM_MAX_DUP_EVENTS

public static final int PROP_COMM_MAX_DUP_EVENTS
See Also:
Constant Field Values

PROP_COMM_MAX_DUP_EVENTS_STR

public static final java.lang.String PROP_COMM_MAX_DUP_EVENTS_STR
See Also:
Constant Field Values

PROP_COMM_MAX_SIM_EVENTS

public static final int PROP_COMM_MAX_SIM_EVENTS
See Also:
Constant Field Values

PROP_COMM_MAX_SIM_EVENTS_STR

public static final java.lang.String PROP_COMM_MAX_SIM_EVENTS_STR
See Also:
Constant Field Values

_TABLE_NAME

public static final java.lang.String _TABLE_NAME
See Also:
Constant Field Values

FLD_transportID

public static final java.lang.String FLD_transportID
See Also:
Constant Field Values

FLD_uniqueID

public static final java.lang.String FLD_uniqueID
See Also:
Constant Field Values

FLD_assocAccountID

public static final java.lang.String FLD_assocAccountID
See Also:
Constant Field Values

FLD_assocDeviceID

public static final java.lang.String FLD_assocDeviceID
See Also:
Constant Field Values

FLD_deviceCode

public static final java.lang.String FLD_deviceCode
See Also:
Constant Field Values

FLD_deviceType

public static final java.lang.String FLD_deviceType
See Also:
Constant Field Values

FLD_serialNumber

public static final java.lang.String FLD_serialNumber
See Also:
Constant Field Values

FLD_simPhoneNumber

public static final java.lang.String FLD_simPhoneNumber
See Also:
Constant Field Values

FLD_smsEmail

public static final java.lang.String FLD_smsEmail
See Also:
Constant Field Values

FLD_imeiNumber

public static final java.lang.String FLD_imeiNumber
See Also:
Constant Field Values

FLD_lastInputState

public static final java.lang.String FLD_lastInputState
See Also:
Constant Field Values

FLD_lastOutputState

public static final java.lang.String FLD_lastOutputState
See Also:
Constant Field Values

FLD_ignitionIndex

public static final java.lang.String FLD_ignitionIndex
See Also:
Constant Field Values

FLD_codeVersion

public static final java.lang.String FLD_codeVersion
See Also:
Constant Field Values

FLD_featureSet

public static final java.lang.String FLD_featureSet
See Also:
Constant Field Values

FLD_ipAddressValid

public static final java.lang.String FLD_ipAddressValid
See Also:
Constant Field Values

FLD_pendingPingCommand

public static final java.lang.String FLD_pendingPingCommand
See Also:
Constant Field Values

FLD_lastPingTime

public static final java.lang.String FLD_lastPingTime
See Also:
Constant Field Values

FLD_totalPingCount

public static final java.lang.String FLD_totalPingCount
See Also:
Constant Field Values

FLD_maxPingCount

public static final java.lang.String FLD_maxPingCount
See Also:
Constant Field Values

FLD_expectAck

public static final java.lang.String FLD_expectAck
See Also:
Constant Field Values

FLD_lastAckCommand

public static final java.lang.String FLD_lastAckCommand
See Also:
Constant Field Values

FLD_lastAckTime

public static final java.lang.String FLD_lastAckTime
See Also:
Constant Field Values

FLD_supportsDMTP

public static final java.lang.String FLD_supportsDMTP
See Also:
Constant Field Values

FLD_supportedEncodings

public static final java.lang.String FLD_supportedEncodings
See Also:
Constant Field Values

FLD_unitLimitInterval

public static final java.lang.String FLD_unitLimitInterval
See Also:
Constant Field Values

FLD_maxAllowedEvents

public static final java.lang.String FLD_maxAllowedEvents
See Also:
Constant Field Values

FLD_totalProfileMask

public static final java.lang.String FLD_totalProfileMask
See Also:
Constant Field Values

FLD_totalMaxConn

public static final java.lang.String FLD_totalMaxConn
See Also:
Constant Field Values

FLD_totalMaxConnPerMin

public static final java.lang.String FLD_totalMaxConnPerMin
See Also:
Constant Field Values

FLD_duplexProfileMask

public static final java.lang.String FLD_duplexProfileMask
See Also:
Constant Field Values

FLD_duplexMaxConn

public static final java.lang.String FLD_duplexMaxConn
See Also:
Constant Field Values

FLD_duplexMaxConnPerMin

public static final java.lang.String FLD_duplexMaxConnPerMin
See Also:
Constant Field Values

FLD_ipAddressCurrent

public static final java.lang.String FLD_ipAddressCurrent
See Also:
Constant Field Values

FLD_remotePortCurrent

public static final java.lang.String FLD_remotePortCurrent
See Also:
Constant Field Values

FLD_listenPortCurrent

public static final java.lang.String FLD_listenPortCurrent
See Also:
Constant Field Values

FLD_lastTotalConnectTime

public static final java.lang.String FLD_lastTotalConnectTime
See Also:
Constant Field Values

FLD_lastDuplexConnectTime

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

Transport

public Transport()

Transport

public Transport(Transport.Key key)
Method Detail

isTransportQueryEnabled

public static boolean isTransportQueryEnabled()

allowCreateDefaultTransport

public static boolean allowCreateDefaultTransport()

TABLE_NAME

public static java.lang.String TABLE_NAME()

getFactory

public static DBFactory<Transport> getFactory()

getTableDescription

public static java.lang.String getTableDescription(java.util.Locale loc)

getTransportID

public java.lang.String getTransportID()
Specified by:
getTransportID in interface DataTransport

getUniqueID

public java.lang.String getUniqueID()
Specified by:
getUniqueID in interface DataTransport

setUniqueID

public void setUniqueID(java.lang.String v)

getTargetAccountID

public java.lang.String getTargetAccountID()
Gets the target Account ID

Returns:
v The target Account ID

getAssocAccountID

public java.lang.String getAssocAccountID()
Returns the AccountID associated with this Transport
This method should return non-blank only if not equal to 'getAccountID()' and Account level indirection is desired.

Specified by:
getAssocAccountID in interface DataTransport
Returns:
The AccountID associated with this Transport

setAssocAccountID

public void setAssocAccountID(java.lang.String v)
Sets the associated account ID

Parameters:
v - The associated Account ID

getTargetDeviceID

public java.lang.String getTargetDeviceID()
Gets the target Device ID

Returns:
v The target Device ID

getAssocDeviceID

public java.lang.String getAssocDeviceID()
Returns the DeviceID associated with this Transport
This method should return non-blank only if not equal to 'getTransportID()' and Device level indirection is desired.

Specified by:
getAssocDeviceID in interface DataTransport
Returns:
The DeviceID associated with this Transport

setAssocDeviceID

public void setAssocDeviceID(java.lang.String v)
Sets the Associated Device ID

Parameters:
v - The Associated Device ID

isAssocTargetDevice

public boolean isAssocTargetDevice(Device device)
Returns true if the specified Device is the target of this Transport.

Parameters:
device - The Device
Returns:
True if Device is the target of this Transport

isAssocTargetDevice

public boolean isAssocTargetDevice(java.lang.String accountID,
                                   java.lang.String deviceID)
Returns true if the specified Device is the target of this Transport.

Parameters:
accountID - The Account ID
deviceID - The Device ID
Returns:
True if Device is the target of this Transport

getDeviceCode

public java.lang.String getDeviceCode()
Specified by:
getDeviceCode in interface DataTransport

setDeviceCode

public void setDeviceCode(java.lang.String v)
Specified by:
setDeviceCode in interface DataTransport

getSerialNumber

public java.lang.String getSerialNumber()
Specified by:
getSerialNumber in interface DataTransport

setSerialNumber

public void setSerialNumber(java.lang.String v)
Specified by:
setSerialNumber in interface DataTransport

getSimPhoneNumber

public java.lang.String getSimPhoneNumber()
Specified by:
getSimPhoneNumber in interface DataTransport

setSimPhoneNumber

public void setSimPhoneNumber(java.lang.String v)
Specified by:
setSimPhoneNumber in interface DataTransport

getSmsEmail

public java.lang.String getSmsEmail()
Specified by:
getSmsEmail in interface DataTransport

setSmsEmail

public void setSmsEmail(java.lang.String v)
Specified by:
setSmsEmail in interface DataTransport

getImeiNumber

public java.lang.String getImeiNumber()
Specified by:
getImeiNumber in interface DataTransport

setImeiNumber

public void setImeiNumber(java.lang.String v)
Specified by:
setImeiNumber in interface DataTransport

getDeviceType

public java.lang.String getDeviceType()
Specified by:
getDeviceType in interface DataTransport

setDeviceType

public void setDeviceType(java.lang.String v)
Specified by:
setDeviceType in interface DataTransport

getLastInputState

public long getLastInputState()
Specified by:
getLastInputState in interface DataTransport

setLastInputState

public void setLastInputState(long v)
Specified by:
setLastInputState in interface DataTransport

getLastOutputState

public long getLastOutputState()
Specified by:
getLastOutputState in interface DataTransport

setLastOutputState

public void setLastOutputState(long v)
Specified by:
setLastOutputState in interface DataTransport

getIgnitionIndex

public int getIgnitionIndex()
Specified by:
getIgnitionIndex in interface DataTransport

setIgnitionIndex

public void setIgnitionIndex(int v)
Specified by:
setIgnitionIndex in interface DataTransport

getIgnitionStatusCodes

public int[] getIgnitionStatusCodes()
Specified by:
getIgnitionStatusCodes in interface DataTransport

getCodeVersion

public java.lang.String getCodeVersion()
Specified by:
getCodeVersion in interface DataTransport

setCodeVersion

public void setCodeVersion(java.lang.String v)
Specified by:
setCodeVersion in interface DataTransport

getFeatureSet

public java.lang.String getFeatureSet()
Specified by:
getFeatureSet in interface DataTransport

setFeatureSet

public void setFeatureSet(java.lang.String v)
Specified by:
setFeatureSet in interface DataTransport

getIpAddressValid

public DTIPAddrList getIpAddressValid()
Specified by:
getIpAddressValid in interface DataTransport

setIpAddressValid

public void setIpAddressValid(DTIPAddrList v)
Specified by:
setIpAddressValid in interface DataTransport

setIpAddressValid

public void setIpAddressValid(java.lang.String v)

isValidIPAddress

public boolean isValidIPAddress(java.lang.String ipAddr)
Specified by:
isValidIPAddress in interface DataTransport

getIpAddressCurrent

public DTIPAddress getIpAddressCurrent()
Specified by:
getIpAddressCurrent in interface DataTransport

setIpAddressCurrent

public void setIpAddressCurrent(DTIPAddress v)

setIpAddressCurrent

public void setIpAddressCurrent(java.lang.String v)
Specified by:
setIpAddressCurrent in interface DataTransport

getRemotePortCurrent

public int getRemotePortCurrent()
Specified by:
getRemotePortCurrent in interface DataTransport

setRemotePortCurrent

public void setRemotePortCurrent(int v)
Specified by:
setRemotePortCurrent in interface DataTransport

getListenPortCurrent

public int getListenPortCurrent()
Specified by:
getListenPortCurrent in interface DataTransport

setListenPortCurrent

public void setListenPortCurrent(int v)
Specified by:
setListenPortCurrent in interface DataTransport

getPendingPingCommand

public java.lang.String getPendingPingCommand()

setPendingPingCommand

public void setPendingPingCommand(java.lang.String v)

getLastPingTime

public long getLastPingTime()
Specified by:
getLastPingTime in interface DataTransport

_setLastPingTime

public void _setLastPingTime(long v)

setLastPingTime

public void setLastPingTime(long v)

getTotalPingCount

public int getTotalPingCount()
Specified by:
getTotalPingCount in interface DataTransport

_setTotalPingCount

public void _setTotalPingCount(int v)

setTotalPingCount

public void setTotalPingCount(int v)

getMaxPingCount

public int getMaxPingCount()
Specified by:
getMaxPingCount in interface DataTransport

_setMaxPingCount

public void _setMaxPingCount(int v)

setMaxPingCount

public void setMaxPingCount(int v)

getExpectAck

public boolean getExpectAck()

_setExpectAck

public void _setExpectAck(boolean v)

setExpectAck

public void setExpectAck(boolean v)

getLastAckCommand

public java.lang.String getLastAckCommand()

setLastAckCommand

public void setLastAckCommand(java.lang.String v)

isExpectingCommandAck

public boolean isExpectingCommandAck()

getLastAckTime

public long getLastAckTime()

_setLastAckTime

public void _setLastAckTime(long v)

setLastAckTime

public void setLastAckTime(long v)

getSupportsDMTP

public boolean getSupportsDMTP()
Specified by:
getSupportsDMTP in interface DataTransport

setSupportsDMTP

public void setSupportsDMTP(boolean v)
Specified by:
setSupportsDMTP in interface DataTransport

supportsDMTP

public boolean supportsDMTP()

getSupportedEncodings

public int getSupportedEncodings()
Specified by:
getSupportedEncodings in interface DataTransport

setSupportedEncodings

public void setSupportedEncodings(int v)
Specified by:
setSupportedEncodings in interface DataTransport

getUnitLimitInterval

public int getUnitLimitInterval()
Specified by:
getUnitLimitInterval in interface DataTransport

setUnitLimitInterval

public void setUnitLimitInterval(int v)

getMaxAllowedEvents

public int getMaxAllowedEvents()
Specified by:
getMaxAllowedEvents in interface DataTransport

setMaxAllowedEvents

public void setMaxAllowedEvents(int max)

getTotalProfileMask

public DTProfileMask getTotalProfileMask()
Specified by:
getTotalProfileMask in interface DataTransport

setTotalProfileMask

public void setTotalProfileMask(DTProfileMask v)
Specified by:
setTotalProfileMask in interface DataTransport

getTotalMaxConn

public int getTotalMaxConn()
Specified by:
getTotalMaxConn in interface DataTransport

setTotalMaxConn

public void setTotalMaxConn(int v)

getTotalMaxConnPerMin

public int getTotalMaxConnPerMin()
Specified by:
getTotalMaxConnPerMin in interface DataTransport

setTotalMaxConnPerMin

public void setTotalMaxConnPerMin(int v)

getDuplexProfileMask

public DTProfileMask getDuplexProfileMask()
Specified by:
getDuplexProfileMask in interface DataTransport

setDuplexProfileMask

public void setDuplexProfileMask(DTProfileMask v)
Specified by:
setDuplexProfileMask in interface DataTransport

getDuplexMaxConn

public int getDuplexMaxConn()
Specified by:
getDuplexMaxConn in interface DataTransport

setDuplexMaxConn

public void setDuplexMaxConn(int max)

getDuplexMaxConnPerMin

public int getDuplexMaxConnPerMin()
Specified by:
getDuplexMaxConnPerMin in interface DataTransport

setDuplexMaxConnPerMin

public void setDuplexMaxConnPerMin(int max)

getLastTotalConnectTime

public long getLastTotalConnectTime()
Specified by:
getLastTotalConnectTime in interface DataTransport

_setLastTotalConnectTime

public void _setLastTotalConnectTime(long v)

setLastTotalConnectTime

public void setLastTotalConnectTime(long v)
Specified by:
setLastTotalConnectTime in interface DataTransport

getLastDuplexConnectTime

public long getLastDuplexConnectTime()
Specified by:
getLastDuplexConnectTime in interface DataTransport

_setLastDuplexConnectTime

public void _setLastDuplexConnectTime(long v)

setLastDuplexConnectTime

public void setLastDuplexConnectTime(long v)
Specified by:
setLastDuplexConnectTime in interface DataTransport

setCreationDefaultValues

public void setCreationDefaultValues()
Description copied from class: DBRecord
Override to set default values

Overrides:
setCreationDefaultValues in class DBRecord<Transport>

getAssocAccount

protected Account getAssocAccount()

getAssocDevice

public Device getAssocDevice()

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<Transport>
Returns:
A String representation of the DBRecordKey for this DBRecord

exists

public static boolean exists(java.lang.String acctID,
                             java.lang.String xportID)
                      throws DBException
Throws:
DBException

exists

public static boolean exists(java.lang.String uniqID)
                      throws DBException
Throws:
DBException

exists

public static boolean exists(java.lang.String[] prefix,
                             java.lang.String mobileID)
                      throws DBException
Throws:
DBException

getTransportByUniqueID

public static Transport getTransportByUniqueID(java.lang.String uniqId)
                                        throws DBException
Throws:
DBException

getTransport

public static Transport getTransport(Account account,
                                     java.lang.String xportID)
                              throws DBException
Throws:
DBException

getTransport

public static Transport getTransport(Account account,
                                     java.lang.String xportID,
                                     boolean create)
                              throws DBException
Throws:
DBException

createNewTransport

public static Transport createNewTransport(Account account,
                                           java.lang.String xportID,
                                           java.lang.String uniqueID)
                                    throws DBException
Throws:
DBException

createNewTransport

public static Transport createNewTransport(Device device)
                                    throws DBException
Throws:
DBException

getTransportsForAccount

public static java.lang.String[] getTransportsForAccount(java.lang.String acctId)
                                                  throws DBException
Throws:
DBException

getTransports

public static java.lang.String[] getTransports(DBSelect<Transport> dsel)
                                        throws DBException
Throws:
DBException

loadDeviceUniqueID

public static Device loadDeviceUniqueID(java.lang.String[] prefix,
                                        java.lang.String modemID)
This method is used by Device Communication Servers to load a Device record based on a Unique-ID. Returns null if the Device is found, but the Account or Device are inactive.

Parameters:
prefix - An array of Unique-ID prefixes.
modemID - The Unique-ID of the device (ie. IMEI, ESN, Serial#, etc)
Returns:
The loaded Device instance, or null if the Device was not found
Throws:
DBException - if a database error occurs

loadDeviceByUniqueID

public static Device loadDeviceByUniqueID(java.lang.String uniqId)
                                   throws DBException
This method is used by Device Communication Servers to load a Device record based on a Unique-ID. The caller must confirm that the Device and Account are active.

Parameters:
uniqId - The Unique-ID of the device (ie. IMEI, ESN, Serial#, etc)
Returns:
The loaded Device instance, or null if the Device was not found
Throws:
DBException - if a database error occurs

loadDeviceByUniqueID

public static Device loadDeviceByUniqueID(byte[] uniqID)
                                   throws DBException
This method is used by Device Communication Servers to load a Device record based on a Unique-ID.

Parameters:
uniqID - The Unique-ID of the device (ie. IMEI, ESN, Serial#, etc)
Returns:
The loaded Device instance, or null if the Device was not found
Throws:
DBException - if a database error occurs

loadDeviceByTransportID

public static Device loadDeviceByTransportID(java.lang.String accountID,
                                             java.lang.String xportID)
                                      throws DBException
This method is used by Device Communication Servers to load a Device record based on the Account and Transport/Device IDs.

Parameters:
accountID - The Account ID of the owning account.
xportID - The Transport-ID (or Device-ID in some cases).
Returns:
The loaded Device instance, or null if the Device was not found
Throws:
DBException - if a database error occurs

loadDeviceByTransportID

public static Device loadDeviceByTransportID(Account account,
                                             java.lang.String xportID)
                                      throws DBException
This method is used by Device Communication Servers to load a Device record based on the Account and Transport/Device IDs.

Parameters:
account - The Account instance representing the owning account.
xportID - The Transport-ID (or Device-ID in some cases).
Returns:
The loaded Device instance, or null if the Device was not found
Throws:
DBException - if a database error occurs

getSuggestedDMTPConnectionAttribute

public static java.lang.String getSuggestedDMTPConnectionAttribute(int prop,
                                                                   DataTransport dt)

main

public static void main(java.lang.String[] args)