org.opengts.db.dmtp
Class PendingPacket
java.lang.Object
org.opengts.dbtools.DBRecord<RT>
org.opengts.db.AccountRecord<RT>
org.opengts.db.DeviceRecord<PendingPacket>
org.opengts.db.dmtp.PendingPacket
public class PendingPacket
- extends DeviceRecord<PendingPacket>
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 |
static org.opendmtp.server.base.Packet[] |
createGeozoneUploadPackets(java.lang.String acctId,
java.lang.String version)
|
static PendingPacket.SetPropertyPacket |
createSetPropertyPacket(int propCode,
java.lang.String propDataStr)
|
static void |
deletePendingPackets(java.lang.String acctId,
java.lang.String devId,
long queueTime)
|
static org.opendmtp.server.base.Packet[] |
extractPackets(PendingPacket[] pp)
|
boolean |
getAutoDelete()
|
static DBFactory<PendingPacket> |
getFactory()
|
byte[] |
getPacketBytes()
|
org.opendmtp.server.base.Packet[] |
getPackets()
|
static PendingPacket[] |
getPendingPackets(java.lang.String acctId,
java.lang.String devId)
|
static PendingPacket[] |
getPendingPackets(java.lang.String acctId,
java.lang.String devId,
long limit)
|
long |
getQueueTime()
|
int |
getSequence()
|
static java.lang.String |
getTableDescription(java.util.Locale loc)
|
static boolean |
insertGetGpsDiagnostic(Device device)
|
static boolean |
insertGetPropertyPacket(Device device,
int propCode,
byte[] propData,
int propDataLen)
|
static boolean |
insertPackets(Device dev,
org.opendmtp.server.base.Packet[] pkt)
|
static boolean |
insertPackets(java.lang.String acctId,
java.lang.String devId,
org.opendmtp.server.base.Packet[] pkt)
|
static boolean |
insertSetPropertyPacket(Device device,
int propCode,
byte[] propData,
int propDataLen)
|
static boolean |
insertSetPropertyPacket(Device device,
int propCode,
java.lang.String propDataStr)
|
static boolean |
insertSetPropertyPacket(Device device,
PendingPacket.SetPropertyPacket setPropPacket)
|
static boolean |
insertUploadFilePacket(Device device,
java.lang.String uplFileName,
long uplFileSize)
|
boolean |
isAutoDelete()
|
static void |
main(java.lang.String[] args)
|
void |
setAutoDelete(boolean v)
|
void |
setPacketBytes(byte[] v)
|
void |
setPacketBytes(byte[] v,
int vlen)
|
void |
setPackets(org.opendmtp.server.base.Packet[] pkt)
|
void |
setQueueTime(long v)
|
void |
setSequence(int 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, 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, 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_queueTime
public static final java.lang.String FLD_queueTime
- See Also:
- Constant Field Values
FLD_sequence
public static final java.lang.String FLD_sequence
- See Also:
- Constant Field Values
FLD_packetBytes
public static final java.lang.String FLD_packetBytes
- See Also:
- Constant Field Values
FLD_autoDelete
public static final java.lang.String FLD_autoDelete
- See Also:
- Constant Field Values
PendingPacket
public PendingPacket()
PendingPacket
public PendingPacket(PendingPacket.Key key)
TABLE_NAME
public static java.lang.String TABLE_NAME()
getFactory
public static DBFactory<PendingPacket> getFactory()
getTableDescription
public static java.lang.String getTableDescription(java.util.Locale loc)
getQueueTime
public long getQueueTime()
setQueueTime
public void setQueueTime(long v)
getSequence
public int getSequence()
setSequence
public void setSequence(int v)
getPacketBytes
public byte[] getPacketBytes()
setPacketBytes
public void setPacketBytes(byte[] v)
setPacketBytes
public void setPacketBytes(byte[] v,
int vlen)
getAutoDelete
public boolean getAutoDelete()
setAutoDelete
public void setAutoDelete(boolean v)
isAutoDelete
public boolean isAutoDelete()
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<PendingPacket>
- Returns:
- A String representation of the DBRecordKey for this DBRecord
getPackets
public org.opendmtp.server.base.Packet[] getPackets()
throws org.opendmtp.server.base.PacketParseException
- Throws:
org.opendmtp.server.base.PacketParseException
setPackets
public void setPackets(org.opendmtp.server.base.Packet[] pkt)
deletePendingPackets
public static void deletePendingPackets(java.lang.String acctId,
java.lang.String devId,
long queueTime)
throws DBException
- Throws:
DBException
getPendingPackets
public static PendingPacket[] getPendingPackets(java.lang.String acctId,
java.lang.String devId)
throws DBException
- Throws:
DBException
getPendingPackets
public static PendingPacket[] getPendingPackets(java.lang.String acctId,
java.lang.String devId,
long limit)
throws DBException
- Throws:
DBException
extractPackets
public static org.opendmtp.server.base.Packet[] extractPackets(PendingPacket[] pp)
throws org.opendmtp.server.base.PacketParseException
- Throws:
org.opendmtp.server.base.PacketParseException
insertPackets
public static boolean insertPackets(Device dev,
org.opendmtp.server.base.Packet[] pkt)
throws DBException
- Throws:
DBException
insertPackets
public static boolean insertPackets(java.lang.String acctId,
java.lang.String devId,
org.opendmtp.server.base.Packet[] pkt)
throws DBException
- Throws:
DBException
createSetPropertyPacket
public static PendingPacket.SetPropertyPacket createSetPropertyPacket(int propCode,
java.lang.String propDataStr)
insertSetPropertyPacket
public static boolean insertSetPropertyPacket(Device device,
PendingPacket.SetPropertyPacket setPropPacket)
throws DBException
- Throws:
DBException
insertSetPropertyPacket
public static boolean insertSetPropertyPacket(Device device,
int propCode,
java.lang.String propDataStr)
throws DBException
- Throws:
DBException
insertSetPropertyPacket
public static boolean insertSetPropertyPacket(Device device,
int propCode,
byte[] propData,
int propDataLen)
throws DBException
- Throws:
DBException
insertGetPropertyPacket
public static boolean insertGetPropertyPacket(Device device,
int propCode,
byte[] propData,
int propDataLen)
throws DBException
- Throws:
DBException
insertGetGpsDiagnostic
public static boolean insertGetGpsDiagnostic(Device device)
throws DBException
- Throws:
DBException
insertUploadFilePacket
public static boolean insertUploadFilePacket(Device device,
java.lang.String uplFileName,
long uplFileSize)
throws DBException
- Throws:
DBException
createGeozoneUploadPackets
public static org.opendmtp.server.base.Packet[] createGeozoneUploadPackets(java.lang.String acctId,
java.lang.String version)
main
public static void main(java.lang.String[] args)