public static QueryByCriteria newQuery(Class classToSearchFrom, Criteria criteria)
    {
        return newQuery(classToSearchFrom, criteria, false);
    }
public static QueryByCriteria newQuery ( Class classToSearchFrom , Criteria criteria ) { return newQuery ( classToSearchFrom , criteria , false ) ; }
Method declaration
@param classToSearchFrom
@param criteria
@return QueryByCriteria