public interface HistoryWriter
Modifier and Type | Interface and Description |
---|---|
static interface |
HistoryWriter.HistoryRecordUpdater
This interface is used to find a history record to update and to get the
new values for the record.
|
Modifier and Type | Method and Description |
---|---|
void |
addRecord(HistoryRecord record)
Stores the passed record complying with the historyRecordStructure.
|
void |
addRecord(java.lang.String[] propertyValues)
Stores the passed propertyValues complying with the
historyRecordStructure.
|
void |
addRecord(java.lang.String[] propertyValues,
java.util.Date timestamp)
Stores the passed propertyValues complying with the
historyRecordStructure.
|
void |
addRecord(java.lang.String[] propertyValues,
int maxNumberOfRecords)
Stores the passed propertyValues complying with the
historyRecordStructure.
|
void |
insertRecord(java.lang.String[] propertyValues,
java.util.Date timestamp,
java.lang.String timestampProperty)
Stores the passed propertyValues complying with the
historyRecordStructure.
|
void |
updateRecord(HistoryWriter.HistoryRecordUpdater updater)
Updates history record using given HistoryRecordUpdater instance
to find which is the record to be updated and to get the new values for
the fields
|
void |
updateRecord(java.lang.String idProperty,
java.lang.String idValue,
java.lang.String property,
java.lang.String newValue)
Updates a record by searching for record with idProperty which have idValue
and updating/creating the property with newValue.
|
void addRecord(HistoryRecord record) throws java.io.IOException
record
- The record to be added.java.io.IOException
void addRecord(java.lang.String[] propertyValues) throws java.io.IOException
propertyValues
- The values of the record.java.io.IOException
void addRecord(java.lang.String[] propertyValues, int maxNumberOfRecords) throws java.io.IOException
propertyValues
- The values of the record.maxNumberOfRecords
- the maximum number of records to keep or
value of -1 to ignore this param.java.io.IOException
void addRecord(java.lang.String[] propertyValues, java.util.Date timestamp) throws java.io.IOException
propertyValues
- The values of the record.timestamp
- The timestamp of the record.java.io.IOException
void insertRecord(java.lang.String[] propertyValues, java.util.Date timestamp, java.lang.String timestampProperty) throws java.io.IOException
propertyValues
- The values of the record.timestamp
- The timestamp of the record.java.io.IOException
void updateRecord(java.lang.String idProperty, java.lang.String idValue, java.lang.String property, java.lang.String newValue) throws java.io.IOException
idProperty
- name of the id propertyidValue
- value of the id propertyproperty
- the property to changenewValue
- the value of the changed property.java.io.IOException
void updateRecord(HistoryWriter.HistoryRecordUpdater updater) throws java.io.IOException
updater
- the HistoryRecordUpdater instance.java.io.IOException
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.