public org.omg.CORBA.portable.OutputStream _invoke (String $method,
                                org.omg.CORBA.portable.InputStream in,
                                org.omg.CORBA.portable.ResponseHandler $rh)
  {
    org.omg.CORBA.portable.OutputStream out = null;
    java.lang.Integer __method = (java.lang.Integer)_methods.get ($method);
    if (__method == null)
      throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);

    switch (__method.intValue ())
    {
       case 0:  // Beans/GradeService/list
       {
         cn.sdu.edu.middleware.excise2_2.daos.beans.Grade $result[] = null;
         $result = this.list ();
         out = $rh.createReply();
         cn.sdu.edu.middleware.excise2_2.daos.beans.GradesHelper.write (out, $result);
         break;
       }


  // 0Ð*f@	Ñîé
       case 1:  // Beans/GradeService/getGrades
       {
         int examNo = in.read_long ();
         cn.sdu.edu.middleware.excise2_2.daos.beans.Grade $result[] = null;
         $result = this.getGrades (examNo);
         out = $rh.createReply();
         cn.sdu.edu.middleware.excise2_2.daos.beans.GradesHelper.write (out, $result);
         break;
       }


  // 0Ð*fÐèþé
       case 2:  // Beans/GradeService/getGrade
       {
         int examNo = in.read_long ();
         int subjectNo = in.read_long ();
         int $result = (int)0;
         $result = this.getGrade (examNo, subjectNo);
         out = $rh.createReply();
         out.write_long ($result);
         break;
       }


  // 0Ð*f@	Ñîé
       case 3:  // Beans/GradeService/setGrade
       {
         int examNo = in.read_long ();
         int subjectNo = in.read_long ();
         int score = in.read_long ();
         this.setGrade (examNo, subjectNo, score);
         out = $rh.createReply();
         break;
       }

       default:
         throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
    }

    return out;
  } // _invoke