code: public synchronized void setFetchDirection(
              int direction) throws SQLException {
  
          checkClosed();
          checkClosed();
  
          switch (direction) {
  
              case JDBCResultSet.FETCH_FORWARD :
              case JDBCResultSet.FETCH_REVERSE :
              case JDBCResultSet.FETCH_UNKNOWN :
                  fetchDirection = direction;
  
                  break;
              default :
                  throw Util.invalidArgument();
          }
      }
docs: <!-- start generic documentation -->
  Gives the driver a hint as to the direction in which
  rows will be processed in <code>ResultSet</code>
  objects created using this <code>Statement</code> object.  The
  default value is <code>ResultSet.FETCH_FORWARD</code>.
  <P>
  Note that this method sets the default fetch direction for
  result sets generated by this <code>Statement</code> object.
  Each result set has its own methods for getting and setting
  its own fetch direction.
  <!-- end generic documentation -->
  
  <!-- start release-specific documentation -->
  <div class="ReleaseSpecificDocumentation">
  <h3>HSQLDB-Specific Information:</h3> <p>
  
  HSQLDB accepts all valid parameters. <p>
  <!-- end release-specific documentation -->
  
  @param direction the initial direction for processing rows
  @exception SQLException if a database access error occurs,
  this method is called on a closed <code>Statement</code>
  or the given direction
  is not one of <code>ResultSet.FETCH_FORWARD</code>,
  <code>ResultSet.FETCH_REVERSE</code>, or <code>ResultSet.FETCH_UNKNOWN</code>
  @since JDK 1.2 (JDK 1.1.x developers: read the overview
  for JDBCStatement)
  @see #getFetchDirection