FileExporter< RowType, ExportType > class

Syntax

public class FileExporter< RowType, ExportType >

Usage

This abstract class forms a base class for file exporters. It implements the IFileExporter interface and adds further abstract methods that need to be implemented. Those methods enhance the IFileExporter interface by means to be used within the mobiliser AMS context, which means it adds things like a file type, a batchrung type, etc. This class offers a default implementation of the export() method utilizing AMS functionalities such as opening up a new batchrun for the current file. It further drives the usage of spring batch as means of querying the data to be exported, to process the data and to do the actual file export by serializing the processed export data into a XML file.

The most important methos to implement are doExport() and newFileStarted() to implement the actual file export (how the records are read, processed and written) and how the file exporter should react to a new file (e.g. writing an ams files entry or finishing the previous file).

2013 SAP AG or an SAP affiliate company. All rights reserved. No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice.