Class Hierarchy    Previous  Next  Index

Class COM.cloudscape.tools.FileExport

java.lang.Object
    |
    +----COM.cloudscape.tools.ImportExportImpl.ExportAbstract
            |
            +----COM.cloudscape.tools.FileExport

public class FileExport
extends COM.cloudscape.tools.ImportExportImpl.ExportAbstract
Copyright © 1998-2000, Informix Software, Inc. All rights reserved.

This class provides ways for exporting data from a table or a view into a file. There is another class in the same package which will import data from a file or an URL into a table.

This can be "run" within Cloudview, an SQL statement using ij, any Java application or command line. Documentation talks about all different ways in detail with examples.


Method Index

 o defaultControlFileReader()
For internal use only
 o Export(Connection, String, String)
Invoke export from ij or from a Java application
 o Export(Connection, String, String, String)
Invoke export from ij or from a Java application
 o ExportInit()
initialize method of all export methods - init the AppUI class and get an handler on the resource file.
 o ExportInitInstance()
 
 o getControlFileReader()
For internal use only
 o getExportWriteData()
For internal use only
 o main(String[])
Stand-alone bulk export from command-line.

Method Detail

 o Export
public static void Export(java.sql.Connection con,
                          java.lang.String entityName,
                          java.lang.String outputFileName,
                          java.lang.String controlFileName) throws java.lang.Exception
          Invoke export from ij or from a Java application
Parameters:
con - The Cloudscape database connection URL for the database containing the table/view
entityName - The name of the table or view from which you want to bulk export the data, qualify the table name with the schema name, if it is not in the default schema APP.
outputFileName - The ASCII file into which data is exported
controlFileName - The URL of the control file specifying the file format of the ASCII file for the bulk export.
Throws:
java.lang.Exception - on error case
 o Export
public static void Export(java.sql.Connection con,
                          java.lang.String entityName,
                          java.lang.String outputFileName) throws java.lang.Exception
          Invoke export from ij or from a Java application
Parameters:
con - The Cloudscape database connection URL for the database containing the table/view
entityName - The name of the table or view from which you want to bulk export the data. Qualify the table name with the schema name, if it is not in the default schema APP.
outputFileName - The ASCII file into which data is exported
Throws:
java.lang.Exception - on error case
 o main
public static void main(java.lang.String args[]) throws java.lang.Exception
          Stand-alone bulk export from command-line.
Parameters:
databaseConnectionURL - The Cloudscape database connection URL for the database containing the table/view
tableOrViewName - The name of the table or view from which you want to bulk export the data. Qualify the table name with the schema name, if it is not in the default schema APP.
exportFile - The ASCII file into which data is exported
Throws:
java.lang.Exception - on error case
 o getControlFileReader
protected COM.cloudscape.tools.ImportExportImpl.ControlFileReaderAbstract getControlFileReader() throws java.lang.Exception
          For internal use only
Throws:
java.lang.Exception - if there is an error
Overrides:
getControlFileReader in class COM.cloudscape.tools.ImportExportImpl.ExportAbstract
 o defaultControlFileReader
protected boolean defaultControlFileReader() throws java.lang.Exception
          For internal use only
Throws:
java.lang.Exception - if there is an error
Overrides:
defaultControlFileReader in class COM.cloudscape.tools.ImportExportImpl.ExportAbstract
 o getExportWriteData
protected COM.cloudscape.tools.ImportExportImpl.ExportWriteDataAbstract getExportWriteData() throws java.lang.Exception
          For internal use only
Throws:
java.lang.Exception - if there is an error
Overrides:
getExportWriteData in class COM.cloudscape.tools.ImportExportImpl.ExportAbstract
 o ExportInit
protected static void ExportInit()
          initialize method of all export methods - init the AppUI class and get an handler on the resource file.
 o ExportInitInstance
protected void ExportInitInstance()

  Class Hierarchy    Previous  Next  Index