code: @Override
    public final <T> Integer evalRowCountByQuery(
      final Map<String, Object> pAddParam, final Class<T> pEntityClass,
        final String pQuery) throws Exception {
      if (pQuery == null) {
        throw new ExceptionWithCode(ExceptionWithCode.WRONG_PARAMETER,
          "param_null_not_accepted");
      }
      return getSrvDatabase().evalIntegerResult(pQuery, "TOTALROWS");
    }
docs: <p>Calculate total rows for pagination by custom query.</p>
  @param <T> - type of business object,
  @param pAddParam additional param
  @param pEntityClass entity class
  @param pQuery not null custom query with named TOTALROWS
  @return Integer row count
  @throws Exception - an exception