BBjEnterpriseNamespace::cloneMap

Description

In BBj 13.0 and higher, this method returns a HashMap containing the same keys and values as BBjEnterpriseNamespace.

Syntax

Return Value

Method

java.util.HashMap

cloneMap()

Parameters

Variable

Description

name

Specifies the name of the object to retrieve.

Return Value

None.

Remarks

A HashMap contains the same name-value pairs as the BBjEnterpriseNamespace.

Example

rem 'host and authentication information

host$="server"
port = 2552
user$="user"
password$="password"
namespace! = bbjapi().getBBjEnterpriseNamespace(host$,port,"test",user$,password$)
namespace!.setValue("aKey","bValue")
namespace!.setValue("bKey","bValue")
clone! = namespace!.cloneMap()
print clone!.getClass().getName()
keys! = namespace!.getKeys()
print keys!.getClass().getName()
size = keys!.size()
for i = 0 to size -1
    key$ = keys!.getItem(i)
    value$ = clone!.get(key$)
    print key$, ":",value$
next i

See Also

BBjAPI

BBjEnterpriseNamespace

BBjNamespace

Object Variables

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