Package com.arjuna.ats.arjuna.objectstore

Examples of com.arjuna.ats.arjuna.objectstore.ObjectStore


    Xid[] indoubt = null;

    try
    {
      ObjectStore objStore = new ObjectStore(TxControl.getActionStoreType());
      InputObjectState states = new InputObjectState();

      // only look in the JCA section of the object store

      if (objStore.allObjUids(SubordinateAtomicAction.getType(), states) && (states.notempty()))
      {
        Stack values = new Stack();
        boolean finished = false;

        do
View Full Code Here


  return getTransactions(os, ObjectStore.OS_UNKNOWN);
    }
    public static boolean getTransactions (InputObjectState os, int status)
    {
  ObjectStore store = new ObjectStore(com.arjuna.ats.arjuna.coordinator.TxControl.getActionStoreType());

  try
  {
      return store.allObjUids(com.arjuna.ats.internal.jts.orbspecific.coordinator.ArjunaTransactionImple.typeName(), os, status);
  }
  catch (NullPointerException ex)
  {
  }
  catch (ObjectStoreException e)
View Full Code Here

   
    Xid[] indoubt = null;
   
    try
    {
      ObjectStore objStore = new ObjectStore(TxControl.getActionStoreType());
      InputObjectState states = new InputObjectState();
     
      // only look in the JCA section of the object store

      if (objStore.allObjUids(ServerTransaction.getType(), states) && (states.notempty()))
      {
        Stack values = new Stack();
        boolean finished = false;
       
        do
View Full Code Here

      throw new BAD_PARAM();
    else
    {
      // if here then it is not active, so look in the object store

      ObjectStore store = com.arjuna.ats.arjuna.coordinator.TxControl.getStore();

      try
      {
        /*
         * Do we need to search server transactions too? Possibly not,
         * since an interposed coordinator can never always say with
         * certainty what the status is of the root coordinator.
         */

        int status = store.currentState(u, ArjunaTransactionImple.typeName());

        switch (status)
        {
        case ObjectStore.OS_UNKNOWN: // means no state present, so check
                       // if server transaction
View Full Code Here

      throw new BAD_PARAM();
    else
    {
      // if here then it is not active, so look in the object store

      ObjectStore store = com.arjuna.ats.arjuna.coordinator.TxControl.getStore();

      try
      {
        /*
         * Do we need to search server transactions too? Possibly not,
         * since an interposed coordinator can never always say with
         * certainty what the status is of the root coordinator.
         */

        int status = store.currentState(u, ServerTransaction.typeName());

        switch (status)
        {
        case ObjectStore.OS_UNKNOWN: // means no state present
          return org.omg.CosTransactions.Status.StatusNoTransaction;
View Full Code Here

  }

  private final void setObjectStore()
  {
    if (_objStore == null)
      _objStore = new ObjectStore(null, ""); // interface gets default
  }
View Full Code Here

        }
        else
        {
            String rootStr = (String)provider.getRoots().firstElement();

            _objectStore = new ObjectStore(new ClassName(rootStr));

            _treeModel = new DefaultTreeModel(createTree());
            _tree = new JTree(_treeModel);
            _tree.addTreeSelectionListener(this);
            _tree.addTreeWillExpandListener(this);
View Full Code Here

        String commandAction = e.getActionCommand();

        if ( commandAction != null )
        {
            String objectStoreRoot = (String)_rootCombo.getSelectedItem();
            _objectStore = new ObjectStore(new com.arjuna.ats.arjuna.gandiva.ClassName(objectStoreRoot));
            _treeModel.setRoot(createTree());
        }
    }
View Full Code Here

    }

    boolean restored = false;

    // Set up store
    ObjectStore aaStore = store();

    if (aaStore == null)
      return false;

    try
    {
      // Read object state

      InputObjectState oState = aaStore.read_committed(getSavingUid(), type());

      if (oState != null)
      {
        synchronized (this)
        {
View Full Code Here

    }

    boolean deactivated = false;

    // Set up store
    ObjectStore aaStore = store();

    if (aaStore == null)
      return false;

    try
    {
      // Write object state
      OutputObjectState oState = new OutputObjectState();

      if (save_state(oState, ObjectType.ANDPERSISTENT))
      {
        if (aaStore.write_committed(getSavingUid(), type(), oState))
        {
          deactivated = true;
        }
        else
        {
View Full Code Here

TOP

Related Classes of com.arjuna.ats.arjuna.objectstore.ObjectStore

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.