Elexis API documentation
Version 2.1.6 as of December 11 2011

ch.elexis.core.data
Interface IPersistenceProvider

All Known Implementing Classes:
KonsDetailView, SampleView

public interface IPersistenceProvider

Contracte to save and store data in form of Strings

Author:
gerry

Method Summary
 java.lang.String load(java.lang.Object param)
          Load the dependent data from the backing store
 void store(java.lang.String data, java.lang.Object param)
          Store data transparently to the IPersistenceProvider's backing store
 

Method Detail

store

void store(java.lang.String data,
           java.lang.Object param)
           throws PersistenceException
Store data transparently to the IPersistenceProvider's backing store

Parameters:
data - the data to store. The IPersistenceProvider must be able to reconstruct the data from the String retrieved by load()
param - a implememntation dependent parameter. Can be null or any arbitrary object
Throws:
PersistenceException - if the data could not be stored correctly

load

java.lang.String load(java.lang.Object param)
                      throws PersistenceException
Load the dependent data from the backing store

Parameters:
param - an implementation depoendent parameter. Can be null or any arbitrary Object
Returns:
the data read. Must be exactly the same as written by store()
Throws:
PersistenceException - if the data coulkd not be read correctly

Elexis API documentation
Version 2.1.6 as of December 11 2011

Copyright 2005-2011 by Gerry Weirich, Elexis