Package com.arjuna.ats.arjuna.exceptions

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


        if (_objectStoreDir == null)
        {
            _objectStoreDir = arjPropertyManager.getObjectStoreEnvironmentBean().getObjectStoreDir();
            if (_objectStoreDir == null || _objectStoreDir.length() == 0)
                throw new ObjectStoreException("object store location property not set.");

            if (!_objectStoreDir.endsWith(File.separator))
                _objectStoreDir = _objectStoreDir + File.separator;

            /*
 
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(), e);
        }
      }
      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(), e);
        }
      }
      finally
      {
        if (cleanup)
View Full Code Here

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

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

      state.setBuffer(store.buffer());

      store = null;
View Full Code Here

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

      foundTypes.setBuffer(store.buffer());

      return true;
View Full Code Here

        catch (Throwable e)
        {
          if(retryConnection(e, pool)) {
            return read_state(objUid, tName, ft, tableName);
          } else {
            throw new ObjectStoreException(e.toString(), e);
          }
        }
        finally
        {
          try
          {
            rs.close();
          }
          // Ignore
          catch (Exception re) {}
          freePool(pool);
        }
      }
    }
    else
      throw new ObjectStoreException("JDBCImple.read_state - object with uid "+objUid+" has no TypeName");

    return newImage;
  }
View Full Code Here

    boolean result = false;

    int imageSize = (int) state.length();

    if (imageSize > getMaxStateSize())
      throw new ObjectStoreException("Object state is too large - maximum size allowed: " + getMaxStateSize());

    byte[] b = state.buffer();

    if (imageSize > 0 && storeValid())
    {
View Full Code Here

        }

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

            }
            else
                result = true;
        }
        else
            throw new ObjectStoreException(
                    "ShadowStore::commit_state - "
                            + tsLogger.log_mesg
                                    .getString("com.arjuna.ats.internal.arjuna.objectstore.notypenameuid")
                            + objUid);
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.