Examples of DuplicateName


Examples of org.omg.PortableInterceptor.ORBInitInfoPackage.DuplicateName

        }
        else
        {
            if (named_client_interceptors.containsKey(interceptor.name()))
            {
                throw new DuplicateName(interceptor.name());
            }

            named_client_interceptors.put(interceptor.name(), interceptor);
        }
    }
View Full Code Here

Examples of org.omg.PortableInterceptor.ORBInitInfoPackage.DuplicateName

    private void checkInterceptorName(Interceptor interceptor) throws DuplicateName
    {
        if (interceptor.name() == null)
        {
            throw new DuplicateName("the name is null");
        }
    }
View Full Code Here

Examples of org.omg.PortableInterceptor.ORBInitInfoPackage.DuplicateName

        }
        else
        {
            if (named_ior_interceptors.containsKey(interceptor.name()))
            {
                throw new DuplicateName(interceptor.name());
            }

            named_ior_interceptors.put(interceptor.name(), interceptor);
        }
    }
View Full Code Here

Examples of org.omg.PortableInterceptor.ORBInitInfoPackage.DuplicateName

        }
        else
        {
            if (named_server_interceptors.containsKey(interceptor.name()))
            {
                throw new DuplicateName(interceptor.name());
            }

            named_server_interceptors.put(interceptor.name(), interceptor);
        }
    }
View Full Code Here

Examples of org.snippr.business.exceptions.DuplicateName

    @Override
    @Transactional
    public void save() throws DuplicateName {
        if (snippetCode.getId() == null && snippetCodeDAO.exists(snippetCode)) {
            throw new DuplicateName();
        }
        if (!snippetCode.getCode().isEmpty()) {
            snippetCodeDAO.save(snippetCode);
        }
    }
View Full Code Here

Examples of org.snippr.business.exceptions.DuplicateName

    @Override
    @Transactional
    public void save() throws DuplicateName {
        if (snippet.getId() == null && snippetDAO.exists(snippet)) {
            throw new DuplicateName();
        }
        // Both title and description are required
        if (!snippet.getTitle().isEmpty()
                && !snippet.getDescription().isEmpty()) {
            snippetDAO.save(snippet);
View Full Code Here

Examples of org.snippr.business.exceptions.DuplicateName

        snippet.setTitle("New Snippet, please fill it.");
        snippet.setDescription("Add a description here.");
        snippet.setUser(user);
        snippet.setLabel(label);
        if (snippetDAO.exists(snippet)) {
            throw new DuplicateName();
        }
        snippetDAO.save(snippet);
    }
View Full Code Here

Examples of org.snippr.business.exceptions.DuplicateName

        User user = userDAO.getCurrentUser();
        Label label = new Label();
        label.setName("<No name>");
        label.setUser(user);
        if (labelDAO.exists(label)) {
            throw new DuplicateName();
        }
        labelDAO.save(label);
    }
View Full Code Here

Examples of org.snippr.business.exceptions.DuplicateName

    @Override
    @Transactional
    public void save() throws DuplicateName {
        if (label.getId() == null && labelDAO.exists(label)) {
            throw new DuplicateName();
        }
        if (!label.getName().isEmpty()) {
            labelDAO.save(label);
        }
    }
View Full Code Here

Examples of org.snippr.business.exceptions.DuplicateName

    @Override
    @Transactional
    public void save() throws DuplicateName {
        if (comment.getId() == null && commentDAO.exists(comment)) {
            throw new DuplicateName();
        }
        commentDAO.save(comment);
    }
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.