Changeset 888 for MetadataBeans/trunk/src/main/java/org/eobjects/metamodel/CompositeDataContextStrategy.java
- Timestamp:
- 02/04/10 21:57:54 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
MetadataBeans/trunk/src/main/java/org/eobjects/metamodel/CompositeDataContextStrategy.java
r887 r888 41 41 } 42 42 43 public DataSet executeQuery(Query query) throws Meta ModelException {43 public DataSet executeQuery(Query query) throws MetadataBeansException { 44 44 Set<DataContext> dataContexts = new HashSet<DataContext>(); 45 45 List<FromItem> items = query.getFromClause().getItems(); 46 46 for (FromItem item : items) { 47 List<FromItem> tableFromItems = Meta ModelHelper47 List<FromItem> tableFromItems = MetadataBeansHelper 48 48 .getTableFromItems(item); 49 49 for (FromItem fromItem : tableFromItems) { … … 56 56 57 57 if (dataContexts.isEmpty()) { 58 throw new Meta ModelException(58 throw new MetadataBeansException( 59 59 "No suiting delegate DataContext to execute query: " 60 60 + query); … … 76 76 77 77 @Override 78 protected String getMainSchemaName() throws Meta ModelException {78 protected String getMainSchemaName() throws MetadataBeansException { 79 79 throw new UnsupportedOperationException( 80 80 "Use CompositeDataContextStrategy for exploring the schema"); … … 83 83 @Override 84 84 protected MutableSchema getMainSchema() 85 throws Meta ModelException {85 throws MetadataBeansException { 86 86 throw new UnsupportedOperationException( 87 87 "Use CompositeDataContextStrategy for exploring the schema"); … … 112 112 } 113 113 114 public String getDefaultSchemaName() throws Meta ModelException {114 public String getDefaultSchemaName() throws MetadataBeansException { 115 115 for (DataContext dc : _delegates) { 116 116 Schema schema = dc.getDefaultSchema(); … … 122 122 } 123 123 124 public Schema getSchemaByName(String name) throws Meta ModelException {124 public Schema getSchemaByName(String name) throws MetadataBeansException { 125 125 CompositeSchema compositeSchema = _compositeSchemas.get(name); 126 126 if (compositeSchema != null) { … … 149 149 } 150 150 151 public String[] getSchemaNames() throws Meta ModelException {151 public String[] getSchemaNames() throws MetadataBeansException { 152 152 Set<String> set = new HashSet<String>(); 153 153 for (DataContext dc : _delegates) {
Note: See TracChangeset
for help on using the changeset viewer.
