Package com.arjuna.ats.internal.jts.orbspecific

Examples of com.arjuna.ats.internal.jts.orbspecific.CurrentImple


     */

    public static final synchronized int tx_rollback ()
    {
  int toReturn = tx.TX_OK;
  CurrentImple current = OTSImpleManager.current();

  try
  {
      current.rollback();
  }
  catch (NoTransaction e1)
  {
      toReturn = tx.TX_NO_BEGIN;
  }
View Full Code Here


    }
   
    public static final synchronized int tx_commit ()
    {
  int toReturn = tx.TX_OK;
  CurrentImple current = OTSImpleManager.current();
  Boolean report_heuristics = (Boolean) __tx_report_heuristics.get(Thread.currentThread());

  if (report_heuristics == null)
      report_heuristics = new Boolean(true)// default TRUE
     
  try
  {
      boolean when_return = report_heuristics.booleanValue();
   
      current.commit(when_return);
  }
  catch (NoTransaction e1)
  {
      toReturn = tx.TX_NO_BEGIN;
  }
View Full Code Here

    }

    public static final synchronized int tx_set_transaction_timeout (int timeout)
    {
  int toReturn = tx.TX_OK;
  CurrentImple current = OTSImpleManager.current();

  try
  {
      current.set_timeout(timeout);
  }
  catch (Exception e)
  {
      toReturn = tx.TX_FAIL;
  }
View Full Code Here

    }

    public static final synchronized int tx_begin ()
    {
  int toReturn = tx.TX_OK;
  CurrentImple current = OTSImpleManager.current();

  if (!__tx_allow_nesting)
  {
      /*
       * Already have a transaction?
       */

      try
      {
    Control control = current.get_control();

    if (control != null)
    {
        /*
         * Have a transaction already, and not allowed to
         * create nested transactions!
         */

        toReturn = tx.TX_PROTOCOL_ERROR;
        control = null;
    }
      }
      catch (Exception e)
      {
    // something went wrong!

    toReturn = tx.TX_FAIL;
      }
  }

  if (toReturn == tx.TX_OK)
  {
      try
      {
    current.begin();
      }
      catch (Exception e)
      {
    toReturn = tx.TX_FAIL;
      }
View Full Code Here

     */

    public static final synchronized int tx_rollback ()
    {
  int toReturn = tx.TX_OK;
  CurrentImple current = OTSImpleManager.current();

  try
  {
      current.rollback();
  }
  catch (NoTransaction e1)
  {
      toReturn = tx.TX_NO_BEGIN;
  }
View Full Code Here

    }

    public static final synchronized int tx_commit ()
    {
  int toReturn = tx.TX_OK;
  CurrentImple current = OTSImpleManager.current();
  Boolean report_heuristics = (Boolean) __tx_report_heuristics.get(Thread.currentThread());

  if (report_heuristics == null)
      report_heuristics = new Boolean(true)// default TRUE

  try
  {
      boolean when_return = report_heuristics.booleanValue();

      current.commit(when_return);
  }
  catch (NoTransaction e1)
  {
      toReturn = tx.TX_NO_BEGIN;
  }
View Full Code Here

    }

    public static final synchronized int tx_set_transaction_timeout (int timeout)
    {
  int toReturn = tx.TX_OK;
  CurrentImple current = OTSImpleManager.current();

  try
  {
      current.set_timeout(timeout);
  }
  catch (Exception e)
  {
      toReturn = tx.TX_FAIL;
  }
View Full Code Here

    public void terminate ()
    {
  try
  {
      CurrentImple current = OTSImpleManager.current();

      if (current != null)
      {
    Control c = current.suspend();

    c = null;
      }
  }
  catch (Exception e)
View Full Code Here

    {
  if (_currentControl != null)
  {
      try
      {
    CurrentImple current = OTSImpleManager.current();

    if (current != null)
    {
        current.resume(_currentControl);
        current = null;
    }
      }
      catch (Exception e)
      {
View Full Code Here

    protected OTSThread ()
    {
  try
  {
      CurrentImple current = OTSImpleManager.current();

      if (current != null)
      {
    _currentControl = current.get_control();
    current = null;
      }
  }
  catch (Exception e)
  {
View Full Code Here

TOP

Related Classes of com.arjuna.ats.internal.jts.orbspecific.CurrentImple

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.