SRJRCFrames
v0.1.296

de.schwarzrot.data.access
Interface Exporter

All Known Implementing Classes:
XMLExporter

public interface Exporter

interface to implement export functionality. An Exporter, as well as an Importer should be able to handle transformation of several entities with all relations and handling of different key sequences.

Author:
Reinhard Mantey

Method Summary
<E extends Entity>
void
performExport(E object, Writer out)
          exports a single entity with all relations
 void performExport(List<?> lst, String id, Writer out)
          exports a list of entities
 void performExport(Map<?,?> map, String id, Writer out)
          exports a map of entities
 void setEntityDescriptorAccessor(EntityDescriptorAccessor eda)
          injection method: sets the description accessor to access EntityDescriptions
 

Method Detail

performExport

<E extends Entity> void performExport(E object,
                                      Writer out)
                   throws Exception
exports a single entity with all relations

Type Parameters:
E - - class of entity
Parameters:
object - - instance to export
out - - channel to write export data to
Throws:
Exception - - depends on implementation

performExport

void performExport(List<?> lst,
                   String id,
                   Writer out)
                   throws Exception
exports a list of entities

Parameters:
lst - - the list of entities to export
id - - used to name the list
out - - channel to write export data to
Throws:
Exception - - depends on implementation

performExport

void performExport(Map<?,?> map,
                   String id,
                   Writer out)
                   throws Exception
exports a map of entities

Parameters:
map - - the map of entities to export
id - - used to name the map
out - - channel to write export data to
Throws:
Exception - - depends on implementation

setEntityDescriptorAccessor

void setEntityDescriptorAccessor(EntityDescriptorAccessor eda)
injection method: sets the description accessor to access EntityDescriptions

Parameters:
eda - - the accessor to use

SRJRCFrames
v0.1.296

hosted at
Find SRJRCFrames at SourceForge.net. Fast, secure and free:
           Open Source Software download
Submit a bug or request a feature

SRJRCFrames is published according to the GNU General Public License
Copyright 2005-2012 Reinhard Mantey - some rights reserved.