Class BasicDataTransaction
- java.lang.Object
- 
- com.inductiveautomation.ignition.gateway.history.sf.BasicDataTransaction
 
- 
- All Implemented Interfaces:
- DataTransaction,- GroupableData,- HistoricalData,- java.io.Serializable
 
 public class BasicDataTransaction extends java.lang.Object implements DataTransaction, GroupableData - See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description BasicDataTransaction()BasicDataTransaction(java.lang.String logger)BasicDataTransaction(java.lang.String logger, HistoryFlavor flavor)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddData(HistoricalData value)java.util.List<HistoricalData>getData()intgetDataCount()This is a fairly ambiguous number, but basically indicates how many rows will ultimately be inserted in the database.HistoryFlavorgetFlavor()The very broad "flavor" designator, used to get the data to the correct sink.java.lang.StringgetGroupId()A string identifing the "group" of the data.java.lang.StringgetLoggerName()Returns the name of the logger that should be notified when something happens to this data.java.lang.StringgetSignature()The signature is a static string that describes this data as uniquely as possible.GroupableDatagroupData(GroupableData other)Merge another piece of similar data into this one.booleanisEmpty()voidsetData(java.util.List<HistoricalData> data)voidsetFlavor(HistoryFlavor flavor)voidsetLoggerName(java.lang.String logger)java.lang.StringtoString()
 
- 
- 
- 
Constructor Detail- 
BasicDataTransactionpublic BasicDataTransaction() 
 - 
BasicDataTransactionpublic BasicDataTransaction(java.lang.String logger) 
 - 
BasicDataTransactionpublic BasicDataTransaction(java.lang.String logger, HistoryFlavor flavor)
 
- 
 - 
Method Detail- 
getSignaturepublic java.lang.String getSignature() Description copied from interface:HistoricalDataThe signature is a static string that describes this data as uniquely as possible. This will be used to group data in the data cache (for example, when displaying quarantined data), as well as uniquely identifying cacheable schemas, etc.Basically, the golden rule is that if two pieces of data have the same signature, the came from the same place, and are going to the same place, and in theory could be grouped together (note: they won't be, that is done with the GroupableDatainterface).- Specified by:
- getSignaturein interface- HistoricalData
 
 - 
getDatapublic java.util.List<HistoricalData> getData() - Specified by:
- getDatain interface- DataTransaction
 
 - 
setDatapublic void setData(java.util.List<HistoricalData> data) 
 - 
addDatapublic void addData(HistoricalData value) 
 - 
getDataCountpublic int getDataCount() Description copied from interface:HistoricalDataThis is a fairly ambiguous number, but basically indicates how many rows will ultimately be inserted in the database. Used for judging transaction size.- Specified by:
- getDataCountin interface- HistoricalData
 
 - 
getFlavorpublic HistoryFlavor getFlavor() Description copied from interface:HistoricalDataThe very broad "flavor" designator, used to get the data to the correct sink. That is, different sinks support different types of data, and this is used to match them up.- Specified by:
- getFlavorin interface- HistoricalData
 
 - 
setFlavorpublic void setFlavor(HistoryFlavor flavor) 
 - 
getLoggerNamepublic java.lang.String getLoggerName() Description copied from interface:HistoricalDataReturns the name of the logger that should be notified when something happens to this data. If null or empty, notifications won't occur (errors, however, may still be logged to the general logger).- Specified by:
- getLoggerNamein interface- HistoricalData
 
 - 
setLoggerNamepublic void setLoggerName(java.lang.String logger) 
 - 
isEmptypublic boolean isEmpty() 
 - 
getGroupIdpublic java.lang.String getGroupId() Description copied from interface:GroupableDataA string identifing the "group" of the data. In other words, any piece of data from this group can be merged together.- Specified by:
- getGroupIdin interface- GroupableData
 
 - 
groupDatapublic GroupableData groupData(GroupableData other) Description copied from interface:GroupableDataMerge another piece of similar data into this one.- Specified by:
- groupDatain interface- GroupableData
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-