com.sap.dbtech.powertoys

Class Loader


public class Loader
extends java.lang.Object

Executes loader commands for SAP DB

Field Summary

static String
dbnameKeyC
static String
dbrootKeyC
static String
hostKeyC
static String
userKeyC

Constructor Summary

Loader(Properties properties)
creates a new Loader.

Method Summary

void
cancel()
String
cmd(String cmdString)
executes cmdString in the current lserver session.
static Loader
dbLoader(String host, String dbname)
creates a new Loader by specifying the host and the dbname
static Loader
dbrootLoader(String host, String dbroot)
create a new Loader by specifying the host and the dbroot
void
finalize()
void
release()
closes the connection

Field Details

dbnameKeyC

public static final String dbnameKeyC

dbrootKeyC

public static final String dbrootKeyC

hostKeyC

public static final String hostKeyC

userKeyC

public static final String userKeyC

Constructor Details

Loader

public Loader(Properties properties)
            throws com.sap.dbtech.rte.comm.RTEException
creates a new Loader. The following properties are used by this class:
  • "host": start lserver on this host
  • "dbname": start lserver for this database
  • "dbroot": start dbmserver for this release/diretory
  • "user": user,pwd implicit lserver connect (not yet implemented)

    Method Details

    cancel

    public void cancel()
                throws SQLException

    cmd

    public String cmd(String cmdString)
                throws com.sap.dbtech.rte.comm.RTEException,
                       LoaderException
    executes cmdString in the current lserver session.
    Throws:
    LoaderException -
    com.sap.dbtech.rte.comm.RTEException -

    dbLoader

    public static Loader dbLoader(String host,
                                  String dbname)
                throws com.sap.dbtech.rte.comm.RTEException
    creates a new Loader by specifying the host and the dbname

    dbrootLoader

    public static Loader dbrootLoader(String host,
                                      String dbroot)
                throws com.sap.dbtech.rte.comm.RTEException
    create a new Loader by specifying the host and the dbroot

    finalize

    public void finalize()
                throws com.sap.dbtech.rte.comm.RTEException

    release

    public void release()
                throws com.sap.dbtech.rte.comm.RTEException
    closes the connection