BBjJdbcOdbcInfo::getID

Description

In BBj 8.0 and higher, this method returns the unique connection identifier for one of the JDBC/ODBC connections currently open in the BBjServices session.

Syntax

Return Value

Method

string

getID()

Parameters

None.

Return Value

Returns the unique identifier of the connected host for the opened JDBC/ODBC connection.

Remarks

None.

Example

rem Retrieve the IDs for all open JDBC/ODBC connections within

rem the BBjServices session

input "Enter User ID: ",userid$
input "Enter Password: ",password$
admin!=BBjAPI().getAdmin(userid$,password$)
vector! = admin!.getJdbcOdbcInfos()
for i=0 to vector!.size()-1
info!=vector!.get(i)
print str(info!.getID())
next i

stop

See Also

BBjAPI

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.