org.beigesoft.replicator.service.ISrvEntityWriter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of beige-replicator Show documentation
Show all versions of beige-replicator Show documentation
It replicate/persist any entity according XML settings and user's requirements with a file or network (HTTP).
Right now it has implemented XML format of stored/transferred data.
The newest version!
package org.beigesoft.replicator.service;
/*
* Beigesoft ™
*
* Licensed under the Apache License, Version 2.0
*
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*/
import java.util.Map;
import java.io.Writer;
/**
* Service to write a replicable/persistable entity.
*
* @author Yury Demidenko
*/
public interface ISrvEntityWriter {
/**
*
* Write entity into a stream (writer - file or pass it through network).
*
* @param pEntity object
* @param pWriter writer
* @param pAddParam additional params (e.g. exclude fields set)
* @throws Exception - an exception
**/
void write(Object pEntity, Writer pWriter,
Map pAddParam) throws Exception;
}