public static < T > T queryBean ( String sql , Class < T > beanType , Object [ ] params ) throws YankSQLException { return queryBean ( YankPoolManager . DEFAULT_POOL_NAME , sql , beanType , params ) ; }
Return just one Bean given an SQL statement . If more than one row match the query only the first row is returned using the default connection pool .