BBjEnterpriseNamespace::getKeys

Description

In BBj 13.0 and higher, this method retrieves the keys of all elements currently contained in a BBjEnterpriseNamespace.

Syntax

Return Value

Method

BBjVector

getKeys()

Parameters

None.

Return Value

Returns a BBjVector containing all keys in the underlying EnterpriseNamespace.

Remarks

None.

Example

rem 'host and authentication information

host$="server"
port = 2552
user$="user"
password$="password"
namespace! = bbjapi().getBBjEnterpriseNamespace(host$,port,"test",user$,password$)
namespace!.setValue("key1","value1")
namespace!.setValue("key2",1234)
namespace!.setValue("key3",new java.lang.String("a Java String"))
vector! = namespace!.getKeys()
size = vector!.size()
print "namespace element count: " , size
for i = 0 to size-1
    key$ = vector!.getItem(i)
    value! = namespace!.getValue(key$)
    print key$, " : " , value!.toString()
next i

See Also

BBjAPI

BBjEnterpriseNamespace

BBjNamespace

Object Variables

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