|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- Class to store/load.public interface DAO<T>
Data Access Object.
Method Summary | |
---|---|
java.lang.String[] |
getFileNames(java.util.Map<java.lang.String,java.lang.String> initData)
Gets the list of file names from where to load an object from the specified Map. |
java.lang.String[] |
getFileNames(T obj)
Gets the list of file names where an object must be stored, from the object itself. |
T |
load(java.lang.String[] fileNames)
Loads an object from the speficied file list. |
void |
store(java.lang.String[] fileNames,
T obj)
Stores an object in the specified file list. |
Method Detail |
---|
T load(java.lang.String[] fileNames) throws java.lang.Exception
fileNames
- The names of the files where the object data is stored
java.lang.Exception
- in case of errorvoid store(java.lang.String[] fileNames, T obj) throws java.lang.Exception
fileNames
- The names of the files where the object data must be storedobj
- The object to store
java.lang.Exception
- In case of errorjava.lang.String[] getFileNames(java.util.Map<java.lang.String,java.lang.String> initData)
initData
- A map containing data that can be used to find out the file
names from where to load an object
java.lang.String[] getFileNames(T obj)
It can also be used to obtain the list of files to delete on object removal.
obj
- The object to store
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |