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

dam_getFirstGrantee

This method is used to navigate the granted user list in the GRANT and REVOKE commands of the ipDCL method.
int dam_getFirstGrantee(
    long         hstmt,
    StringBuffer szCatalog,
    StringBuffer szGranteeName)
Table 176. Parameters for dam_getFirstGrantee
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 - the grantee is PUBLIC.
RETURN
int
*DAM_SUCCESS - on success
*DAM_FAILURE - on failure
*DAM_NO_DATA_FOUND - on end of list