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/CompositeDataContextStrategy.java

    r887 r888  
    4141        } 
    4242 
    43         public DataSet executeQuery(Query query) throws MetaModelException { 
     43        public DataSet executeQuery(Query query) throws MetadataBeansException { 
    4444                Set<DataContext> dataContexts = new HashSet<DataContext>(); 
    4545                List<FromItem> items = query.getFromClause().getItems(); 
    4646                for (FromItem item : items) { 
    47                         List<FromItem> tableFromItems = MetaModelHelper 
     47                        List<FromItem> tableFromItems = MetadataBeansHelper 
    4848                                        .getTableFromItems(item); 
    4949                        for (FromItem fromItem : tableFromItems) { 
     
    5656 
    5757                if (dataContexts.isEmpty()) { 
    58                         throw new MetaModelException( 
     58                        throw new MetadataBeansException( 
    5959                                        "No suiting delegate DataContext to execute query: " 
    6060                                                        + query); 
     
    7676 
    7777                                @Override 
    78                                 protected String getMainSchemaName() throws MetaModelException { 
     78                                protected String getMainSchemaName() throws MetadataBeansException { 
    7979                                        throw new UnsupportedOperationException( 
    8080                                                        "Use CompositeDataContextStrategy for exploring the schema"); 
     
    8383                                @Override 
    8484                                protected MutableSchema getMainSchema() 
    85                                                 throws MetaModelException { 
     85                                                throws MetadataBeansException { 
    8686                                        throw new UnsupportedOperationException( 
    8787                                                        "Use CompositeDataContextStrategy for exploring the schema"); 
     
    112112        } 
    113113 
    114         public String getDefaultSchemaName() throws MetaModelException { 
     114        public String getDefaultSchemaName() throws MetadataBeansException { 
    115115                for (DataContext dc : _delegates) { 
    116116                        Schema schema = dc.getDefaultSchema(); 
     
    122122        } 
    123123 
    124         public Schema getSchemaByName(String name) throws MetaModelException { 
     124        public Schema getSchemaByName(String name) throws MetadataBeansException { 
    125125                CompositeSchema compositeSchema = _compositeSchemas.get(name); 
    126126                if (compositeSchema != null) { 
     
    149149        } 
    150150 
    151         public String[] getSchemaNames() throws MetaModelException { 
     151        public String[] getSchemaNames() throws MetadataBeansException { 
    152152                Set<String> set = new HashSet<String>(); 
    153153                for (DataContext dc : _delegates) { 
Note: See TracChangeset for help on using the changeset viewer.