Package net.sourceforge.jivalo.cnfmgr.configuration

Examples of net.sourceforge.jivalo.cnfmgr.configuration.ConfigurationException


            Constructor c = Thread.currentThread().getContextClassLoader().loadClass(dataAccessImplementation).
                getConstructor(new Class[] {String.class});
            return (ConfigurationDAO) c.newInstance(new String[] {resourceName});
        }
        catch (Exception e) {
            throw new ConfigurationException(getClass().getName(),
                "Error instantiating the data object", e);
        }
    }
View Full Code Here


                Types.INTEGER);
            Vector v = client.executeSqlQuery(sql, parameters, resourceName);
            return new Boolean(v.size() > 0);
        }
        catch (Exception e) {
            throw new ConfigurationException(getClass().getName(),
                                             "Error in testing existence", e);
        }
    }
View Full Code Here

                Types.BOOLEAN);

            client.executeSql(insertName, parameters, resourceName);
        }
        catch (Exception e) {
            throw new ConfigurationException(getClass().getName(),
                                             "Error in storing node", e);
        }
    }
View Full Code Here

                String orphanName = (String) i.next();
                removeNode(isUserNode, orphanName);
            }
        }
        catch (Exception e) {
            throw new ConfigurationException(getClass().getName(),
                                             "Error in storing nodes", e);
        }
    }
View Full Code Here

            }
           
            return loadEntries(isUserNode, nodeName);
        }
        catch (Exception e) {
            throw new ConfigurationException(getClass().getName(),
                                             "Error in storing entries", e);
        }
    }
View Full Code Here

            entries.put("ix", list);
           
            return entries;
        }
        catch (Exception e) {
            throw new ConfigurationException(getClass().getName(),
                                             "Error in loading entries", e);
        }
    }
View Full Code Here

            }

            return childrenNames;
        }
        catch (Exception e) {
            throw new ConfigurationException(getClass().getName(),
                                             "Error in loading children names",
                                             e);
        }
    }
View Full Code Here

                Types.INTEGER)
            }
                , resourceName);
        }
        catch (Exception e) {
            throw new ConfigurationException(getClass().getName(),
                                             "Error in removing node.", e);
        }
    }
View Full Code Here

            Constructor c = Class.forName(dataAccessImplementation).
                getConstructor(new Class[] {String.class});
            return (ConfigurationDAO) c.newInstance(new String[] {resourceName});
        }
        catch (Exception e) {
            throw new ConfigurationException(getClass().getName(),
                "Error instantiating the data object", e);
        }
    }
View Full Code Here

     * @return parent absolute path and node relative path names.
     */
    protected String[] split(String nodeName) throws ConfigurationException {
        int index = nodeName.lastIndexOf("/");
        if (index < 0) {
            throw new ConfigurationException(getClass().getName(),
                "The node name must be absolute path: " + nodeName);
        }
        if (nodeName.equals("/")) { // root node
            return new String[] {
                EMPTY_STRING, EMPTY_STRING};
        }

        if (index == nodeName.length() - 1) {
            throw new ConfigurationException(getClass().getName(),
                "The node name must not end with /: " + nodeName);
        }

        String parentName = nodeName.substring(0, index);
        if (parentName.length() == 0) {
View Full Code Here

TOP

Related Classes of net.sourceforge.jivalo.cnfmgr.configuration.ConfigurationException

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.