com.sap.dbtech.powertoys
Class DBM
java.lang.Objectcom.sap.dbtech.powertoys.DBM
public class DBM
extends java.lang.Object
Executes administration commands for SAP DB
DBM(Properties properties)- creates a new DBM.
|
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
|
dbnameKeyC
public static final String dbnameKeyC
dbrootKeyC
public static final String dbrootKeyC
hostKeyC
public static final String hostKeyC
userKeyC
public static final String userKeyC
DBM
public DBM(Properties properties)
throws com.sap.dbtech.rte.comm.RTEExceptioncreates 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)
cmd
public String cmd(String cmdString)
throws com.sap.dbtech.rte.comm.RTEException,
DBMException executes cmdString in the current dbm session.
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