Package org.smartcomps.twister.common.persistence

Examples of org.smartcomps.twister.common.persistence.FinderException


   * @throws DBSessionException
   * @throws DBSessionException
   */
    public static TwisterProcess getByName(String name, String namespace) throws DBSessionException, FinderException {
        TwisterProcess process = ProcessDAO.findByName(name, namespace);
        if (process == null) throw new FinderException("Could not find a process with name : " + namespace + name);
        return process;
    }
View Full Code Here


   * @throws FinderException
   */
    public static Collection findAllProcessNames() throws DBSessionException, FinderException {
        Collection processes = ProcessDAO.findAll(ProcessImpl.class);
        if(processes.size()==0) {
            throw new FinderException("No process in DB");
        }
        Collection res = new HashSet();
        for (Iterator it = processes.iterator(); it.hasNext();) {
            ProcessImpl process = (ProcessImpl) it.next();
            res.add(process.getNamespace()+process.getName());
View Full Code Here

TOP

Related Classes of org.smartcomps.twister.common.persistence.FinderException

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.