public class BasicDataTransaction extends java.lang.Object implements DataTransaction, GroupableData
| Constructor and Description |
|---|
BasicDataTransaction() |
BasicDataTransaction(java.lang.String logger) |
BasicDataTransaction(java.lang.String logger,
HistoryFlavor flavor) |
| Modifier and Type | Method and Description |
|---|---|
void |
addData(HistoricalData value) |
java.util.List<HistoricalData> |
getData() |
int |
getDataCount()
This is a fairly ambiguous number, but basically indicates how many rows will ultimately be inserted in the
database.
|
HistoryFlavor |
getFlavor()
The very broad "flavor" designator, used to get the data to the correct sink.
|
java.lang.String |
getGroupId()
A string identifing the "group" of the data.
|
java.lang.String |
getLoggerName()
Returns the name of the logger that should be notified when something happens to this data.
|
java.lang.String |
getSignature()
The signature is a static string that describes this data as uniquely as possible.
|
GroupableData |
groupData(GroupableData other)
Merge another piece of similar data into this one.
|
void |
setData(java.util.List<HistoricalData> data) |
void |
setFlavor(HistoryFlavor flavor) |
void |
setLoggerName(java.lang.String logger) |
public BasicDataTransaction()
public BasicDataTransaction(java.lang.String logger)
public BasicDataTransaction(java.lang.String logger,
HistoryFlavor flavor)
public java.lang.String getSignature()
HistoricalData
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 GroupableData interface).
getSignature in interface HistoricalDatapublic java.util.List<HistoricalData> getData()
getData in interface DataTransactionpublic void setData(java.util.List<HistoricalData> data)
public void addData(HistoricalData value)
public int getDataCount()
HistoricalDatagetDataCount in interface HistoricalDatapublic HistoryFlavor getFlavor()
HistoricalDatagetFlavor in interface HistoricalDatapublic void setFlavor(HistoryFlavor flavor)
public java.lang.String getLoggerName()
HistoricalDatagetLoggerName in interface HistoricalDatapublic void setLoggerName(java.lang.String logger)
public java.lang.String getGroupId()
GroupableDatagetGroupId in interface GroupableDatapublic GroupableData groupData(GroupableData other)
GroupableDatagroupData in interface GroupableData