KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > SOFA > SOFAnet > Repository > StorageItem


1 /*
2  * StorageItem.java
3  *
4  * Created on 22. listopad 2003, 19:43
5  */

6
7 package SOFA.SOFAnet.Repository;
8
9 import java.lang.*;
10 import java.io.*;
11
12 /**
13  * Interface of storage item.
14  *
15  * @author Ladislav Sobr
16  */

17 public interface StorageItem
18 {
19   /** Loads item from storage */
20   void loadFromStorage();
21
22   /** Saves item to storage */
23   void saveToStorage();
24   
25   /** Returns true if the item is loaded in memory */
26   boolean isLoaded();
27   
28   /** Sets the "loaded flag" of the item */
29   void setLoaded(boolean loaded);
30   
31   /** Returns name of item */
32   String JavaDoc getName();
33   
34   /** Deletes item from storage */
35   void deleteFromStorage();
36   
37   /** Returns true if the item is to be deleted from storage */
38   boolean toBeDeleted();
39 }
40
Popular Tags