Entering content frame

 Java: Loader Class 

The following Java module is delivered with the Loader program:

com.sap.dbtech.powertoys.Loader

public class Loader extends java.lang.Object

With the Loader class, you can create new Loader object instances and execute SQL statements or Loader commands.

Constructor: Loader

public Loader(java.util.Properties properties) throws RTEException

A new Loader object instance is created. The Loader class uses the following properties:

·        host: The Loader is started on this host.

·        dbname: The Loader is started for the specified database instance.

·        dbroot: The Loader is started for this version/in this directory.

Method: cmd

public java.lang.String cmd(java.lang.String cmdString) throws RTEException, LoaderException

An SQL statement or a Loader command (cmdString) is executed.

Method: dbLoader

public static Loader dbloader(java.lang.String host, java.lang.String dbname) throws RTEException

A new Loader object instance is created in which the host name (host) and the name of the database instance (dbname) are specified.

Method: dbrootLoader

public static Loader dbrootloader(java.lang.String host, java.lang.String dbroot) throws RTEException

A new Loader object instance is created in which the host name (host) and the dbroot directory are specified.

Method: finalize

public void finalize() throws RTEException

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

Method: release

public void release() throws RTEException

The Loader session is ended.

 

Leaving content frame