skip to main content
OpenAccess SDK SQL Engine core methods for Java : Exchanging data : dam_getNextGrantee
 

dam_getNextGrantee

This method is used to navigate the granted user list in the GRANT and REVOKE commands. This method is used in the ipDCL method.
int dam_getNextGrantee(
    long         hstmt,
    StringBuffer szCatalog,
    StringBuffer szGranteeName)
Table 197. Parameters for dam_getNextGrantee
Parameter
Type
Description
INPUT
hstmt
long
The statement handle.
OUTPUT
szCatalog
StringBuffer
The name of the catalog.
szGranteeName
StringBuffer
The name will be one of the following:
*user name.
*role name.
*DAM_PUBLIC_USER_NAME - to indicate that the grantee is PUBLIC.
RETURN
int
DAM_SUCCESS - on successDAM_FAILURE - on failureDAM_NO_DATA_FOUND - on end of list