public static <T> List<T> queryBeanListSQLKey(
      String poolName, String sqlKey, Class<T> beanType, Object[] params)
      throws SQLStatementNotFoundException, YankSQLException {

    String sql = YANK_POOL_MANAGER.getMergedSqlProperties().getProperty(sqlKey);
    if (sql == null || sql.equalsIgnoreCase("")) {
      throw new SQLStatementNotFoundException();
    } else {
      return queryBeanList(poolName, sql, beanType, params);
    }
  }
public static < T > List < T > queryBeanListSQLKey ( String poolName , String sqlKey , Class < T > beanType , Object [ ] params ) throws SQLStatementNotFoundException , YankSQLException { String sql = YANK_POOL_MANAGER . getMergedSqlProperties ( ) . getProperty ( sqlKey ) ; if ( sql == null || sql . equalsIgnoreCase ( "" ) ) { throw new SQLStatementNotFoundException ( ) ; } else { return queryBeanList ( poolName , sql , beanType , params ) ; } }
Return a List of Beans given a SQL Key using an SQL statement matching the sqlKey String in a
properties file loaded via Yank.addSQLStatements(...).

@param poolName The name of the connection pool to query against
@param sqlKey The SQL Key found in a properties file corresponding to the desired SQL statement
value
@param beanType The Class of the desired return Objects matching the table
@param params The replacement parameters
@return The List of Objects
@throws SQLStatementNotFoundException if an SQL statement could not be found for the given
sqlKey String