code: public void setFetchDirection(int direction) throws SQLException {
  
          checkClosed();
  
          switch (direction) {
  
              case FETCH_FORWARD : {
                  break;
              }
              case FETCH_REVERSE : {
                  checkNotForwardOnly();
  
                  break;
              }
              case FETCH_UNKNOWN : {
                  checkNotForwardOnly();
  
                  break;
              }
              default : {
                  throw Util.notSupported();
              }
          }
      }
docs: <!-- start generic documentation -->
  Gives a hint as to the direction in which the rows in this
  <code>ResultSet</code> object will be processed.
  The initial value is determined by the
  <code>Statement</code> object
  that produced this <code>ResultSet</code> object.
  The fetch direction may be changed at any time.
  <!-- end generic documentation -->
  
  <!-- start release-specific documentation -->
  <div class="ReleaseSpecificDocumentation">
  <h3>HSQLDB-Specific Information:</h3> <p>
  
  HSQLDB does not need this hint. However, as mandated by the JDBC standard,
  an SQLException is thrown if the result set type is TYPE_FORWARD_ONLY
  and a fetch direction other than FETCH_FORWARD is requested. <p>
  </div>
  <!-- end release-specific documentation -->
  
  @param direction an <code>int</code> specifying the suggested
  fetch direction; one of <code>ResultSet.FETCH_FORWARD</code>,
  <code>ResultSet.FETCH_REVERSE</code>, or
  <code>ResultSet.FETCH_UNKNOWN</code>
  @exception SQLException if a database access error occurs; this
  method is called on a closed result set or
  the result set type is <code>TYPE_FORWARD_ONLY</code> and the fetch
  direction is not <code>FETCH_FORWARD</code>
  @since JDK 1.2 (JDK 1.1.x developers: read the overview for
  JDBCResultSet)
  @see JDBCStatement#setFetchDirection
  @see #getFetchDirection