15 * accompanied this code). 16 * 17 * You should have received a copy of the GNU General Public License version 18 * 2 along with this work; if not, write to the Free Software Foundation, 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 * 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 * or visit www.oracle.com if you need additional information or have any 23 * questions. 24 */ 25 26 package javax.transaction.xa; 27 28 /** 29 * The Xid interface is a Java mapping of the X/Open transaction identifier 30 * XID structure. This interface specifies three accessor methods to 31 * retrieve a global transaction format ID, global transaction ID, 32 * and branch qualifier. The Xid interface is used by the transaction 33 * manager and the resource managers. This interface is not visible to 34 * the application programs. 35 */ 36 public interface Xid { 37 38 /** 39 * Maximum number of bytes returned by getGtrid. 40 */ 41 final static int MAXGTRIDSIZE = 64; 42 43 /** 44 * Maximum number of bytes returned by getBqual. 45 */ 46 final static int MAXBQUALSIZE = 64; 47 48 /** 49 * Obtain the format identifier part of the XID. 50 * 51 * @return Format identifier. O means the OSI CCR format. 52 */ 53 int getFormatId(); 54 | 15 * accompanied this code). 16 * 17 * You should have received a copy of the GNU General Public License version 18 * 2 along with this work; if not, write to the Free Software Foundation, 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 * 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 * or visit www.oracle.com if you need additional information or have any 23 * questions. 24 */ 25 26 package javax.transaction.xa; 27 28 /** 29 * The Xid interface is a Java mapping of the X/Open transaction identifier 30 * XID structure. This interface specifies three accessor methods to 31 * retrieve a global transaction format ID, global transaction ID, 32 * and branch qualifier. The Xid interface is used by the transaction 33 * manager and the resource managers. This interface is not visible to 34 * the application programs. 35 * 36 * @since 1.4 37 */ 38 public interface Xid { 39 40 /** 41 * Maximum number of bytes returned by getGtrid. 42 */ 43 final static int MAXGTRIDSIZE = 64; 44 45 /** 46 * Maximum number of bytes returned by getBqual. 47 */ 48 final static int MAXBQUALSIZE = 64; 49 50 /** 51 * Obtain the format identifier part of the XID. 52 * 53 * @return Format identifier. O means the OSI CCR format. 54 */ 55 int getFormatId(); 56 |