org.opengts.extra.tables
Class UnassignedDevices

java.lang.Object
  extended by org.opengts.dbtools.DBRecord<UnassignedDevices>
      extended by org.opengts.extra.tables.UnassignedDevices

public class UnassignedDevices
extends DBRecord<UnassignedDevices>


Nested Class Summary
static class UnassignedDevices.Key
           
 
Nested classes/interfaces inherited from class org.opengts.dbtools.DBRecord
DBRecord.DBChangeListener
 
Field Summary
static java.lang.String _TABLE_NAME
           
static java.lang.String ACCOUNT_DEVICE_SEP
           
static java.lang.String FLD_data
           
static java.lang.String FLD_ipAddress
           
static java.lang.String FLD_isDuplex
           
static java.lang.String FLD_latitude
           
static java.lang.String FLD_longitude
           
static java.lang.String FLD_mobileID
           
static java.lang.String FLD_serverID
           
static java.lang.String FLD_timestamp
           
static long MAX_AGE_SEC
           
static int MobileIDColumnLength
           
 
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
UnassignedDevices()
           
UnassignedDevices(UnassignedDevices.Key key)
           
 
Method Summary
static void _iterate(DBRecordHandler<UnassignedDevices> rcdHandler, boolean orderByTimestamp)
           
static void add(java.lang.String serverID, java.lang.String mobileID)
           
static void add(java.lang.String serverID, java.lang.String mobileID, double latitude, double longitude)
           
static void add(java.lang.String serverID, java.lang.String mobileID, long timestamp, java.lang.String ipAddress, boolean isDuplex, double latitude, double longitude, java.lang.String data)
           
static void add(java.lang.String serverID, java.lang.String mobileID, java.lang.String ipAddress, boolean isDuplex, double latitude, double longitude)
           
static void add(java.lang.String serverID, java.lang.String mobileID, java.lang.String ipAddress, boolean isDuplex, double latitude, double longitude, java.lang.String data)
           
 java.lang.String getData()
           
static DBFactory<UnassignedDevices> getFactory()
           
 GeoPoint getGeoPoint()
           
 DTIPAddress getIpAddress()
           
 java.lang.String getIpAddressString()
           
 boolean getIsDuplex()
           
 double getLatitude()
           
 double getLongitude()
           
 java.lang.String getMobileID()
           
static java.lang.String GetMobileIDDevice(DCServerConfig dcsc, java.lang.String mobileID)
           
static void getRecordCallback(DBRecordHandler<UnassignedDevices> rcdHandler)
           
 java.lang.String getServerID()
           
static java.lang.String getTableDescription(java.util.Locale loc)
           
 long getTimestamp()
           
 boolean isDuplex()
           
static void main(java.lang.String[] args)
           
 void seServerID(java.lang.String v)
           
 void setCreationDefaultValues()
          Override to set default values
 void setData(java.lang.String v)
           
 void setIpAddress(DTIPAddress v)
           
 void setIpAddress(java.lang.String v)
           
 void setIsDuplex(boolean v)
           
 void setLatitude(double v)
           
 void setLongitude(double v)
           
 void setMobileID(java.lang.String 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.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, setRuntimeDefaultValues, 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
 

Field Detail

MAX_AGE_SEC

public static final long MAX_AGE_SEC

ACCOUNT_DEVICE_SEP

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

MobileIDColumnLength

public static int MobileIDColumnLength

_TABLE_NAME

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

FLD_serverID

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

FLD_mobileID

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

FLD_timestamp

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

FLD_ipAddress

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

FLD_isDuplex

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

FLD_latitude

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

FLD_longitude

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

FLD_data

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

UnassignedDevices

public UnassignedDevices()

UnassignedDevices

public UnassignedDevices(UnassignedDevices.Key key)
Method Detail

TABLE_NAME

public static java.lang.String TABLE_NAME()

getFactory

public static DBFactory<UnassignedDevices> getFactory()

getTableDescription

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

getServerID

public java.lang.String getServerID()

seServerID

public void seServerID(java.lang.String v)

getMobileID

public java.lang.String getMobileID()

setMobileID

public void setMobileID(java.lang.String v)

getTimestamp

public long getTimestamp()

setTimestamp

public void setTimestamp(long v)

getIpAddress

public DTIPAddress getIpAddress()

getIpAddressString

public java.lang.String getIpAddressString()

setIpAddress

public void setIpAddress(DTIPAddress v)

setIpAddress

public void setIpAddress(java.lang.String v)

getIsDuplex

public boolean getIsDuplex()

setIsDuplex

public void setIsDuplex(boolean v)

isDuplex

public boolean isDuplex()

getLatitude

public double getLatitude()

setLatitude

public void setLatitude(double v)

getLongitude

public double getLongitude()

setLongitude

public void setLongitude(double v)

getGeoPoint

public GeoPoint getGeoPoint()

getData

public java.lang.String getData()

setData

public void setData(java.lang.String v)

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<UnassignedDevices>
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<UnassignedDevices>

add

public static void add(java.lang.String serverID,
                       java.lang.String mobileID)

add

public static void add(java.lang.String serverID,
                       java.lang.String mobileID,
                       double latitude,
                       double longitude)

add

public static void add(java.lang.String serverID,
                       java.lang.String mobileID,
                       java.lang.String ipAddress,
                       boolean isDuplex,
                       double latitude,
                       double longitude)

add

public static void add(java.lang.String serverID,
                       java.lang.String mobileID,
                       java.lang.String ipAddress,
                       boolean isDuplex,
                       double latitude,
                       double longitude,
                       java.lang.String data)

add

public static void add(java.lang.String serverID,
                       java.lang.String mobileID,
                       long timestamp,
                       java.lang.String ipAddress,
                       boolean isDuplex,
                       double latitude,
                       double longitude,
                       java.lang.String data)

getRecordCallback

public static void getRecordCallback(DBRecordHandler<UnassignedDevices> rcdHandler)
                              throws DBException
Throws:
DBException

_iterate

public static void _iterate(DBRecordHandler<UnassignedDevices> rcdHandler,
                            boolean orderByTimestamp)
                     throws DBException
Throws:
DBException

GetMobileIDDevice

public static java.lang.String GetMobileIDDevice(DCServerConfig dcsc,
                                                 java.lang.String mobileID)

main

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