org.opengts.db.dmtp
Class EventTemplate

java.lang.Object
  extended by org.opengts.dbtools.DBRecord<RT>
      extended by org.opengts.db.AccountRecord<RT>
          extended by org.opengts.db.DeviceRecord<EventTemplate>
              extended by org.opengts.db.dmtp.EventTemplate

public class EventTemplate
extends DeviceRecord<EventTemplate>


Nested Class Summary
static class EventTemplate.FieldType
           
static class EventTemplate.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_customType
           
static java.lang.String FLD_repeatLast
           
static java.lang.String FLD_template
           
 
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
EventTemplate()
           
EventTemplate(EventTemplate.Key key)
           
 
Method Summary
 org.opendmtp.server.db.PayloadTemplate createPayloadTemplate()
           
 int getCustomType()
           
static DBFactory<EventTemplate> getFactory()
           
static EventTemplate.FieldType getFieldType(int code)
           
static java.lang.String getFieldTypeDescription(int code)
           
static org.opendmtp.server.db.PayloadTemplate GetPayloadTemplate(java.lang.String acctId, java.lang.String devId, int custType)
           
 boolean getRepeatLast()
           
static java.lang.String getTableDescription(java.util.Locale loc)
           
 DTTemplate getTemplate()
           
 void initFromPayloadTemplate(org.opendmtp.server.db.PayloadTemplate pt)
           
static void main(java.lang.String[] args)
           
 void setCustomType(int v)
           
static boolean SetPayloadTemplate(java.lang.String acctId, java.lang.String devId, org.opendmtp.server.db.PayloadTemplate pt)
           
 void setRepeatLast(boolean v)
           
 void setTemplate(DTTemplate v)
           
 void setTemplate(java.lang.String 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

_TABLE_NAME

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

FLD_customType

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

FLD_repeatLast

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

FLD_template

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

EventTemplate

public EventTemplate()

EventTemplate

public EventTemplate(EventTemplate.Key key)
Method Detail

getFieldType

public static EventTemplate.FieldType getFieldType(int code)

getFieldTypeDescription

public static java.lang.String getFieldTypeDescription(int code)

TABLE_NAME

public static java.lang.String TABLE_NAME()

getFactory

public static DBFactory<EventTemplate> getFactory()

getTableDescription

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

GetPayloadTemplate

public static org.opendmtp.server.db.PayloadTemplate GetPayloadTemplate(java.lang.String acctId,
                                                                        java.lang.String devId,
                                                                        int custType)

SetPayloadTemplate

public static boolean SetPayloadTemplate(java.lang.String acctId,
                                         java.lang.String devId,
                                         org.opendmtp.server.db.PayloadTemplate pt)

getCustomType

public int getCustomType()

setCustomType

public void setCustomType(int v)

getRepeatLast

public boolean getRepeatLast()

setRepeatLast

public void setRepeatLast(boolean v)

getTemplate

public DTTemplate getTemplate()

setTemplate

public void setTemplate(DTTemplate v)

setTemplate

public void setTemplate(java.lang.String v)

initFromPayloadTemplate

public void initFromPayloadTemplate(org.opendmtp.server.db.PayloadTemplate pt)

createPayloadTemplate

public org.opendmtp.server.db.PayloadTemplate createPayloadTemplate()

main

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