Class BasicDataTransaction
java.lang.Object
com.inductiveautomation.ignition.gateway.history.sf.BasicDataTransaction
- All Implemented Interfaces:
DataTransaction,GroupableData,HistoricalData,Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBasicDataTransaction(String logger) BasicDataTransaction(String logger, HistoryFlavor flavor) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddData(HistoricalData value) copy()getData()intThis is a fairly ambiguous number, but basically indicates how many rows will ultimately be inserted in the database.The very broad "flavor" designator, used to get the data to the correct sink.A string identifing the "group" of the data.Returns the name of the logger that should be notified when something happens to this data.The signature is a static string that describes this data as uniquely as possible.groupData(GroupableData other) Merge another piece of similar data into this one.booleanisEmpty()voidsetData(List<HistoricalData> data) voidsetFlavor(HistoryFlavor flavor) voidsetLoggerName(String logger) toString()
-
Constructor Details
-
BasicDataTransaction
public BasicDataTransaction() -
BasicDataTransaction
-
BasicDataTransaction
-
-
Method Details
-
copy
-
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 interfaceHistoricalData
-
getData
- Specified by:
getDatain interfaceDataTransaction
-
setData
-
addData
-
getDataCount
public 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 interfaceHistoricalData
-
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 interfaceHistoricalData
-
setFlavor
-
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 interfaceHistoricalData
-
setLoggerName
-
isEmpty
public boolean isEmpty() -
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 interfaceGroupableData
-
groupData
Description copied from interface:GroupableDataMerge another piece of similar data into this one.- Specified by:
groupDatain interfaceGroupableData
-
toString
-