gpt4 book ai didi

com.arjuna.ats.jta.xa.XAModifier.createXid()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-18 18:40:40 27 4
gpt4 key购买 nike

本文整理了Java中com.arjuna.ats.jta.xa.XAModifier.createXid()方法的一些代码示例,展示了XAModifier.createXid()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XAModifier.createXid()方法的具体详情如下:
包路径:com.arjuna.ats.jta.xa.XAModifier
类名称:XAModifier
方法名:createXid

XAModifier.createXid介绍

[英]Given an Arjuna xid, create a local driver representation. Some drivers expect their own implementations to be used, despite the fact that the JTA does not mention this!
[中]给定Arjuna xid,创建本地驱动程序表示。一些驱动程序希望使用自己的实现,尽管JTA没有提到这一点!

代码示例

代码示例来源:origin: jboss.jbossts/jbossjts

private final Xid createXid(boolean branch, XAModifier theModifier)
{
  Xid xid = baseXid();
  if (xid != null)
    return xid;
  xid = new XidImple(_theTransaction, branch);
  if (theModifier != null)
  {
    try
    {
      xid = theModifier.createXid((XidImple) xid);
    }
    catch (Exception e)
    {
      e.printStackTrace();
    }
  }
  return xid;
}

代码示例来源:origin: jboss.jbossts/jbossjts

private final Xid createXid (boolean branch, XAModifier theModifier)
{
  Xid jtaXid = baseXid();
  if (jtaXid != null)
    return jtaXid;
  try
  {
    jtaXid = _theTransaction.get_xid(branch);
    if (theModifier != null)
    {
      try
      {
        jtaXid = theModifier.createXid(jtaXid);
      }
      catch (Exception e)
      {
        e.printStackTrace();
      }
    }
    return jtaXid;
  }
  catch (Exception e)
  {
    e.printStackTrace();
  }
  return null;
}

代码示例来源:origin: org.jboss.jbossts/jbossjta

protected Xid createXid(boolean branch, XAModifier theModifier, XAResource xaResource) throws IOException, ObjectStoreException
{
  int eisName = 0;
  if(branch) {
    if(_xaResourceRecordWrappingPlugin != null) {
      eisName = _xaResourceRecordWrappingPlugin.getEISName(xaResource);
    }
  }
  Xid xid = new XidImple(_theTransaction.get_uid(), branch, eisName);
  if (theModifier != null)
  {
    try
    {
      xid = theModifier.createXid((XidImple) xid);
    }
    catch (Exception e)
    {
      e.printStackTrace();
    }
  }
  return xid;
}

代码示例来源:origin: org.jboss.jbossts.jta/narayana-jta

protected Xid createXid(boolean branch, XAModifier theModifier, XAResource xaResource) throws IOException, ObjectStoreException
{
  int eisName = 0;
  if(branch) {
    if(_xaResourceRecordWrappingPlugin != null) {
      eisName = _xaResourceRecordWrappingPlugin.getEISName(xaResource);
    }
  }
  Xid xid = new XidImple(_theTransaction.get_uid(), branch, eisName);
  if (theModifier != null)
  {
    try
    {
      xid = theModifier.createXid((XidImple) xid);
    }
    catch (Exception e)
    {
      e.printStackTrace();
    }
  }
  return xid;
}

代码示例来源:origin: org.jboss.jbossts.jta/narayana-jta

@Override
protected Xid createXid(boolean branch, XAModifier theModifier, XAResource xaResource) throws IOException, ObjectStoreException
{
  Xid xid = baseXid();
  // We can have subordinate XIDs that can be editted
  if (xid.getFormatId() != XATxConverter.FORMAT_ID)
    return xid;
  Integer eisName = null;
  if(branch) {
    if(_xaResourceRecordWrappingPlugin != null) {
      eisName = _xaResourceRecordWrappingPlugin.getEISName(xaResource);
    }
  }
  xid = new XidImple(xid, branch, eisName);
  if (theModifier != null)
  {
    try
    {
      xid = theModifier.createXid((XidImple) xid);
    }
    catch (Exception e)
    {
      e.printStackTrace();
    }
  }
  return xid;
}

代码示例来源:origin: org.jboss.jbossts/jbossjta

@Override
protected Xid createXid(boolean branch, XAModifier theModifier, XAResource xaResource) throws IOException, ObjectStoreException
{
  Xid xid = baseXid();
  // We can have subordinate XIDs that can be editted
  if (xid.getFormatId() != XATxConverter.FORMAT_ID)
    return xid;
  Integer eisName = null;
  if(branch) {
    if(_xaResourceRecordWrappingPlugin != null) {
      eisName = _xaResourceRecordWrappingPlugin.getEISName(xaResource);
    }
  }
  xid = new XidImple(xid, branch, eisName);
  if (theModifier != null)
  {
    try
    {
      xid = theModifier.createXid((XidImple) xid);
    }
    catch (Exception e)
    {
      e.printStackTrace();
    }
  }
  return xid;
}

代码示例来源:origin: org.jboss.narayana.jts/narayana-jts-idlj

jtaXid = theModifier.createXid(jtaXid);

代码示例来源:origin: jbosstm/narayana

protected Xid createXid(boolean branch, XAModifier theModifier, XAResource xaResource) throws IOException, ObjectStoreException
{
  int eisName = 0;
  if(branch) {
    if(_xaResourceRecordWrappingPlugin != null) {
      eisName = _xaResourceRecordWrappingPlugin.getEISName(xaResource);
    }
  }
  Xid xid = new XidImple(_theTransaction.get_uid(), branch, eisName);
  if (theModifier != null)
  {
    try
    {
      xid = theModifier.createXid((XidImple) xid);
    }
    catch (Exception e)
    {
      jtaLogger.i18NLogger.warn_cant_create_xid_of_branch(_theTransaction.get_uid(), branch, eisName, e);
    }
  }
  return xid;
}

代码示例来源:origin: jbosstm/narayana

protected Xid createXid(boolean branch, XAModifier theModifier, XAResource xaResource) throws IOException, ObjectStoreException
{
  int eisName = 0;
  if(branch) {
    if(_xaResourceRecordWrappingPlugin != null) {
      eisName = _xaResourceRecordWrappingPlugin.getEISName(xaResource);
    }
  }
  Xid xid = new XidImple(_theTransaction.get_uid(), branch, eisName);
  if (theModifier != null)
  {
    try
    {
      xid = theModifier.createXid((XidImple) xid);
    }
    catch (Exception e)
    {
      jtaLogger.i18NLogger.warn_cant_create_xid_of_branch(_theTransaction.get_uid(), branch, eisName, e);
    }
  }
  return xid;
}

代码示例来源:origin: org.jboss.narayana.jta/jta

protected Xid createXid(boolean branch, XAModifier theModifier, XAResource xaResource) throws IOException, ObjectStoreException
{
  int eisName = 0;
  if(branch) {
    if(_xaResourceRecordWrappingPlugin != null) {
      eisName = _xaResourceRecordWrappingPlugin.getEISName(xaResource);
    }
  }
  Xid xid = new XidImple(_theTransaction.get_uid(), branch, eisName);
  if (theModifier != null)
  {
    try
    {
      xid = theModifier.createXid((XidImple) xid);
    }
    catch (Exception e)
    {
      jtaLogger.i18NLogger.warn_cant_create_xid_of_branch(_theTransaction.get_uid(), branch, eisName, e);
    }
  }
  return xid;
}

代码示例来源:origin: org.jboss.narayana.jts/narayana-jts-idlj

protected Xid createXid(boolean branch, XAModifier theModifier, XAResource xaResource) throws IOException, ObjectStoreException
{
  int eisName = 0;
  if(branch) {
    if(_xaResourceRecordWrappingPlugin != null) {
      eisName = _xaResourceRecordWrappingPlugin.getEISName(xaResource);
    }
  }
  Xid xid = new XidImple(_theTransaction.get_uid(), branch, eisName);
  if (theModifier != null)
  {
    try
    {
      xid = theModifier.createXid((XidImple) xid);
    }
    catch (Exception e)
    {
      jtaLogger.i18NLogger.warn_cant_create_xid_of_branch(_theTransaction.get_uid(), branch, eisName, e);
    }
  }
  return xid;
}

代码示例来源:origin: jbosstm/narayana

@Override
protected Xid createXid(boolean branch, XAModifier theModifier, XAResource xaResource) throws IOException, ObjectStoreException
{
  Xid xid = baseXid();
  // We can have subordinate XIDs that can be editted
  if (xid.getFormatId() != XATxConverter.FORMAT_ID)
    return xid;
  Integer eisName = null;
  if(branch) {
    if(_xaResourceRecordWrappingPlugin != null) {
      eisName = _xaResourceRecordWrappingPlugin.getEISName(xaResource);
    }
  }
  xid = new XidImple(xid, branch, eisName);
  if (theModifier != null)
  {
    try
    {
      xid = theModifier.createXid((XidImple) xid);
    }
    catch (Exception e)
    {
      jtaLogger.i18NLogger.warn_cant_create_xid_of_xid(xid, branch, eisName, e);
    }
  }
  return xid;
}

代码示例来源:origin: org.jboss.narayana.jts/narayana-jts-idlj

@Override
protected Xid createXid(boolean branch, XAModifier theModifier, XAResource xaResource) throws IOException, ObjectStoreException
{
  Xid xid = baseXid();
  // We can have subordinate XIDs that can be editted
  if (xid.getFormatId() != XATxConverter.FORMAT_ID)
    return xid;
  Integer eisName = null;
  if(branch) {
    if(_xaResourceRecordWrappingPlugin != null) {
      eisName = _xaResourceRecordWrappingPlugin.getEISName(xaResource);
    }
  }
  xid = new XidImple(xid, branch, eisName);
  if (theModifier != null)
  {
    try
    {
      xid = theModifier.createXid((XidImple) xid);
    }
    catch (Exception e)
    {
      jtaLogger.i18NLogger.warn_cant_create_xid_of_xid(xid, branch, eisName, e);
    }
  }
  return xid;
}

代码示例来源:origin: org.jboss.narayana.jta/jta

@Override
protected Xid createXid(boolean branch, XAModifier theModifier, XAResource xaResource) throws IOException, ObjectStoreException
{
  Xid xid = baseXid();
  // We can have subordinate XIDs that can be editted
  if (xid.getFormatId() != XATxConverter.FORMAT_ID)
    return xid;
  Integer eisName = null;
  if(branch) {
    if(_xaResourceRecordWrappingPlugin != null) {
      eisName = _xaResourceRecordWrappingPlugin.getEISName(xaResource);
    }
  }
  xid = new XidImple(xid, branch, eisName);
  if (theModifier != null)
  {
    try
    {
      xid = theModifier.createXid((XidImple) xid);
    }
    catch (Exception e)
    {
      jtaLogger.i18NLogger.warn_cant_create_xid_of_xid(xid, branch, eisName, e);
    }
  }
  return xid;
}

代码示例来源:origin: jbosstm/narayana

@Override
protected Xid createXid(boolean branch, XAModifier theModifier, XAResource xaResource) throws IOException, ObjectStoreException
{
  Xid xid = baseXid();
  // We can have subordinate XIDs that can be editted
  if (xid.getFormatId() != XATxConverter.FORMAT_ID)
    return xid;
  Integer eisName = null;
  if(branch) {
    if(_xaResourceRecordWrappingPlugin != null) {
      eisName = _xaResourceRecordWrappingPlugin.getEISName(xaResource);
    }
  }
  xid = new XidImple(xid, branch, eisName);
  if (theModifier != null)
  {
    try
    {
      xid = theModifier.createXid((XidImple) xid);
    }
    catch (Exception e)
    {
      jtaLogger.i18NLogger.warn_cant_create_xid_of_xid(xid, branch, eisName, e);
    }
  }
  return xid;
}

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com