Entering content frame

Function documentation Loader Java Classes Locate the document in the library structure

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, Structure linkSoftware 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.

Example

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, Structure linkCommands and SQL Statements

Structure linkLoader

 

Leaving content frame