public static IModelMetaData readDefaultNull(SQL table) throws AdeException {
  final String sql=String.format("select MODEL_INTERNAL_ID from %s where IS_DEFAULT=1 and ANALYSIS_GROUP is null",table);
  final List<Integer> ids=SpecialSqlQueries.executeIntListQuery(sql);
  if (ids.size() != 1) {
    if (ids.isEmpty()) {
      return null;
    }
    if (ids.size() > 1) {
      throw new AdeInternalException("multiple trained models for ANALYSIS_GROUP=null");
    }
  }
  return readMetaData(table,ids.get(0));
}

public static IModelMetaData readDefaultNull ( SQL table ) throws AdeException { final String sql = String . format ( "select MODEL_INTERNAL_ID from %s where IS_DEFAULT=1 and ANALYSIS_GROUP is null" , table ) ; final List < Integer > ids = SpecialSqlQueries . executeIntListQuery ( sql ) ; if ( ids . size ( ) != 1 ) { if ( ids . isEmpty ( ) ) { return null ; } if ( ids . size ( ) > 1 ) { throw new AdeInternalException ( "multiple trained models for ANALYSIS_GROUP=null" ) ; } } return readMetaData ( table , ids . get ( 0 ) ) ; }
readdefaultnull returns the model meta data for all default models where the analysis_group is equal to null . < br > < br > null is returned if there are no models for a null analysis group . < br > < br > a ade internal exception is thrown if there is more than 1 model for a null analysis group .
