Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.service.history
Interface HistoryWriter

All Known Implementing Classes:
HistoryWriterImpl

public interface HistoryWriter

Author:
Alexander Pelov

Method Summary
 void addRecord(HistoryRecord record)
          Stores the passed record complying with the historyRecordStructure.
 void addRecord(String[] propertyValues)
          Stores the passed propertyValues complying with the historyRecordStructure.
 void addRecord(String[] propertyValues, Date timestamp)
          Stores the passed propertyValues complying with the historyRecordStructure.
 void updateRecord(String idProperty, String idValue, String property, String newValue)
          Updates a record by searching for record with idProperty which have idValue and updating/creating the property with newValue.
 

Method Detail

addRecord

void addRecord(HistoryRecord record)
               throws IOException
Stores the passed record complying with the historyRecordStructure.

Parameters:
record - The record to be added.
Throws:
IOException

addRecord

void addRecord(String[] propertyValues)
               throws IOException
Stores the passed propertyValues complying with the historyRecordStructure.

Parameters:
propertyValues - The values of the record.
Throws:
IOException

addRecord

void addRecord(String[] propertyValues,
               Date timestamp)
               throws IOException
Stores the passed propertyValues complying with the historyRecordStructure.

Parameters:
propertyValues - The values of the record.
timestamp - The timestamp of the record.
Throws:
IOException

updateRecord

void updateRecord(String idProperty,
                  String idValue,
                  String property,
                  String newValue)
                  throws IOException
Updates a record by searching for record with idProperty which have idValue and updating/creating the property with newValue.

Parameters:
idProperty - name of the id property
idValue - value of the id property
property - the property to change
newValue - the value of the changed property.
Throws:
IOException

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.