|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface XmlDatabinder
This is an interface defining export/import methods for entity objects to/from the Xml format. Entities should loaded/saved from another mean before using these methods.
Method Summary | |
---|---|
java.util.Collection |
loadFromXml(java.io.InputStream is)
Load a collection of EntityObject s from a Xml stream |
void |
writeToXml(java.io.Writer writer,
ObjectDao dao)
Write a collection of EntityObject s using their Xml form |
Method Detail |
---|
java.util.Collection loadFromXml(java.io.InputStream is) throws InfrastructureException, java.io.IOException
EntityObject
s from a Xml stream
is
- An input stream containing Xml exported form of entity objects
EntityObject
s
InfrastructureException
- if entity objects cannot be recreated from stream
java.io.IOException
- if stream cannot be correctly readvoid writeToXml(java.io.Writer writer, ObjectDao dao) throws InfrastructureException, java.io.IOException
EntityObject
s using their Xml form
writer
- The writer to use for outputing entity objectsdao
- The data access objects from whom are retrievied entities (using the findAll() method)
InfrastructureException
- if entity objects cannot be exported corectly
java.io.IOException
- if writer cannot be correctly written
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |