|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The DataAccessObject class defines the standard interface for access to the persistence layer.
| Method Summary | |
void |
persist(Object object,
File file)
keep the object as a xml file in the disk |
void |
persist(Object object,
OutputStream outputStream)
keep the object as a xml file in the disk |
Object |
restore(File fileLocation)
return the instance object which store in the xml file the client need to cast the return to the correct type. |
Object |
restore(InputStream inputStream)
return the instance object which store in the xml file the client need to cast the return to the correct type. |
| Method Detail |
public void persist(Object object,
File file)
object - any objectfile - name and path to keep the object as file on diskpublic Object restore(File fileLocation)
fileLocation - xml file path
public void persist(Object object,
OutputStream outputStream)
object - any objectoutputStream - write to output streampublic Object restore(InputStream inputStream)
inputStream - read from input stream
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||