Package org.apache.oodt.cas.filemgr.structs.exceptions

Examples of org.apache.oodt.cas.filemgr.structs.exceptions.ValidationLayerException


            return XmlRpcStructFactory.getXmlRpcElement(element);
        } catch (Exception e) {
            e.printStackTrace();
            LOG.log(Level.SEVERE, "exception retrieving element by id: ["
                    + elementId + "]: Message: " + e.getMessage());
            throw new ValidationLayerException(e.getMessage());
        }
    }
View Full Code Here


            return XmlRpcStructFactory.getXmlRpcElement(element);
        } catch (Exception e) {
            e.printStackTrace();
            LOG.log(Level.SEVERE, "exception retrieving element by name: ["
                    + elementName + "]: Message: " + e.getMessage());
            throw new ValidationLayerException(e.getMessage());
        }
    }
View Full Code Here

            } catch (SQLException e2) {
                LOG.log(Level.SEVERE,
                        "Unable to rollback addElement transaction. Message: "
                                + e2.getMessage());
            }
            throw new ValidationLayerException(e.getMessage());
        } finally {

            if (rs != null) {
                try {
                    rs.close();
View Full Code Here

            } catch (SQLException e2) {
                LOG.log(Level.SEVERE,
                        "Unable to rollback modifyElement transaction. Message: "
                                + e2.getMessage());
            }
            throw new ValidationLayerException(e.getMessage());
        } finally {

            if (statement != null) {
                try {
                    statement.close();
View Full Code Here

            } catch (SQLException e2) {
                LOG.log(Level.SEVERE,
                        "Unable to rollback removeElement transaction. Message: "
                                + e2.getMessage());
            }
            throw new ValidationLayerException(e.getMessage());
        } finally {
            if (statement != null) {
                try {
                    statement.close();
                } catch (SQLException ignore) {
View Full Code Here

            } catch (SQLException e2) {
                LOG.log(Level.SEVERE,
                        "Unable to rollback addElementToProductType transaction. Message: "
                                + e2.getMessage());
            }
            throw new ValidationLayerException(e.getMessage());
        } finally {
            if (statement != null) {
                try {
                    statement.close();
                } catch (SQLException ignore) {
View Full Code Here

            } catch (SQLException e2) {
                LOG.log(Level.SEVERE,
                        "Unable to rollback removeElementFromProductType transaction. Message: "
                                + e2.getMessage());
            }
            throw new ValidationLayerException(e.getMessage());
        } finally {
            if (statement != null) {
                try {
                    statement.close();
                } catch (SQLException ignore) {
View Full Code Here

            } catch (SQLException e2) {
                LOG.log(Level.SEVERE,
                        "Unable to rollback addParentToProductType transaction. Message: "
                                + e2.getMessage());
            }
            throw new ValidationLayerException(e.getMessage());
        } finally {
            if (statement != null) {
                try {
                    statement.close();
                } catch (SQLException ignore) {
View Full Code Here

            } catch (SQLException e2) {
                LOG.log(Level.SEVERE,
                        "Unable to rollback removeParentFromProductType transaction. Message: "
                                + e2.getMessage());
            }
            throw new ValidationLayerException(e.getMessage());
        } finally {
            if (statement != null) {
                try {
                    statement.close();
                } catch (SQLException ignore) {
View Full Code Here

            } catch (Exception e) {
                e.printStackTrace();
                LOG.log(Level.WARNING, "Exception reading elements. Message: "
                        + e.getMessage());
                throw new ValidationLayerException(e.getMessage());
            } finally {

                if (rs != null) {
                    try {
                        rs.close();
                    } catch (SQLException ignore) {
                    }

                    rs = null;
                }

                if (statement != null) {
                    try {
                        statement.close();
                    } catch (SQLException ignore) {
                    }

                    statement = null;
                }

                if (conn != null) {
                    try {
                        conn.close();

                    } catch (SQLException ignore) {
                    }

                    conn = null;
                }
            }

            // advance to the product parent
            try {
                conn = dataSource.getConnection();
                statement = conn.createStatement();

                String getParentSql = "SELECT parent_id from sub_to_super_map where product_type_id = ";
                if (quoteFields) {
                    getParentSql += "'" + currProduct + "'";
                } else {
                    getParentSql += currProduct;
                }

                LOG.log(Level.FINE, "getElements: Executing: " + getParentSql);
                rs = statement.executeQuery(getParentSql);

                currProduct = null;
                while (rs.next()) {
                    currProduct = DbStructFactory.getParent(rs);
                }

            } catch (Exception e) {
                e.printStackTrace();
                LOG.log(Level.WARNING,
                        "Exception reading product parent. Message: "
                                + e.getMessage());
                throw new ValidationLayerException(e.getMessage());
            } finally {
                if (rs != null) {
                    try {
                        rs.close();
                    } catch (SQLException ignore) {
View Full Code Here

TOP

Related Classes of org.apache.oodt.cas.filemgr.structs.exceptions.ValidationLayerException

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.