org.opengts.extra.tables
Class Antx

java.lang.Object
  extended by org.opengts.dbtools.DBRecord<RT>
      extended by org.opengts.db.AccountRecord<RT>
          extended by org.opengts.db.DeviceRecord<Antx>
              extended by org.opengts.extra.tables.Antx

public class Antx
extends DeviceRecord<Antx>


Nested Class Summary
static class Antx.Key
           
 
Nested classes/interfaces inherited from class org.opengts.db.DeviceRecord
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 _TABLE_NAME
           
static java.lang.String FLD_channelID
           
static java.lang.String FLD_data0
           
static java.lang.String FLD_data1
           
static java.lang.String FLD_data2
           
static java.lang.String FLD_data3
           
static java.lang.String FLD_data4
           
static java.lang.String FLD_fieldID
           
static java.lang.String FLD_timestamp
           
static java.lang.String FLD_type
           
static int TYPE_BIN
           
static int TYPE_MINMAX
           
static int TYPE_VALUE
           
 
Fields inherited from class org.opengts.db.DeviceRecord
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
Antx()
           
Antx(Antx.Key key)
           
 
Method Summary
static boolean addEvent(Device device, long timestamp, int field, int channel, double value)
           
static boolean addEvent(Device device, long timestamp, int field, int channel, double minValue, double maxValue)
           
static boolean addEvent(Device device, long timestamp, int field, int channel, double data0, double data1, double data2, double data3, double data4)
           
static boolean addEvent(Device device, long timestamp, int field, int channel, int type, double data0, double data1, double data2, double data3, double data4)
           
 int getChannelID()
           
 double getData0()
           
 double getData1()
           
 double getData2()
           
 double getData3()
           
 double getData4()
           
static DBFactory<Antx> getFactory()
           
 int getFieldID()
           
static void getRecordCallback(DBRecordHandler<Antx> rcdHandler, java.lang.String accountID, java.lang.String deviceID, long startTime, long endTime, long limit)
           
static java.lang.String getTableDescription(java.util.Locale loc)
           
 long getTimestamp()
           
 java.lang.String getTimestampString()
           
 int getType()
           
 void setChannelID(int v)
           
 void setData0(double v)
           
 void setData1(double v)
           
 void setData2(double v)
           
 void setData3(double v)
           
 void setData4(double v)
           
 void setFieldID(int v)
           
 void setTimestamp(long v)
           
 void setType(int v)
           
static java.lang.String TABLE_NAME()
           
 
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, 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

TYPE_VALUE

public static final int TYPE_VALUE
See Also:
Constant Field Values

TYPE_MINMAX

public static final int TYPE_MINMAX
See Also:
Constant Field Values

TYPE_BIN

public static final int TYPE_BIN
See Also:
Constant Field Values

_TABLE_NAME

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

FLD_timestamp

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

FLD_fieldID

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

FLD_channelID

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

FLD_type

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

FLD_data0

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

FLD_data1

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

FLD_data2

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

FLD_data3

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

FLD_data4

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

Antx

public Antx()

Antx

public Antx(Antx.Key key)
Method Detail

TABLE_NAME

public static java.lang.String TABLE_NAME()

getFactory

public static DBFactory<Antx> getFactory()

getTableDescription

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

getTimestamp

public long getTimestamp()

setTimestamp

public void setTimestamp(long v)

getTimestampString

public java.lang.String getTimestampString()

getFieldID

public int getFieldID()

setFieldID

public void setFieldID(int v)

getChannelID

public int getChannelID()

setChannelID

public void setChannelID(int v)

getType

public int getType()

setType

public void setType(int v)

getData0

public double getData0()

setData0

public void setData0(double v)

getData1

public double getData1()

setData1

public void setData1(double v)

getData2

public double getData2()

setData2

public void setData2(double v)

getData3

public double getData3()

setData3

public void setData3(double v)

getData4

public double getData4()

setData4

public void setData4(double v)

addEvent

public static boolean addEvent(Device device,
                               long timestamp,
                               int field,
                               int channel,
                               double value)

addEvent

public static boolean addEvent(Device device,
                               long timestamp,
                               int field,
                               int channel,
                               double minValue,
                               double maxValue)

addEvent

public static boolean addEvent(Device device,
                               long timestamp,
                               int field,
                               int channel,
                               double data0,
                               double data1,
                               double data2,
                               double data3,
                               double data4)

addEvent

public static boolean addEvent(Device device,
                               long timestamp,
                               int field,
                               int channel,
                               int type,
                               double data0,
                               double data1,
                               double data2,
                               double data3,
                               double data4)

getRecordCallback

public static void getRecordCallback(DBRecordHandler<Antx> rcdHandler,
                                     java.lang.String accountID,
                                     java.lang.String deviceID,
                                     long startTime,
                                     long endTime,
                                     long limit)
                              throws DBException
Throws:
DBException