author | shade |
Thu, 26 Apr 2018 17:59:02 +0200 | |
branch | epsilon-gc-branch |
changeset 56489 | 016b77c3734a |
parent 49126 | f29637bb390e |
permissions | -rw-r--r-- |
28298
7fca67ba0b9f
8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff
changeset
|
1 |
/* |
7fca67ba0b9f
8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff
changeset
|
2 |
* Copyright (c) 2000, 2002, Oracle and/or its affiliates. All rights reserved. |
7fca67ba0b9f
8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
7fca67ba0b9f
8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff
changeset
|
4 |
* |
7fca67ba0b9f
8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
7fca67ba0b9f
8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
7fca67ba0b9f
8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation. Oracle designates this |
7fca67ba0b9f
8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff
changeset
|
8 |
* particular file as subject to the "Classpath" exception as provided |
7fca67ba0b9f
8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff
changeset
|
9 |
* by Oracle in the LICENSE file that accompanied this code. |
7fca67ba0b9f
8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff
changeset
|
10 |
* |
7fca67ba0b9f
8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff
changeset
|
11 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
7fca67ba0b9f
8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff
changeset
|
12 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
7fca67ba0b9f
8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff
changeset
|
13 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
7fca67ba0b9f
8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff
changeset
|
14 |
* version 2 for more details (a copy is included in the LICENSE file that |
7fca67ba0b9f
8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff
changeset
|
15 |
* accompanied this code). |
7fca67ba0b9f
8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff
changeset
|
16 |
* |
7fca67ba0b9f
8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff
changeset
|
17 |
* You should have received a copy of the GNU General Public License version |
7fca67ba0b9f
8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff
changeset
|
18 |
* 2 along with this work; if not, write to the Free Software Foundation, |
7fca67ba0b9f
8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff
changeset
|
19 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
7fca67ba0b9f
8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff
changeset
|
20 |
* |
7fca67ba0b9f
8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff
changeset
|
21 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
7fca67ba0b9f
8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff
changeset
|
22 |
* or visit www.oracle.com if you need additional information or have any |
7fca67ba0b9f
8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff
changeset
|
23 |
* questions. |
7fca67ba0b9f
8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff
changeset
|
24 |
*/ |
7fca67ba0b9f
8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff
changeset
|
25 |
|
7fca67ba0b9f
8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff
changeset
|
26 |
package javax.transaction.xa; |
7fca67ba0b9f
8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff
changeset
|
27 |
|
7fca67ba0b9f
8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff
changeset
|
28 |
/** |
7fca67ba0b9f
8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff
changeset
|
29 |
* The Xid interface is a Java mapping of the X/Open transaction identifier |
7fca67ba0b9f
8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff
changeset
|
30 |
* XID structure. This interface specifies three accessor methods to |
7fca67ba0b9f
8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff
changeset
|
31 |
* retrieve a global transaction format ID, global transaction ID, |
7fca67ba0b9f
8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff
changeset
|
32 |
* and branch qualifier. The Xid interface is used by the transaction |
7fca67ba0b9f
8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff
changeset
|
33 |
* manager and the resource managers. This interface is not visible to |
7fca67ba0b9f
8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff
changeset
|
34 |
* the application programs. |
44256 | 35 |
* |
36 |
* @since 1.4 |
|
28298
7fca67ba0b9f
8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff
changeset
|
37 |
*/ |
7fca67ba0b9f
8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff
changeset
|
38 |
public interface Xid { |
7fca67ba0b9f
8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff
changeset
|
39 |
|
7fca67ba0b9f
8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff
changeset
|
40 |
/** |
46899
ea81af6257b3
8184120: javax.transaction.xa.Xid fields reference obsolete method names
lancea
parents:
44256
diff
changeset
|
41 |
* Maximum number of bytes returned by {@link #getGlobalTransactionId }. |
28298
7fca67ba0b9f
8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff
changeset
|
42 |
*/ |
7fca67ba0b9f
8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff
changeset
|
43 |
final static int MAXGTRIDSIZE = 64; |
7fca67ba0b9f
8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff
changeset
|
44 |
|
7fca67ba0b9f
8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff
changeset
|
45 |
/** |
46899
ea81af6257b3
8184120: javax.transaction.xa.Xid fields reference obsolete method names
lancea
parents:
44256
diff
changeset
|
46 |
* Maximum number of bytes returned by {@link #getBranchQualifier }. |
28298
7fca67ba0b9f
8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff
changeset
|
47 |
*/ |
7fca67ba0b9f
8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff
changeset
|
48 |
final static int MAXBQUALSIZE = 64; |
7fca67ba0b9f
8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff
changeset
|
49 |
|
7fca67ba0b9f
8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff
changeset
|
50 |
/** |
7fca67ba0b9f
8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff
changeset
|
51 |
* Obtain the format identifier part of the XID. |
7fca67ba0b9f
8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff
changeset
|
52 |
* |
7fca67ba0b9f
8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff
changeset
|
53 |
* @return Format identifier. O means the OSI CCR format. |
7fca67ba0b9f
8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff
changeset
|
54 |
*/ |
7fca67ba0b9f
8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff
changeset
|
55 |
int getFormatId(); |
7fca67ba0b9f
8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff
changeset
|
56 |
|
7fca67ba0b9f
8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff
changeset
|
57 |
/** |
7fca67ba0b9f
8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff
changeset
|
58 |
* Obtain the global transaction identifier part of XID as an array |
7fca67ba0b9f
8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff
changeset
|
59 |
* of bytes. |
7fca67ba0b9f
8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff
changeset
|
60 |
* |
7fca67ba0b9f
8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff
changeset
|
61 |
* @return Global transaction identifier. |
7fca67ba0b9f
8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff
changeset
|
62 |
*/ |
7fca67ba0b9f
8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff
changeset
|
63 |
byte[] getGlobalTransactionId(); |
7fca67ba0b9f
8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff
changeset
|
64 |
|
7fca67ba0b9f
8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff
changeset
|
65 |
/** |
7fca67ba0b9f
8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff
changeset
|
66 |
* Obtain the transaction branch identifier part of XID as an array |
7fca67ba0b9f
8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff
changeset
|
67 |
* of bytes. |
7fca67ba0b9f
8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff
changeset
|
68 |
* |
7fca67ba0b9f
8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff
changeset
|
69 |
* @return Global transaction identifier. |
7fca67ba0b9f
8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff
changeset
|
70 |
*/ |
7fca67ba0b9f
8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff
changeset
|
71 |
byte[] getBranchQualifier(); |
7fca67ba0b9f
8047776: Add module java.transaction to export API javax.transaction
alanb
parents:
diff
changeset
|
72 |
} |