OpenAPI User Guide > OpenAPI User Guide > OpenAPI Data Types > OpenAPI Data Structures > IIAPI_TRAN_ID Data Type--Identify an OpenAPI Transaction
Was this helpful?
IIAPI_TRAN_ID Data Type--Identify an OpenAPI Transaction
The IIAPI_TRAN_ID data type specifies and names an OpenAPI transaction. OpenAPI supports Ingres transaction management. The union in this data type will increase as more transaction managers are supported.
This data type has the following syntax:
typedef struct _IIAPI_TRAN_ID
{
       II_ULONG                          ti_type;
       union
       {
              IIAPI_II_DIS_TRAN_ID       iiXID;
              IIAPI_XA_DIS_TRAN_ID       xaXID;
       } ti_value;
} IIAPI_TRAN_ID;
This data type has the following parameters:
ti_type
Specifies the type of transaction being identified. The valid values are:
IIAPI_TI_IIXID
IIAPI_TI_XAXID
ti_value.iiXID
Specifies the unique ID of an Ingres transaction. This parameter is valid only if ti_type is IIAPI_TI_IIXID.
ti_value.xaXID
Specifies the unique ID of an XA transaction. This parameter is valid only if ti_type is IIAPI_TI_XAXID.
Last modified date: 11/28/2023