Package org.jconfig

Examples of org.jconfig.ConfigurationManagerException


            pstmt.setLong(1, varoid);
            pstmt.executeUpdate();
            pstmt.close();
        } catch (SQLException e) {
            ErrorReporter.getErrorHandler().reportError("Problem deleting variable " + variableName + ". ",e);
            throw new ConfigurationManagerException("Problem deleting variable " + variableName + ". " + e.getMessage());
        }
    }
View Full Code Here


            pstmt.setLong(2, confoid);
            pstmt.execute();
            pstmt.close();
        } catch (SQLException e) {
            ErrorReporter.getErrorHandler().reportError("Problem storing category " + categoryName + ". ",e);
            throw new ConfigurationManagerException(categoryName + " category could not be stored." + e.getMessage());
        }
    }
View Full Code Here

            }
            result.close();
            pstmt.close();
        } catch (SQLException e) {
            ErrorReporter.getErrorHandler().reportError("Problem storing configuration in database.",e);
            throw new ConfigurationManagerException("Problem storing configuration in database. " + e.getMessage());
        }
        if(oid == Long.MIN_VALUE) {
            createNewConfiguration(configurationName);
            return storeConfiguration(configurationName);
        }
View Full Code Here

            pstmt.setString(1, configurationName);
            pstmt.execute();
            pstmt.close();
        } catch (SQLException e) {
            ErrorReporter.getErrorHandler().reportError("Problem storing configuration in database.",e);
            throw new ConfigurationManagerException(configurationName + " configuration could not be stored." + e.getMessage());
        }
    }
View Full Code Here

        return (String[]) allCategories.toArray(new String[0]);
    }


  public Configuration load(String configurationName, ConfigurationParser parser) throws ConfigurationManagerException {
    throw new ConfigurationManagerException("Using a specific parser with this handler is not supported");
  }
View Full Code Here

            String dbName = new ResourceLocator("configDB").getFile().getAbsolutePath();
            return DriverManager.getConnection("jdbc:hsqldb:"+ dbName,"sa","");
        }
        catch (Exception e) {
            ErrorReporter.getErrorHandler().reportError("Cannot load the jdbc driver", e);
            throw new ConfigurationManagerException("Cannot load the jdbc driver:"+e.getMessage());
        }   
    }
View Full Code Here

TOP

Related Classes of org.jconfig.ConfigurationManagerException

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.