- Timestamp:
- 02/04/10 21:57:54 (2 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
MetadataBeans/trunk/src/main/java/org/eobjects/metamodel/MetadataBeansHelper.java
r887 r888 54 54 * </ul> 55 55 */ 56 public class Meta ModelHelper {57 58 private static final Log _log = LogFactory.getLog(Meta ModelHelper.class);56 public class MetadataBeansHelper { 57 58 private static final Log _log = LogFactory.getLog(MetadataBeansHelper.class); 59 59 60 60 // Prevent instantiation 61 private Meta ModelHelper() {61 private MetadataBeansHelper() { 62 62 } 63 63 … … 566 566 * the query to execute 567 567 * @return a row object representing the single row returned from the query 568 * @throws Meta ModelException568 * @throws MetadataBeansException 569 569 * if less or more than one Row is returned from the query 570 570 */ 571 571 public static Row executeSingleRowQuery(DataContext dataContext, Query query) 572 throws Meta ModelException {572 throws MetadataBeansException { 573 573 DataSet dataSet = dataContext.executeQuery(query); 574 574 boolean next = dataSet.next(); 575 575 if (!next) { 576 throw new Meta ModelException("No rows returned from query: "576 throw new MetadataBeansException("No rows returned from query: " 577 577 + query); 578 578 } … … 580 580 next = dataSet.next(); 581 581 if (next) { 582 throw new Meta ModelException(582 throw new MetadataBeansException( 583 583 "More than one row returned from query: " + query); 584 584 }
Note: See TracChangeset
for help on using the changeset viewer.
