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

dam_getOrderByCol

This method returns the column name and position in the schema for the specified ORDER BY column.
int dam_getOrderByCol(
    long         hstmt,
    int          iOrderByColNum,
    xo_int       piColNum,
    StringBuffer pColName,
    xo_int       piSortOrder)
Table 207. Parameters for dam_getOrderByCol
Parameter
Type
Description
INPUT
hstmt
long
The statement handle.
iOrderByColNum
int
The column number of the ORDER BY column (the column for which information is to be returned).
OUTPUT
piColNum
xo_int
The column number as defined in the schema database.
pColName
StringBuffer
The column name as defined in the schema database.
piSortOrder
xo_int
The sort order for the column:
*SQL_ORDER_ASC - Ascending
*SQL_ORDER_DESC - Descending
RETURN
int
Status of the call:
DAM_SUCCESS - on success
DAM_FAILURE - wrong value for iOrderByColNum