Class Hierarchy Index
Class COM.cloudscape.tools.FileExport
java.lang.Object
|
+----COM.cloudscape.tools.ImportExportImpl.ExportAbstract
|
+----COM.cloudscape.tools.FileExport
- public class FileExport
- extends ExportAbstract
Copyright © 1998-1999, Cloudscape, 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.
-
defaultControlFileReader()
- For internal use only
-
Export(Connection, String, String)
- Invoke export from ij or from a Java application
-
Export(Connection, String, String, String)
- Invoke export from ij or from a Java application
-
getControlFileReader()
- For internal use only
-
getExportWriteData()
- For internal use only
-
main(String[])
- Stand-alone bulk export from command-line.
Export
public static void Export(Connection con,
String entityName,
String outputFileName,
String controlFileName) throws 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: Exception
- on error case
Export
public static void Export(Connection con,
String entityName,
String outputFileName) throws 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: Exception
- on error case
main
public static void main(String args[]) throws 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
- (optional) - controlFileURL The URL of the control file specifying the file format of the
ASCII file for the bulk export.
- Throws: Exception
- on error case
getControlFileReader
protected ControlFileReaderAbstract getControlFileReader() throws Exception
- For internal use only
- Throws: Exception
- if there is an error
- Overrides:
- getControlFileReader in class ExportAbstract
defaultControlFileReader
protected boolean defaultControlFileReader() throws Exception
- For internal use only
- Throws: Exception
- if there is an error
- Overrides:
- defaultControlFileReader in class ExportAbstract
getExportWriteData
protected ExportWriteDataAbstract getExportWriteData() throws Exception
- For internal use only
- Throws: Exception
- if there is an error
- Overrides:
- getExportWriteData in class ExportAbstract
Class Hierarchy Index