10 Replies Latest reply: Mar 9, 2012 12:51 PM by cyberanto RSS

    How to pass parameters to List objects?

    Qingxin Yi Newbie

      I have a DocumentDbList class for my datatable.  In the class I have:

       

      @Override

      public String getEjbql() {

          return "select documentDb from DocumentDb documentDb";

      }

       

      This gives me the data of whole table.  However I need to be able to show only the data that has studentId equal to certain number.  How do I pass the parameter studentId in DocumentDbList class?

       

      Thanks,

      Jenny