code: @SuppressWarnings("unchecked")
      @SafeVarargs
      public final <T> T gett(final Connection conn, final String sql, final StatementSetter statementSetter,
              final JdbcUtil.RecordGetter<T, RuntimeException> recordGetter, JdbcSettings jdbcSettings, final Object... parameters) {
          N.checkArgNotNull(recordGetter, "recordGetter");
  
          final ResultExtractor<T> resultExtractor = new ResultExtractor<T>() {
              @Override
              public T extractData(ResultSet rs, final JdbcSettings jdbcSettings) throws SQLException {
                  int offset = jdbcSettings.getOffset();
  
                  if (offset > 0) {
                      JdbcUtil.skip(rs, offset);
                  }
  
                  T result = null;
  
                  if (rs.next()) {
                      result = Objects.requireNonNull(recordGetter.apply(rs));
  
                      if (rs.next()) {
                          throw new DuplicatedResultException("More than one records found by sql: " + sql);
                      }
                  }
  
                  return result;
              }
          };
  
          return query(conn, sql, statementSetter, resultExtractor, jdbcSettings, parameters);
      }
docs: v
  @param conn
  @param sql
  @param statementSetter
  @param recordGetter
  @param jdbcSettings
  @param parameters
  @return
  @throws DuplicatedResultException if two or more records are found.