
BBjAPI
Description
The BBjAPI object is the entry point for creating and using BBj Objects.
Creation
Obtain a BBjAPI object through the following method:
Return Value |
Method |
---|---|
BBjAPI |
BBjAPI() |
Methods of BBjAPI
Return Value |
Method |
---|---|
byte[] |
asBytes(string sourcestring) |
void |
changePassword(string userName, string oldPassword, string newPassword) |
void |
clearCustomEventCallback(string eventName) |
void |
|
void |
|
ClientObject |
cloneAsClientObject(Objectserver Obj) |
Object |
cloneAsServerObject(ClientObject clientObj) |
void |
|
createFileRecordSet(string filename, string modes, string template) |
|
createMemoryRecordSet(string stringTemplate) |
|
createSQLRecordSet(string connect, string modes, string select) |
|
createSQLRecordSet(string connect, string modes, string select, boolean updateable) |
|
createSQLRecordSet(string connect, string modes, string select, boolean scrollSensitive) |
|
void |
createTimer(Object key, int seconds, CustomObject obj, string methodName) |
void |
createTimer(Object key, int seconds, string label) |
getAdmin(string user, string password) |
|
getBBjEnterpriseNamespace(string host, string port, string name, string user, string password) |
|
getBBjEnterpriseNamespace(string host, string port, string name, string user, string password, long timeout) |
|
getBBjEnterpriseNamespace(string host, string port, string name, string user, string password, long timeout, string keystore, string keypass) |
|
getBBjEnterpriseNamespace(string host, string port, string name, string user, string password, string keystore, string keypass) |
|
getBBjPDFForm(string filename) |
|
getBBjPDFForm(string filename, boolean useImage) |
|
getBBjPDFForm(string filename, PrintRequestAttributeSet attributes) |
|
getBBjPDFForm(string filename, PrintRequestAttributeSet attributes, boolean useImage) |
|
getBBjPrinter(AttributeSet attributes, int client) |
|
getBBjPrinter(int client) |
|
getBBjPrinter(String name, int client) |
|
string |
getDefaultPrinterName(int client) |
getExistingNamespace(String name) |
|
getJDBCConnection(String url) getJDBCConnection(string url, string mode) getJDBCConnection(string url , java.util.Properties props) getJDBCConnection(string url , string user, string password) |
|
java.lang.Throwable |
getLastException()- deprecated in BBj 12.0, use getLastBBjException() or getLastJavaException() |
getLDAPConnection(string host, int port, string bindDN, string password) |
|
getMDI() |
|
getNamespace(string prefixName, string baseName, int createIfNeeded) |
|
getNewNamespace(string prefixName) |
|
getProgramInfo(string filename) |
|
string |
getStbl(string key) |
int |
isInMDI() |
void |
killSession(BBjSessionInfo SessionInfo, string username, string password) |
string |
|
lookupPrinters(AttributeSet attributes, int client) |
|
makeColor(int colorNum) |
|
makeColor(int red, int green, int blue) |
|
makeColor(int red, int green, int blue, int alpha) |
|
makeColor(string colorName) |
|
int |
newBBjSession(BBjCommandLineObject cmdLineObj) |
int |
newSynchBBjSession(BBjCommandLineObject cmdLineObj) |
number! = num("1") |
|
openSysGui(string alias) |
|
void |
postCustomEvent(string eventName, Object payload) |
void |
postPriorityCustomEvent(string eventName, Object payload) |
void |
|
void |
removeDatabaseGlobal(string databaseName, string propertyName) |
void |
removeNamespace(string name) |
void |
removeTimer(Object key) |
void |
setCustomEventCallback(string eventName, CustomObject customObj, string methodName) |
void |
setCustomEventCallback(string eventName, string subRoutineName) |
string |
setStbl(string key, string value) |
Remarks
None.
Constants
0 |
FALSE |
1 |
TRUE |
Example
REM Obtain the instance of the BBjAPI object |
See Also
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.