BBjJdbcOdbcInfo::getDatabase

Description

In BBj 8.0 and higher, this method returns the name of the database of one of the JDBC/ODBC connections currently open in the BBjServices session.

Syntax

Return Value

Method

string

getDatabase()

Parameters

None.

Return Value

Returns the name of the database of the opened JDBC/ODBC connection.

Remarks

None.

Example

rem 'Retrieve the Databases 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!.getDatabase())
next i
stop

See Also

BBjAPI

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