Package org.apache.slide.structure

Examples of org.apache.slide.structure.ObjectNotFoundException


            os = rm.writeResource(txId, loadPath);
            save(os);
            registeredForSaving = false;
        } catch (ResourceManagerException e) {
            if (e.getStatus() == ResourceManagerException.ERR_NO_SUCH_RESOURCE) {
                throw new ObjectNotFoundException(uri);
            } else {
                store.throwInternalError(e, uri);
            }
        } catch (IOException e) {
            store.throwInternalError(e);
View Full Code Here


            rm.deleteResource(txId, loadPath, false);
            object = null;
            registeredForSaving = false; // do not save what is no longer there
        } catch (ResourceManagerException e) {
            if (e.getStatus() == ResourceManagerException.ERR_NO_SUCH_RESOURCE) {
                throw new ObjectNotFoundException(uri.toString());
            } else {
                store.throwInternalError(e, uri);
            }
        }
    }
View Full Code Here

            store.throwInternalError(je, uri);
        } catch (IOException ioe) {
            store.throwInternalError(ioe, uri);
        } catch (ResourceManagerException e) {
            if (e.getStatus() == ResourceManagerException.ERR_NO_SUCH_RESOURCE) {
                throw new ObjectNotFoundException(uri);
            } else {
                store.throwInternalError(e, uri);
            }
        } finally {
            try {
View Full Code Here

      debug("retrieveObject {0}", uri);
      ObjectNode node = (ObjectNode)get(uri.toString());
      if (node != null) {
         return node;
      } else {
         throw new ObjectNotFoundException(uri);
      }
   }
View Full Code Here

    }

    public void storeObject(Connection connection, Uri uri, ObjectNode object)
        throws ObjectNotFoundException, ServiceAccessException {
        if (!storeObject(connection, uri, object, false))
            throw new ObjectNotFoundException(uri.toString());
    }
View Full Code Here

                statement.setString(1, uri.toString());
                res = statement.executeQuery();
                if (res.next()) {
                    className = res.getString(1);
                } else {
                    throw new ObjectNotFoundException(uri);
                }
            } finally {
                close(statement, res);
            }
View Full Code Here

    //----------------------------------------
    public ObjectNode retrieveObject(Uri uri)
        throws ServiceAccessException, ObjectNotFoundException {
        // System.out.println("----------- AbstractUriProperties retrieveObject uri="+uri+" object="+object);
        if (object == null) {
            throw new ObjectNotFoundException(uri);
        }
        // System.out.println("----------- AbstractUriProperties retrieveObject uri="+uri+" object="+object);
        return object.cloneObject();
    }
View Full Code Here

            if (res.next()) {
                // Retrieving and loading the object
                className = res.getString(OBJECTS_CLASS);
            } else {
                // Object was not found ...
                throw new ObjectNotFoundException(uri);
            }

            closeStatement(statement);

            // Then, retrieve the children
View Full Code Here

            ResultSet res = statement.executeQuery();

            // Parsing result set

            if (!res.next()) {
                throw new ObjectNotFoundException(uri);
            }

            closeStatement(statement);

            // Updating children
View Full Code Here

        String parentUri = String.valueOf(new UriPath(strUri).parent());
        try {
            NodeRevisionDescriptor parentNrd =
                retrieve(token, retrieve(token, parentUri));
            if (isLockNull(parentNrd)) {
                throw new ObjectNotFoundException(parentUri);
            }
        }
        catch (RevisionDescriptorNotFoundException e) {
            throw new ObjectNotFoundException(parentUri);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.slide.structure.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.