BBjJdbcOdbcInfo::getUser

Description

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

Syntax

Return Value

Method

string

getUser()

Parameters

None.

Return Value

Returns the name of the user who opened JDBC/ODBC connection.

Remarks

None.

Example

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

See Also

BBjAPI

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