Package com.sun.sgs.app

Examples of com.sun.sgs.app.ObjectNotFoundException


      context.refs.find((ManagedObject) object));
  if (ref == null) {
      ref = new ManagedReferenceImpl<T>(context, object);
      context.refs.add(ref);
  } else if (ref.isRemoved()) {
      throw new ObjectNotFoundException("Object has been removed");
  }
  if (logger.isLoggable(Level.FINEST)) {
      logger.log(Level.FINEST,
           "getReference tid:{0,number,#}, type:{1}" +
           " returns oid:{2,number,#}",
View Full Code Here


  ManagedReferenceImpl<?> ref = context.refs.find(oid);
  if (ref == null) {
      ref = new ManagedReferenceImpl<ManagedObject>(context, oid);
      context.refs.add(ref);
  } else if (ref.isRemoved()) {
      throw new ObjectNotFoundException("Object has been removed");
  }
  if (logger.isLoggable(Level.FINEST)) {
      logger.log(
    Level.FINEST,
    "getReference tid:{0,number,#}, oid:{1,number,#} returns",
View Full Code Here

      throw new TransactionNotActiveException(
    "Attempt to remove a managed object when its transaction is" +
    " not active");
  case REMOVED_EMPTY:
  case REMOVED_FETCHED:
      throw new ObjectNotFoundException("The object is not found");
  default:
      throw new AssertionError();
  }
    }
View Full Code Here

      throw new TransactionNotActiveException(
    "Attempt to mark a managed object for update when its" +
    " transaction is not active");
  case REMOVED_EMPTY:
  case REMOVED_FETCHED:
      throw new ObjectNotFoundException("The object is not found");
  default:
      throw new AssertionError();
  }
    }
View Full Code Here

        "Attempt to get the object associated with a managed" +
        " reference when its transaction is not active");
    break;
      case REMOVED_EMPTY:
      case REMOVED_FETCHED:
    throw new ObjectNotFoundException("The object is not found");
      default:
    throw new AssertionError();
      }
  } catch (TransactionNotActiveException e) {
      exception = new TransactionNotActiveException(
View Full Code Here

      case NEW:
      case MODIFIED:
    break;
      case REMOVED_EMPTY:
      case REMOVED_FETCHED:
    throw new ObjectNotFoundException("The object is not found");
      default:
    throw new AssertionError();
      }
  } catch (TransactionNotActiveException e) {
      exception = new TransactionNotActiveException(
View Full Code Here

     *    current transaction
     */
     private NodeImpl getForUpdate(DataService dataService) {
  NodeImpl nodeImpl = getNodeForUpdate(dataService, id);
  if (nodeImpl == null) {
      throw new ObjectNotFoundException("node is removed");
  }
  return nodeImpl;
    }
View Full Code Here

    public ManagedObject getServiceBinding(String name) {
  ManagedObject obj = get(name);
  if (obj == null) {
      throw new NameNotBoundException(name);
  } else if (removedObjectsContains(obj)) {
      throw new ObjectNotFoundException(obj.toString());
  }
  return obj;
    }
View Full Code Here

    public ManagedObject getServiceBindingForUpdate(String name) {
  throw new UnsupportedOperationException();
    }
    public void setServiceBinding(String name, Object object) {
  if (removedObjectsContains(object)) {
      throw new ObjectNotFoundException(object.toString());
  } else if (object instanceof ManagedObject &&
       object instanceof Serializable)
  {
      put(name, (ManagedObject) object);
  } else {
View Full Code Here

             object.toString());
      removedObjects.add(object);
  } else {
      System.err.println("removedObject: already present: " +
             object.toString());
      throw new ObjectNotFoundException(object.toString());
  }
    }
View Full Code Here

TOP

Related Classes of com.sun.sgs.app.ObjectNotFoundException

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.