T5DbDemo Class Reference

Collaboration diagram for T5DbDemo:

Collaboration graph
[legend]

List of all members.


Public Member Functions

Paper getPaper ()
void setPaper (Paper p)
List< Paper > getPapers ()
Dataset getDataset ()
void setDataset (Dataset d)
SortedSet< Dataset > getDatasets ()

Detailed Description

Definition at line 13 of file T5DbDemo.java.


Member Function Documentation

Paper getPaper (  ) 

Definition at line 20 of file T5DbDemo.java.

00020 { return _paper; }

void setPaper ( Paper  p  ) 

Definition at line 21 of file T5DbDemo.java.

00021 { _paper = p; }

List<Paper> getPapers (  ) 

Definition at line 23 of file T5DbDemo.java.

00023                                    {
00024         Criteria c = _session.createCriteria(Paper.class);
00025         c.setMaxResults(2);
00026         return c.list();
00027     }

Dataset getDataset (  ) 

Definition at line 31 of file T5DbDemo.java.

00031 { return _dataset; }

void setDataset ( Dataset  d  ) 

Definition at line 32 of file T5DbDemo.java.

00032 { _dataset = d; }

SortedSet<Dataset> getDatasets (  ) 

Definition at line 34 of file T5DbDemo.java.

00034                                             {
00035         return _paper.getDatasets();
00036     }


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


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