Examples of ObjectAlreadyExistsException


Examples of org.apache.slide.structure.ObjectAlreadyExistsException

    // Object

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

Examples of org.apache.slide.structure.ObjectAlreadyExistsException

    //----------------------------------------
    public void createObject(Uri uri,ObjectNode aObject)
        throws ServiceAccessException, ObjectAlreadyExistsException {
        try {
            if (object.getUri().equals(uri.toString())) {
                throw new ObjectAlreadyExistsException(uri.toString());
            }
            storeObject(uri,aObject);
        } catch(ObjectNotFoundException e) {
            // Never happens
        }
View Full Code Here

Examples of org.apache.slide.structure.ObjectAlreadyExistsException

                    "select * from objects where uri= ?");
            statement.setString(1, uri.toString());
            ResultSet res = statement.executeQuery();
            // Parsing result set
            if (res.next()) {
                throw new ObjectAlreadyExistsException(uri.toString());
            }

            closeStatement(statement);
            statement =
                connection.prepareStatement("insert into objects values(?,?)");
View Full Code Here

Examples of org.apache.slide.structure.ObjectAlreadyExistsException

    //----------------------------------------
    public void createObject(Uri uri,ObjectNode aObject)
        throws ServiceAccessException, ObjectAlreadyExistsException {
        try {
            if (object.getUri().equals(uri.toString())) {
                throw new ObjectAlreadyExistsException(uri.toString());
            }
            storeObject(uri,aObject);
        } catch(ObjectNotFoundException e) {
            // Never happens
        }
View Full Code Here

Examples of org.apache.slide.structure.ObjectAlreadyExistsException

    // Object

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

Examples of org.apache.slide.structure.ObjectAlreadyExistsException

                    "select * from objects where uri= ?");
            statement.setString(1, uri.toString());
            ResultSet res = statement.executeQuery();
            // Parsing result set
            if (res.next()) {
                throw new ObjectAlreadyExistsException(uri.toString());
            }

            closeStatement(statement);
            statement =
                connection.prepareStatement("insert into objects values(?,?)");
View Full Code Here

Examples of org.modeshape.webdav.exceptions.ObjectAlreadyExistsException

        if (t instanceof AccessDeniedException) {
            return new org.modeshape.webdav.exceptions.AccessDeniedException(t.getMessage(), t);
        } else if (t instanceof LoginException) {
            return new org.modeshape.webdav.exceptions.AccessDeniedException(t.getMessage(), t);
        } else if (t instanceof ItemExistsException) {
            return new ObjectAlreadyExistsException(t.getMessage(), t);
        } else if (t instanceof PathNotFoundException) {
            return new ObjectNotFoundException(t.getMessage(), t);
        } else if (t instanceof ItemNotFoundException) {
            return new ObjectNotFoundException(t.getMessage(), t);
        } else if (t instanceof NoSuchWorkspaceException) {
View Full Code Here

Examples of org.mokai.ObjectAlreadyExistsException

    String fixedId = StringUtils.lowerCase(id);
    fixedId = StringUtils.deleteWhitespace(fixedId);

    // check if already exists
    if (applications.containsKey(fixedId)) {
      throw new ObjectAlreadyExistsException("Application with id '" + fixedId + "' already exists");
    }

    log.debug("adding application with id '" + fixedId + "'");

    // create the ConnectorService instance and set the change listener
View Full Code Here

Examples of org.mule.api.store.ObjectAlreadyExistsException

        {
            this.update(this.getInsertQuery(), key, value);
        }
        catch (ObjectStoreException e)
        {
            throw new ObjectAlreadyExistsException(e);
        }
    }
View Full Code Here

Examples of org.mule.api.store.ObjectAlreadyExistsException

            throw new ObjectStoreException(CoreMessages.objectIsNull("key"));
        }

        if (contains(key))
        {
            throw new ObjectAlreadyExistsException();
        }

        doStore(key, value);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.