com.sap.dbtech.powertoys

Class DBM


public class DBM
extends java.lang.Object

Executes administration commands for SAP DB

Field Summary

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

Constructor Summary

DBM(Properties properties)
creates a new DBM.

Method Summary

void
cancel()
String
cmd(String cmdString)
executes cmdString in the current dbm session.
String
cmd(String cmdString, boolean checklogon)
static DBM
dbDBM(String host, String dbname)
creates a new DBM by specifying the host and the dbname
static DBM
dbrootDBM(String host, String dbroot)
create a new DBM 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

DBM

public DBM(Properties properties)
            throws com.sap.dbtech.rte.comm.RTEException
creates a new DBM. The following properties are used by this class:
  • "host": start dbmserver on this host
  • "dbname": start dbmserver for this database
  • "dbroot": start dbmserver for this release/diretory
  • "user": user,pwd implicit dbm 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,
                       DBMException
    executes cmdString in the current dbm session.
    Throws:
    DBMException -
    com.sap.dbtech.rte.comm.RTEException -

    cmd

    public String cmd(String cmdString,
                      boolean checklogon)
                throws com.sap.dbtech.rte.comm.RTEException,
                       DBMException

    dbDBM

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

    dbrootDBM

    public static DBM dbrootDBM(String host,
                                String dbroot)
                throws com.sap.dbtech.rte.comm.RTEException
    create a new DBM 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