Loader Java Classes

Use

To import data from the database instance into a Java application or to export it from a Java application, use the Loader Java classes.

Prerequisites

?     You have installed the software component JDBC (see Installation Manual, Software Components).

?     You have added the sapdbc.jar path to the CLASSPATH environment variable.

Features

The Loader Java classes are contained in the file <independent_program_path>\runtime\jar\sapdbc.jar.

C:\Program Files\sdb\programs\runtime\jar\sapdbc.jar

Loader Java Classes

Class

Task

com.sap.dbtech.powertoys.Loader

Establishing/closing the connection to the database instance

Executing Loader commands (commands of the Loader tool) and SQL statements

com.sap.dbtech.powertoys.LoaderException

Error handling

Methods of the com.sap.dbtech.powertoys.Loader Classes

Method

Task

dbLoader

Connecting Java applications to the Loader

cmd

Executing Loader command or SQL statement

cancel

Cancelling Loader command or SQL statement

finalize

This method overwrites the finalize()method of the class java.lang.Object.

release

Ending the connection to the Loader

Methods of the com.sap.dbtech.powertoys.LoaderException Classes

See Troubleshooting (Loader)

Example

Example: Exporting a Table

See also:

Loader, Commands and SQL Statements

Loader