Package com.scooterframework.orm.sqldataexpress.exception

Examples of com.scooterframework.orm.sqldataexpress.exception.LookupFailureException


        catch(Exception ex) {
          String error = "Failed in isColumnInTable method for column \"" +
        columnName + "\" and table \"" + potentialTableName +
        "\" because " + ex.getMessage();
            log.error(error, ex);
            throw new LookupFailureException(error, ex);
        }
       
        return bMatch;
    }
View Full Code Here


                DBStore.getInstance().addFunction(function, f);
            }
        }
       
        if (f == null) {
            throw new LookupFailureException(errorMessage);
        }
        return f;
    }
View Full Code Here

                DBStore.getInstance().addStoredProcedure(storedProcedure, sp);
            }
        }
       
        if (sp == null) {
            throw new LookupFailureException(errorMessage);
        }
        return sp;
    }
View Full Code Here

        if (name == null)
            throw new IllegalArgumentException("SQL statement name is empty.");
       
        String jdbcStatementString = SqlConfig.getInstance().getSql(name);
        if (jdbcStatementString == null || "".equals(jdbcStatementString.trim()))
            throw new LookupFailureException("There is no sql statement for " + name + ".");
       
        return new JdbcStatement(name, jdbcStatementString);
    }
View Full Code Here

              "' with database connection '" + connName + "'" +
              " catalog '" + catalog + "', schema '" + schema + "'.";
            errorMessage += " Reason: " + ex.getMessage() + ".";
           
            log.error("Exception in lookupTableInfo(): " + errorMessage);
            throw new LookupFailureException(errorMessage, ex);
        }
       
        return ti;
    }
View Full Code Here

                throw new SQLException("Unknown table type: " + tableType +
                    ". Supported types are TABLE and VIEW.");
            }
           
            if (ti == null)
                throw new LookupFailureException("Failed to find table info for '" + table + "'.");
        }
        catch (SQLException ex) {
            String errorMessage = "Failed to get meta data info of '" + table +
              "' with database connection '" + connName + "'" +
              " catalog '" + catalog + "', schema '" + schema + "'.";
            errorMessage += " Reason: " + ex.getMessage() + ".";
           
            log.error("Exception in createTableInfo(): " + errorMessage);
            throw new LookupFailureException(errorMessage, ex);
        }
       
        return ti;
    }
View Full Code Here

        catch(LookupFailureException lfEx) {
          throw lfEx;
        }
        catch(Exception ex) {
            errorMessage += " Reason: " + ex.getMessage() + ".";
            throw new LookupFailureException(errorMessage, ex);
        }
        finally {
          DAOUtil.closeConnection(connection);
        }
       
View Full Code Here

                pkNames.add(column);
            }
            if (pkNames.size() > 0) pk = new PrimaryKey(catalog, schema, table, pkNames);
        }
        catch(Exception ex) {
            throw new LookupFailureException(ex);
        }
        finally {
            DAOUtil.closeResultSet(rs);
        }
       
View Full Code Here

TOP

Related Classes of com.scooterframework.orm.sqldataexpress.exception.LookupFailureException

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.