01: /*
02: * LICENSE INFORMATION
03: * Copyright 2005-2007 by FZI (http://www.fzi.de).
04: * Licensed under a BSD license (http://www.opensource.org/licenses/bsd-license.php)
05: * <OWNER> = Max Völkel
06: * <ORGANIZATION> = FZI Forschungszentrum Informatik Karlsruhe, Karlsruhe, Germany
07: * <YEAR> = 2007
08: *
09: * Project information at http://semweb4j.org/rdf2go
10: */
11: package org.ontoware.rdf2go.model.persistent;
12:
13: import java.io.IOException;
14:
15: import org.ontoware.rdf2go.exception.ModelRuntimeException;
16:
17: /**
18: * A persistent entity
19: *
20: * @author voelkel
21: *
22: */
23: public interface Persistent {
24:
25: /**
26: * persist all unsaved changes
27: *
28: * @throws ModelRuntimeException, e.g. IOException
29: */
30: public void save() throws ModelRuntimeException, IOException;
31:
32: /**
33: * load content from storage
34: *
35: * @throws ModelRuntimeException, e.g. FileNotFoundException,IOException
36: * @throws IOException
37: */
38: public void load() throws ModelRuntimeException, IOException;
39:
40: }
|