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

Legend:

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

    r887 r888  
    5454 * </ul> 
    5555 */ 
    56 public class MetaModelHelper { 
    57  
    58         private static final Log _log = LogFactory.getLog(MetaModelHelper.class); 
     56public class MetadataBeansHelper { 
     57 
     58        private static final Log _log = LogFactory.getLog(MetadataBeansHelper.class); 
    5959 
    6060        // Prevent instantiation 
    61         private MetaModelHelper() { 
     61        private MetadataBeansHelper() { 
    6262        } 
    6363 
     
    566566         *            the query to execute 
    567567         * @return a row object representing the single row returned from the query 
    568          * @throws MetaModelException 
     568         * @throws MetadataBeansException 
    569569         *             if less or more than one Row is returned from the query 
    570570         */ 
    571571        public static Row executeSingleRowQuery(DataContext dataContext, Query query) 
    572                         throws MetaModelException { 
     572                        throws MetadataBeansException { 
    573573                DataSet dataSet = dataContext.executeQuery(query); 
    574574                boolean next = dataSet.next(); 
    575575                if (!next) { 
    576                         throw new MetaModelException("No rows returned from query: " 
     576                        throw new MetadataBeansException("No rows returned from query: " 
    577577                                        + query); 
    578578                } 
     
    580580                next = dataSet.next(); 
    581581                if (next) { 
    582                         throw new MetaModelException( 
     582                        throw new MetadataBeansException( 
    583583                                        "More than one row returned from query: " + query); 
    584584                } 
Note: See TracChangeset for help on using the changeset viewer.