fr.gouv.culture.sdx.utils.save
Interface Saveable

All Known Subinterfaces:
Database, DocumentBase, DocumentBaseOAIHarvester, Repository, SDXThesaurus
All Known Implementing Classes:
AbstractDatabase, AbstractDatabaseBackedRepository, AbstractDataSourceComponentBackedRepository, AbstractDocumentBase, AbstractDocumentBaseOAIHarvester, AbstractJDBCDatabase, AbstractRepository, AbstractThesaurus, Application, LuceneDatabase, LuceneDataStore, LuceneThesaurus, UserDatabase

public interface Saveable

Author:
jlecren This interface lets an object to save and restore its data.

Field Summary
static java.lang.String ALL_SAVE_ATTRIB
          Attribute of the save configuration file
static java.lang.String PATH_ATTRIB
           
static java.lang.String SAVE_DIRECTORY_PARAM
          Constants to retrieve the save directory in the SaveParameters
 
Method Summary
 void backup(SaveParameters save_config)
          The backup method gives a way to an object to save its data
 void restore(SaveParameters save_config)
          The restore method gives a way to an object to restore its data from a backup.
 

Field Detail

SAVE_DIRECTORY_PARAM

public static final java.lang.String SAVE_DIRECTORY_PARAM
Constants to retrieve the save directory in the SaveParameters

See Also:
Constant Field Values

ALL_SAVE_ATTRIB

public static final java.lang.String ALL_SAVE_ATTRIB
Attribute of the save configuration file

See Also:
Constant Field Values

PATH_ATTRIB

public static final java.lang.String PATH_ATTRIB
See Also:
Constant Field Values
Method Detail

backup

public void backup(SaveParameters save_config)
            throws SDXException
The backup method gives a way to an object to save its data

Throws:
an - SDXException if there is an error
SDXException

restore

public void restore(SaveParameters save_config)
             throws SDXException
The restore method gives a way to an object to restore its data from a backup.

Parameters:
save_config -
Throws:
an - SDXException if there is an error
SDXException


Copyright © 2000-2003 Ministere de la culture et de la communication / AJLSM. All Rights Reserved.