Interstage Shunsaku Data Manager Application Development Guide - Microsoft(R) Windows(R) 2000/ Microsoft(R) Windows Server(TM) 2003 - - UNIX -
Contents Index PreviousNext

Appendix K XML Conversion Function APIs> K.4 XMLGenerator Class

K.4.2 createDocumentFountain

mark1Function

This method creates an instance of DocumentFountain.

mark1Syntax

public DocumentFountain createDocumentFountain(
   int        anOutputType,  /* (1) Output format                       */
   java.sql.ResultSet  aResultSet,    /* (2) ResultSet object           */
   GeneratorMap        aGeneratorMap  /* (3) Mapping rule object        */
) throws XMLGenException;

mark1Return Value

Returns the generated DocumentFountain instance.

mark1Parameters

(1) Output format

Specify the output format for the XML documents.

Setting

Meaning

TYPE_STRING

The output format is a string.

TYPE_STREAM

The output format is a stream.

TYPE_FILE

The output format is a file.

TYPE_DOM

The output format is DOM.

TYPE_SAX

The output format is SAX.

(2) ResultSet object

Specify the ResultSet object.

(3) Mapping rule object

Specify the mapping rule object.

mark1Exceptions

mark2XMLGenException

This is output if an error occurs when a DocumentFountain instance is generated.
Refer to K.8 Error Codes Posted when XML Conversion Function APIs are Used for error code and error message details.


Contents Index PreviousNext

All Rights Reserved, Copyright(C) FUJITSU LIMITED 2006