Package oracle.jdbc.xa

Examples of oracle.jdbc.xa.OracleXid


   
    public Xid createXid (XidImple xid) throws SQLException, NotImplementedException
    {
  try
  {
      return new OracleXid(xid.getFormatId(), xid.getGlobalTransactionId(),
         xid.getBranchQualifier());
  }
  catch (Exception e)
  {
      throw new SQLException(e.toString());
View Full Code Here


   
    public Xid createXid (XidImple xid) throws SQLException, NotImplementedException
    {
  try
  {
      return new OracleXid(xid.getFormatId(), xid.getGlobalTransactionId(),
         xid.getBranchQualifier());
  }
  catch (Exception e)
  {
      throw new SQLException(e.toString());
View Full Code Here

   
    public Xid createXid (XidImple xid) throws SQLException, NotImplementedException
    {
  try
  {
      return new OracleXid(xid.getFormatId(), xid.getGlobalTransactionId(),
         xid.getBranchQualifier());
  }
  catch (Exception e)
  {
      throw new SQLException(e.toString());
View Full Code Here

        System.arraycopy(globalId, 0, globalTranId, 0, 1);
        System.arraycopy(tempBranchId, 0, branchQualifier, 0, 1);

        // Create the Transaction Id
        // Transaction Id has 3 components
        Xid xid = new OracleXid(0x1234, // Format identifier
                                globalTranId, // Global transaction identifier
                                branchQualifier); // Branch qualifier

        return xid;
    }
View Full Code Here

/*     */
/*     */   public Xid createXid(XidImple xid) throws SQLException, NotImplementedException
/*     */   {
/*     */     try
/*     */     {
/*  85 */       return new OracleXid(xid.getFormatId(), xid.getGlobalTransactionId(), xid.getBranchQualifier());
/*     */     }
/*     */     catch (Exception e)
/*     */     {
/*     */     }
/*  90 */     throw new SQLException(e.toString());
View Full Code Here

   
    public Xid createXid (XidImple xid) throws SQLException, NotImplementedException
    {
  try
  {
      return new OracleXid(xid.getFormatId(), xid.getGlobalTransactionId(),
         xid.getBranchQualifier());
  }
  catch (Exception e)
  {
      throw new SQLException(e.toString());
View Full Code Here

    private OracleXid getOracleXid(Xid xid) throws XAException {
        if (!(xid instanceof OracleXid)) {
            byte[] txctx = (byte[])txctxs.get(xid);
            dataSource.log.debug("txctx is " + txctx);
            OracleXid newXid = new OracleXid(xid.getFormatId(), xid.getGlobalTransactionId(), xid.getBranchQualifier(), txctx);
            return newXid;
        } else {
            return (OracleXid)xid;
        }
    }
View Full Code Here

    public void start(Xid xid, int flags) throws XAException {
        dataSource.log.debug("start" + ":" + xid.getFormatId() + ":" + xid.getGlobalTransactionId() + ":" + xid.getBranchQualifier() + ":" + flags);
        doStart(xid, flags);
        xarsrc = new OracleXAResource(curCon.con);
        OracleXid oXid = getOracleXid(xid);
        xarsrc.start(oXid, flags);
        txctxs.put(xid, oXid.getTxContext());
        curCon = null;
        con = null;
    }
View Full Code Here

TOP

Related Classes of oracle.jdbc.xa.OracleXid

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.