Package org.jconfig

Examples of org.jconfig.ConfigurationManagerException


    private void closeConnection() throws ConfigurationManagerException {
        try {
            con.close();
        } catch (SQLException e) {
            ErrorReporter.getErrorHandler().reportError("Problem closing database connection.",e);
            throw new ConfigurationManagerException("Problem closing database connection. " + 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(propoid == Long.MIN_VALUE) {
            createNewProperty(catoid, propertyName, propertyValue);
            return storeProperty(catoid, propertyName, propertyValue);
        }
View Full Code Here

            pstmt.setLong(2, propoid);
            pstmt.execute();
            pstmt.close();
        } catch (SQLException e) {
            ErrorReporter.getErrorHandler().reportError(propertyValue + " variable value could not be stored.",e);
            throw new ConfigurationManagerException(propertyValue + " variable value could not be stored." + e.getMessage());
        }
       
    }
View Full Code Here

            pstmt.setLong(3, catoid);
            pstmt.execute();
            pstmt.close();
        } catch (SQLException e) {
            ErrorReporter.getErrorHandler().reportError(propertyValue + " property value could not be stored.",e);
            throw new ConfigurationManagerException(propertyName + " property could not be stored." + e.getMessage());
        }
    }
View Full Code Here

            }
            result.close();
            pstmt.close();
        } catch (SQLException e) {
            ErrorReporter.getErrorHandler().reportError(variableName + " variable value could not be stored.",e);
            throw new ConfigurationManagerException("Problem sotring variable in database. " + e.getMessage());
        }
        if(varoid == Long.MIN_VALUE) {
            createNewVariable(confoid, variableName, variableValue);
            return storeVariable(confoid, variableName, variableValue);
        }
View Full Code Here

            pstmt.setLong(2, varoid);
            pstmt.execute();
            pstmt.close();
        } catch (SQLException e) {
            ErrorReporter.getErrorHandler().reportError(variableValue + " variable value could not be stored.",e);
            throw new ConfigurationManagerException(variableValue + " variable value could not be stored." + e.getMessage());
        }
    }
View Full Code Here

            pstmt.setLong(3, confoid);
            pstmt.execute();
            pstmt.close();
        } catch (SQLException e) {
            ErrorReporter.getErrorHandler().reportError(variableValue + " variable value could not be stored.",e);
            throw new ConfigurationManagerException(variableName + " variable could not be stored." + e.getMessage());
        }
    }
View Full Code Here

            }
            result.close();
            pstmt.close();
        } catch (SQLException e) {
            ErrorReporter.getErrorHandler().reportError("Problem storing category " + categoryName + ". ",e);
            throw new ConfigurationManagerException("Problem storing category " + categoryName + ". " + e.getMessage());
        }
        if(catoid == Long.MIN_VALUE) {
            createNewCategory(confoid, categoryName);
            return storeCategory(confoid, categoryName);
        }
View Full Code Here

            pstmt.setString(2, categoryName);
            pstmt.executeUpdate();
            pstmt.close();
        } catch (SQLException e) {
            ErrorReporter.getErrorHandler().reportError("Problem deleting category " + categoryName + ". ",e);
            throw new ConfigurationManagerException("Problem deleting category " + categoryName + ". " + e.getMessage());
        }
    }
View Full Code Here

            pstmt.setString(2, propertyName);
            pstmt.executeUpdate();
            pstmt.close();
        } catch (SQLException e) {
            ErrorReporter.getErrorHandler().reportError("Problem deleting property " + propertyName + ". ",e);
            throw new ConfigurationManagerException("Problem deleting property " + propertyName + ". " + 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.