FindPaperGeneral Class Reference

Collaboration diagram for FindPaperGeneral:

Collaboration graph
[legend]

List of all members.


Public Member Functions

String getQueryParam (String param)
Long getCount ()
Paper getPaper ()
void setPaper (Paper p)
List< Paper > getPapers ()

Detailed Description

Definition at line 16 of file FindPaperGeneral.java.


Member Function Documentation

String getQueryParam ( String  param  ) 

Definition at line 25 of file FindPaperGeneral.java.

Referenced by FindPaperGeneral.getPapers().

00025                                              {
00026        return _reqGlobals.getRequest().getParameter(param);
00027     }

Long getCount (  ) 

Definition at line 29 of file FindPaperGeneral.java.

00029                           {
00030         return (Long) constructQuery("count").uniqueResult();
00031     }

Paper getPaper (  ) 

Definition at line 35 of file FindPaperGeneral.java.

00035 { return _paper; }

void setPaper ( Paper  p  ) 

Definition at line 36 of file FindPaperGeneral.java.

00036 { _paper = p; }

List<Paper> getPapers (  ) 

Definition at line 38 of file FindPaperGeneral.java.

References FindPaperGeneral.getQueryParam().

00038                                    {
00039         Query q = constructQuery();
00040         // how many results do we want out
00041         q.setMaxResults(Integer.parseInt(getQueryParam("number")));
00042         // execute the query and return the list of results
00043         return q.list();   
00044     }


The documentation for this class was generated from the following file:


Generated on Tue Apr 21 15:55:03 2009 for HepData Web servlets by  doxygen 1.5.5