Package org.jdbf.engine.mapping

Examples of org.jdbf.engine.mapping.MappingException


                                "Connection.connectionAdded",dbMap.getName()));
        }
    }
    catch(ClassNotFoundException e){
        logger.throwing(CLASS_NAME,"createConnection()",
                            new MappingException("class.noClassDefFound",dbMap.getDbDriver())
                           );
            throw new MappingException("class.noClassDefFound",dbMap.getDbDriver());
    }
    catch(SQLException e){
        logger.throwing(CLASS_NAME,"createConnection()",
                            new MappingException("mapping.connNotFound",dbMap.getDbServer())
                           );
            throw new MappingException("mapping.connNotFound",dbMap.getDbServer());
    }   
    }
View Full Code Here


    ConnectionSource conn = (ConnectionSource)conns.get(name);
   
    if(conn == null){
   
        logger.throwing(CLASS_NAME,"closeConnection()",
                            new MappingException("mapping.connNotFound",name)
                           );       
            throw new MappingException("mapping.connNotFound",name);
    }
    else
        conn.closeConnection();
    }
View Full Code Here

            ConnectionSource conn = getConnectionSource(nameConn);         
        return conn.getConnection();
    }
    catch(SQLException e){
        logger.throwing(CLASS_NAME,"createConnection()",
                            new MappingException(e)
                           );
            throw new MappingException(e);
           
    }
    }
View Full Code Here

       
        ConnectionSource conn = (ConnectionSource)conns.get(nameConn);

    if(conn == null){
          logger.throwing(CLASS_NAME,"createConnection()",
                            new MappingException("mapping.connNotFound",nameConn)
                           );
            throw new MappingException("mapping.connNotFound",nameConn);
        }
    else
        return conn;
    }
View Full Code Here

 
    logger.log(Level.INFO,Messages.format("ConnectionManager.releaseConn",name));
        ConnectionSource conn = (ConnectionSource)conns.get(name);
    if(conn == null){   
          logger.throwing(CLASS_NAME,"createConnection()",
                            new MappingException("mapping.connNotFound",name)
                           );
            throw new MappingException("mapping.connNotFound",name);
    }
    else
        conn.releaseConnection();
    }
View Full Code Here

        child = (ConfigurationImpl)conf.getConfiguration("dbDriver");
            logger.log(Level.FINEST,"dbDriver " + child.getValue());
        String dbDriver = child.getValue();
        if(dbDriver == null){       
              logger.throwing(CLASS_NAME,"createConnection()",
                            new MappingException("mapping.missingDriver")
                           );
            throw new MappingException(Messages.message("mapping.missingDriver"));
        }
        else
        dbMap.setDbDriver(dbDriver);
     
        child = (ConfigurationImpl)conf.getConfiguration("dbServer");
View Full Code Here

            parser.setContentHandler(builder);
            parser.parse( new InputSource( new InputStreamReader(is) ) );

        }
        catch (IOException except){
            throw new MappingException("mapping.missingDBConf",is.toString());
        }
      catch (SAXException except){
            throw new MappingException(except);
        }

        //return current configuration
        return builder.getConfiguration();
    }
View Full Code Here

        try{
      return build(new FileInputStream( new File(fileName)) );
    }
    catch(FileNotFoundException e){
      throw new MappingException(e);
    }
    }
View Full Code Here

    sqlIface = addSqlInterface(low);
    if (sqlIface != null)
          return sqlIface;

    logger.throwing(CLASS_NAME,"getSqlInterface",
      new MappingException("mapping.sqlIfaceNotFound", name));
    //return null;
    throw new MappingException("mapping.sqlIfaceNotFound", name);

    }
View Full Code Here

        }
     
        }
    catch (ClassNotFoundException e) {
     
      throw new MappingException("class.notFound",name);
            
     
        }
        catch (Exception e) {
     
        throw new MappingException(e);
        }
        return oBean;
    }
View Full Code Here

TOP

Related Classes of org.jdbf.engine.mapping.MappingException

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.