Ignore:
Timestamp:
02/04/10 21:57:54 (2 years ago)
Author:
kasper
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • MetadataBeans/trunk/src/main/java/org/eobjects/metamodel/JdbcDataContextStrategy.java

    r887 r888  
    430430        } 
    431431 
    432         public DataSet executeQuery(Query query) throws MetaModelException { 
     432        public DataSet executeQuery(Query query) throws MetadataBeansException { 
    433433                Statement statement = null; 
    434434                ResultSet resultSet = null; 
     
    484484                                return failoverStrategy.executeQuery(query); 
    485485                        } else { 
    486                                 throw new MetaModelException("Could not execute query", e); 
     486                                throw new MetadataBeansException("Could not execute query", e); 
    487487                        } 
    488488                } 
     
    551551                                } catch (SQLException e) { 
    552552                                        close(resultSet, statement); 
    553                                         throw new MetaModelException(e); 
     553                                        throw new MetadataBeansException(e); 
    554554                                } 
    555555                        } 
    556556 
    557557                        @Override 
    558                         protected MutableSchema getMainSchema() throws MetaModelException { 
     558                        protected MutableSchema getMainSchema() throws MetadataBeansException { 
    559559                                return JdbcDataContextStrategy.this 
    560560                                                .getSchemaByName(getMainSchemaName()); 
     
    562562 
    563563                        @Override 
    564                         protected String getMainSchemaName() throws MetaModelException { 
     564                        protected String getMainSchemaName() throws MetadataBeansException { 
    565565                                return JdbcDataContextStrategy.this.getDefaultSchemaName(); 
    566566                        } 
     
    606606                } catch (SQLException e) { 
    607607                        _log.error("Error retrieving metadata", e); 
    608                         throw new MetaModelException(e); 
     608                        throw new MetadataBeansException(e); 
    609609                } 
    610610 
     
    639639                        return _dataSource.getConnection(); 
    640640                } catch (SQLException e) { 
    641                         throw new MetaModelException("Could not establish connection", e); 
     641                        throw new MetadataBeansException("Could not establish connection", e); 
    642642                } 
    643643        } 
     
    735735        } 
    736736 
    737         public MutableSchema getSchemaByName(String name) throws MetaModelException { 
     737        public MutableSchema getSchemaByName(String name) throws MetadataBeansException { 
    738738                DatabaseMetaData metaData; 
    739739                try { 
    740740                        metaData = getConnection().getMetaData(); 
    741741                } catch (SQLException e) { 
    742                         throw new MetaModelException(e); 
     742                        throw new MetadataBeansException(e); 
    743743                } 
    744744                JdbcSchema schema = new JdbcSchema(name, this); 
     
    751751        } 
    752752 
    753         public String[] getSchemaNames() throws MetaModelException { 
     753        public String[] getSchemaNames() throws MetadataBeansException { 
    754754                try { 
    755755                        DatabaseMetaData metaData = getConnection().getMetaData(); 
     
    786786                        return result.toArray(new String[result.size()]); 
    787787                } catch (SQLException e) { 
    788                         throw new MetaModelException(e); 
     788                        throw new MetadataBeansException(e); 
    789789                } 
    790790        } 
Note: See TracChangeset for help on using the changeset viewer.