@SafeVarargs
    public final <T> List<T> list(final Class<T> targetClass, final String sql, Object... parameters) {
        final DataSet rs = query(targetClass, sql, 0, Integer.MAX_VALUE, parameters);

        if (N.isNullOrEmpty(rs)) {
            return new ArrayList<>();
        } else {
            return rs.toList(targetClass);
        }
    }
@ SafeVarargs public final < T > List < T > list ( final Class < T > targetClass , final String sql , Object ... parameters ) { final DataSet rs = query ( targetClass , sql , 0 , Integer . MAX_VALUE , parameters ) ; if ( N . isNullOrEmpty ( rs ) ) { return new ArrayList < > ( ) ; } else { return rs . toList ( targetClass ) ; } }
Find the records from database with the specified <code>sql, parameters</code>,
and convert result to a list of the specified <code>targetClass</code>.

@param targetClass an entity class with getter/setter methods.
@param sql set <code>offset</code> and <code>limit</code> in sql with format:
<li><code>SELECT * FROM account where id = ? LIMIT <i>offsetValue</i>, <i>limitValue</i></code></li>
<br>or limit only:</br>
<li><code>SELECT * FROM account where id = ? LIMIT <i>limitValue</i></code></li>
@param parameters A Object Array/List, and Map/Entity with getter/setter methods for parameterized sql with named parameters
@return