Package com.arjuna.ats.arjuna.exceptions

Examples of com.arjuna.ats.arjuna.exceptions.ObjectStoreException


     *         otherwise.
     */

    public boolean reveal_state(Uid u, String tn) throws ObjectStoreException
    {
        throw new ObjectStoreException("Operation not supported by this implementation");
    }
View Full Code Here


     * @return the state of the object.
     */

    public synchronized InputObjectState read_uncommitted(Uid u, String tn) throws ObjectStoreException
    {
        throw new ObjectStoreException("Operation not supported by this implementation");
    }
View Full Code Here

     *         otherwise.
     */

    public synchronized boolean remove_uncommitted(Uid u, String tn) throws ObjectStoreException
    {
        throw new ObjectStoreException("Operation not supported by this implementation");
    }
View Full Code Here

     *         otherwise.
     */

    public synchronized boolean write_uncommitted(Uid u, String tn, OutputObjectState buff) throws ObjectStoreException
    {
        throw new ObjectStoreException("Operation not supported by this implementation");
    }
View Full Code Here

    }

    public void remove() throws ObjectStoreException
    {
        if (!getStore().remove_committed(getSavingUid(), type()))
            throw new ObjectStoreException();
    }
View Full Code Here

        {
          pstmt.setInt(1, ObjectStore.OS_COMMITTED_HIDDEN);
        }
        else
        {
          throw new ObjectStoreException("can't commit object "
              + objUid + " in state " + currState);
        }

        pstmt.setString(2, objUid.stringForm());
        pstmt.setString(3, typeName);
        pstmt.setInt(4, currState);

        int rowcount = pstmt.executeUpdate();

        if (rowcount > 0)
        {
          result = true;
        }
      }
      catch (Throwable e)
      {
        cleanup = false;
        if (retryConnection(e, pool))
        {
          return commit_state(objUid, typeName, tableName);
        }
        else
        {
          throw new ObjectStoreException(e.toString());
        }
      }
      finally
      {
        if (cleanup)
          freePool(pool);
      }
    }
    else
      throw new ObjectStoreException("commit_state - object with uid "
          + objUid + " has no TypeName");

    return result;
  }
View Full Code Here

        {
          hide_state(objUid, typeName, tableName);
        }
        else
        {
          throw new ObjectStoreException(e.toString());
        }
      }
      finally
      {
        if (cleanup)
View Full Code Here

        {
          reveal_state(objUid, typeName, tableName);
        }
        else
        {
          throw new ObjectStoreException(e.toString());
        }
      }
      finally
      {
        if (cleanup)
View Full Code Here

      {
        Uid.nullUid().pack(store);
      }
      catch (IOException e)
      {
        throw new ObjectStoreException(
            "allObjUids - could not pack end of list Uid.");
      }

      state.setBuffer(store.buffer());
View Full Code Here

      {
        store.packString("");
      }
      catch (IOException e)
      {
        throw new ObjectStoreException(tsLogger.arjLoggerI18N.getString("com.arjuna.ats.internal.arjuna.objectstore.packProblem"));
      }

      foundTypes.setBuffer(store.buffer());

      return true;
View Full Code Here

TOP

Related Classes of com.arjuna.ats.arjuna.exceptions.ObjectStoreException

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.