Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.history
Class HistoryWriterImpl

java.lang.Object
  extended by net.java.sip.communicator.impl.history.HistoryWriterImpl
All Implemented Interfaces:
HistoryWriter

public class HistoryWriterImpl
extends Object
implements HistoryWriter

Author:
Alexander Pelov

Field Summary
static int MAX_RECORDS_PER_FILE
          Maximum records per file.
 
Constructor Summary
protected HistoryWriterImpl(HistoryImpl historyImpl)
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_RECORDS_PER_FILE

public static final int MAX_RECORDS_PER_FILE
Maximum records per file.

See Also:
Constant Field Values
Constructor Detail

HistoryWriterImpl

protected HistoryWriterImpl(HistoryImpl historyImpl)
Method Detail

addRecord

public void addRecord(HistoryRecord record)
               throws IOException
Description copied from interface: HistoryWriter
Stores the passed record complying with the historyRecordStructure.

Specified by:
addRecord in interface HistoryWriter
Parameters:
record - The record to be added.
Throws:
IOException

addRecord

public void addRecord(String[] propertyValues)
               throws IOException
Description copied from interface: HistoryWriter
Stores the passed propertyValues complying with the historyRecordStructure.

Specified by:
addRecord in interface HistoryWriter
Parameters:
propertyValues - The values of the record.
Throws:
IOException

addRecord

public void addRecord(String[] propertyValues,
                      Date timestamp)
               throws IOException
Description copied from interface: HistoryWriter
Stores the passed propertyValues complying with the historyRecordStructure.

Specified by:
addRecord in interface HistoryWriter
Parameters:
propertyValues - The values of the record.
timestamp - The timestamp of the record.
Throws:
IOException

updateRecord

public 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.

Specified by:
updateRecord in interface HistoryWriter
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.