Java Code Examples for javax.transaction.xa.Xid#MAXGTRIDSIZE

The following examples show how to use javax.transaction.xa.Xid#MAXGTRIDSIZE . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: XATestUtil.java    From gemfirexd-oss with Apache License 2.0 5 votes vote down vote up
utilXid(int xid, int b1, int b2) {
    format_id = xid;
    global_id = new byte[Xid.MAXGTRIDSIZE];
    branch_id = new byte[Xid.MAXBQUALSIZE];

    for (int i = 0; i < global_id.length; i++) {
        global_id[i] = (byte) (b1 + i);
    }

    for (int i = 0; i < branch_id.length; i++) {
        branch_id[i] = (byte) (b2 + i);
    }
}
 
Example 2
Source File: J2EEDataSourceTest.java    From gemfirexd-oss with Apache License 2.0 5 votes vote down vote up
cdsXid(int xid, byte b1, byte b2)
{
    format_id = xid;
    global_id = new byte[Xid.MAXGTRIDSIZE];
    branch_id = new byte[Xid.MAXBQUALSIZE];

    for (int i = 0; i < global_id.length; i++) {
        global_id[i] = b1;
    }

    for (int i = 0; i < branch_id.length; i++) {
        branch_id[i] = b2;
    }
}
 
Example 3
Source File: XATestUtil.java    From gemfirexd-oss with Apache License 2.0 5 votes vote down vote up
utilXid(int xid, int b1, int b2) {
    format_id = xid;
    global_id = new byte[Xid.MAXGTRIDSIZE];
    branch_id = new byte[Xid.MAXBQUALSIZE];

    for (int i = 0; i < global_id.length; i++) {
        global_id[i] = (byte) (b1 + i);
    }

    for (int i = 0; i < branch_id.length; i++) {
        branch_id[i] = (byte) (b2 + i);
    }
}
 
Example 4
Source File: J2EEDataSourceTest.java    From gemfirexd-oss with Apache License 2.0 5 votes vote down vote up
cdsXid(int xid, byte b1, byte b2)
{
    format_id = xid;
    global_id = new byte[Xid.MAXGTRIDSIZE];
    branch_id = new byte[Xid.MAXBQUALSIZE];

    for (int i = 0; i < global_id.length; i++) {
        global_id[i] = b1;
    }

    for (int i = 0; i < branch_id.length; i++) {
        branch_id[i] = b2;
    }
}
 
Example 5
Source File: XATestUtil.java    From spliceengine with GNU Affero General Public License v3.0 5 votes vote down vote up
utilXid(int xid, int b1, int b2) {
    format_id = xid;
    global_id = new byte[Xid.MAXGTRIDSIZE];
    branch_id = new byte[Xid.MAXBQUALSIZE];

    for (int i = 0; i < global_id.length; i++) {
        global_id[i] = (byte) (b1 + i);
    }

    for (int i = 0; i < branch_id.length; i++) {
        branch_id[i] = (byte) (b2 + i);
    }
}
 
Example 6
Source File: J2EEDataSourceTest.java    From spliceengine with GNU Affero General Public License v3.0 5 votes vote down vote up
cdsXid(int xid, byte b1, byte b2)
{
    format_id = xid;
    global_id = new byte[Xid.MAXGTRIDSIZE];
    branch_id = new byte[Xid.MAXBQUALSIZE];

    for (int i = 0; i < global_id.length; i++) {
        global_id[i] = b1;
    }

    for (int i = 0; i < branch_id.length; i++) {
        branch_id[i] = b2;
    }
}