本文整理了Java中com.arjuna.ats.jta.xa.XATxConverter.getXid()
方法的一些代码示例,展示了XATxConverter.getXid()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XATxConverter.getXid()
方法的具体详情如下:
包路径:com.arjuna.ats.jta.xa.XATxConverter
类名称:XATxConverter
方法名:getXid
暂无
代码示例来源:origin: org.jboss.jbossts/jbossjta
public XidImple(Uid id, boolean branch, Integer eisName) {
try {
_theXid = XATxConverter.getXid(id, branch, eisName);
} catch (Exception e) {
_theXid = null;
e.printStackTrace();
// abort or throw exception?
}
hashCode = getHash(_theXid);
}
代码示例来源:origin: org.jboss.narayana.jts/narayana-jts-idlj
static XID getXid (Uid uid, boolean branch, Integer eisName) throws IllegalStateException
{
if (branch)
return getXid(uid, new Uid(), FORMAT_ID, eisName);
else
return getXid(uid, Uid.nullUid(), FORMAT_ID, eisName);
}
代码示例来源:origin: jboss.jbossts/jbossjts
static XID getXid (Uid uid, boolean branch) throws IllegalStateException
{
if (branch)
return getXid(uid, new Uid(), FORMAT_ID, null);
else
return getXid(uid, Uid.nullUid(), FORMAT_ID, null);
}
代码示例来源:origin: jbosstm/narayana
static XID getXid (Uid uid, boolean branch, Integer eisName) throws IllegalStateException
{
if (branch)
return getXid(uid, new Uid(), FORMAT_ID, eisName);
else
return getXid(uid, Uid.nullUid(), FORMAT_ID, eisName);
}
代码示例来源:origin: jbosstm/narayana
static XID getXid (Uid uid, boolean branch, Integer eisName) throws IllegalStateException
{
if (branch)
return getXid(uid, new Uid(), FORMAT_ID, eisName);
else
return getXid(uid, Uid.nullUid(), FORMAT_ID, eisName);
}
代码示例来源:origin: org.jboss.jbossts/jbossjta
static XID getXid (Uid uid, boolean branch, Integer eisName) throws IllegalStateException
{
if (branch)
return getXid(uid, new Uid(), FORMAT_ID, eisName);
else
return getXid(uid, Uid.nullUid(), FORMAT_ID, eisName);
}
代码示例来源:origin: org.jboss.narayana.jta/jta
static XID getXid (Uid uid, boolean branch, Integer eisName) throws IllegalStateException
{
if (branch)
return getXid(uid, new Uid(), FORMAT_ID, eisName);
else
return getXid(uid, Uid.nullUid(), FORMAT_ID, eisName);
}
代码示例来源:origin: org.jboss.jbossts.jta/narayana-jta
static XID getXid (Uid uid, boolean branch, Integer eisName) throws IllegalStateException
{
if (branch)
return getXid(uid, new Uid(), FORMAT_ID, eisName);
else
return getXid(uid, Uid.nullUid(), FORMAT_ID, eisName);
}
代码示例来源:origin: org.jboss.jbossts/jbossjta
public static Xid getXid (Uid uid, boolean branch, int formatId) throws IllegalStateException
{
XID xid;
if (branch)
xid = getXid(uid, new Uid(), formatId, null);
else
xid = getXid(uid, Uid.nullUid(), formatId, null);
return new XidImple(xid);
}
代码示例来源:origin: org.jboss.jbossts.jta/narayana-jta
public static Xid getXid (Uid uid, boolean branch, int formatId) throws IllegalStateException
{
XID xid;
if (branch)
xid = getXid(uid, new Uid(), formatId, null);
else
xid = getXid(uid, Uid.nullUid(), formatId, null);
return new XidImple(xid);
}
代码示例来源:origin: org.jboss.narayana.jts/narayana-jts-idlj
public static Xid getXid (Uid uid, boolean branch, int formatId) throws IllegalStateException
{
XID xid;
if (branch)
xid = getXid(uid, new Uid(), formatId, null);
else
xid = getXid(uid, Uid.nullUid(), formatId, null);
return new XidImple(xid);
}
代码示例来源:origin: org.jboss.narayana.jta/jta
public static Xid getXid (Uid uid, boolean branch, int formatId) throws IllegalStateException
{
XID xid;
if (branch)
xid = getXid(uid, new Uid(), formatId, null);
else
xid = getXid(uid, Uid.nullUid(), formatId, null);
return new XidImple(xid);
}
代码示例来源:origin: jbosstm/narayana
public static Xid getXid (Uid uid, boolean branch, int formatId) throws IllegalStateException
{
XID xid;
if (branch)
xid = getXid(uid, new Uid(), formatId, null);
else
xid = getXid(uid, Uid.nullUid(), formatId, null);
return new XidImple(xid);
}
代码示例来源:origin: jbosstm/narayana
public static Xid getXid (Uid uid, boolean branch, int formatId) throws IllegalStateException
{
XID xid;
if (branch)
xid = getXid(uid, new Uid(), formatId, null);
else
xid = getXid(uid, Uid.nullUid(), formatId, null);
return new XidImple(xid);
}
代码示例来源:origin: jboss.jbossts/jbossjts
public static Xid getXid (Uid uid, boolean branch, int formatId) throws IllegalStateException
{
XID xid;
if (branch)
xid = getXid(uid, new Uid(), formatId, null);
else
xid = getXid(uid, Uid.nullUid(), formatId, null);
return new XidImple(xid);
}
代码示例来源:origin: jbosstm/narayana
public XidImple(Uid id, boolean branch, Integer eisName) {
try {
_theXid = XATxConverter.getXid(id, branch, eisName);
} catch (Exception e) {
_theXid = null;
jtaLogger.i18NLogger.warn_cant_create_xid_of_branch(id, branch, eisName, e);
// abort or throw exception?
}
hashCode = getHash(_theXid);
}
代码示例来源:origin: org.jboss.narayana.jta/jta
public XidImple(Uid id, boolean branch, Integer eisName) {
try {
_theXid = XATxConverter.getXid(id, branch, eisName);
} catch (Exception e) {
_theXid = null;
jtaLogger.i18NLogger.warn_cant_create_xid_of_branch(id, branch, eisName, e);
// abort or throw exception?
}
hashCode = getHash(_theXid);
}
代码示例来源:origin: jbosstm/narayana
public XidImple(Uid id, boolean branch, Integer eisName) {
try {
_theXid = XATxConverter.getXid(id, branch, eisName);
} catch (Exception e) {
_theXid = null;
jtaLogger.i18NLogger.warn_cant_create_xid_of_branch(id, branch, eisName, e);
// abort or throw exception?
}
hashCode = getHash(_theXid);
}
代码示例来源:origin: org.jboss.narayana.jts/narayana-jts-idlj
public XidImple(Uid id, boolean branch, Integer eisName) {
try {
_theXid = XATxConverter.getXid(id, branch, eisName);
} catch (Exception e) {
_theXid = null;
jtaLogger.i18NLogger.warn_cant_create_xid_of_branch(id, branch, eisName, e);
// abort or throw exception?
}
hashCode = getHash(_theXid);
}
代码示例来源:origin: jbosstm/narayana
@Test
public void testJTATransactionLogOrphanFilter()
{
XAResourceOrphanFilter orphanFilter = new JTATransactionLogXAResourceOrphanFilter();
Xid notJTAFormatId = XATxConverter.getXid(new Uid(), false, 0);
assertEquals(XAResourceOrphanFilter.Vote.ABSTAIN, orphanFilter.checkXid(notJTAFormatId));
Xid jtaFormatId = XATxConverter.getXid(new Uid(), false, XATxConverter.FORMAT_ID);
assertEquals(XAResourceOrphanFilter.Vote.ABSTAIN, orphanFilter.checkXid(jtaFormatId));
}
内容来源于网络,如有侵权,请联系作者删除!