public class XATestUtil
extends java.lang.Object
| Constructor and Description |
|---|
XATestUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkXATransactionView(java.sql.Connection conn,
java.lang.String[][] expectedRows)
Display the active global transactions.
|
static void |
createXATransactionView(java.sql.Statement s)
Create a view that allows useful inspection of the active
global transactions.
|
static void |
dumpXAException(java.lang.String tag,
javax.transaction.xa.XAException xae)
Dump an unexpected XAException.
|
static java.lang.String |
errorCode(javax.transaction.xa.XAException e)
Return a string for the error code of the XAException.
|
static javax.transaction.xa.Xid |
getXid(int formatId,
byte[] globalId,
byte[] branchId) |
static javax.transaction.xa.Xid |
getXid(int formatId,
int b1,
int b2)
Return a new Xid for testing.
|
public static javax.transaction.xa.Xid getXid(int formatId,
int b1,
int b2)
public static javax.transaction.xa.Xid getXid(int formatId,
byte[] globalId,
byte[] branchId)
public static void dumpXAException(java.lang.String tag,
javax.transaction.xa.XAException xae)
tag - Useful info to printxae - The exceptionpublic static void createXATransactionView(java.sql.Statement s)
throws java.sql.SQLException
java.sql.SQLExceptionpublic static void checkXATransactionView(java.sql.Connection conn,
java.lang.String[][] expectedRows)
throws java.sql.SQLException
conn - java.sql.SQLExceptionpublic static java.lang.String errorCode(javax.transaction.xa.XAException e)
Apache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.