Import services

An import reader is a Java class that reads an input file and creates Interplay objects that will be stored in the InterPlay database. InterPlay provides a set of default import readers from which you can choose the most suited to your needs. You can however create additional readers to customize your import procedures.

By default, Interplay provides the following readers:

An import reader is a subclass of the com.axway.interplay.core.externaldata.importdata.readers.DocumentReader abstract class.

The Variable flat file reader and Variable flat file reader for Business Objects readers are wrapped into a single reader called Variable flat file reader. You must declare the java class DocumentReaderWrapper in the interplayPublicContext.xml file as bellow:

<bean id="variableFlatFileReader" class="com.axway.interplay.core.externaldata.importdata.readers.DocumentReaderWrapper" scope="prototype">

<property name="datasource" ref="jdbcDataSource" />

<property name="readerType" value="VariableFlatFile" />

<property name="normalReader" value="documentReaderFlatFile" />

<property name="virtualReader" value="flatFileReaderVirtualBO" />

</bean>

If the Is virtual Business Object reader flag from the Import reader section is set, the Variable flat file reader for Business Objects reader is used, otherwise the Variable flat file reader reader is used.

The Fixed flat file reader and Fixed flat file reader for virtual Business Objects readers are wrapped into a single reader called AccountingIntegrator reader. You must declare the java class DocumentReaderWrapper in the interplayPublicContext.xml file as bellow :

<bean id="accountingIntergratorReader" class="com.axway.interplay.core.externaldata.importdata.readers.DocumentReaderWrapper" scope="prototype">

<property name="datasource" ref="jdbcDataSource" />

<property name="readerType" value="FixedFlatFile" />

<property name="normalReader" value="accountingIntegratorFileReader" />

<property name="virtualReader" value="accIntReaderVirtualBO" />

</bean>

If the Is virtual Business Object reader flag from the Import reader section is set, the Fixed flat file reader for virtual Business Objects reader is used, otherwise the Fixed flat file reader is used.

Related Links