Exemplo n.º 1
0
 /**
  * Returns a Scheme entity class
  *
  * @param id:Entity class ID
  * @return
  */
 public Scheme getScheme(int id) {
   return schemeDAO.getScheme(id);
 }
Exemplo n.º 2
0
 /**
  * Returns a Scheme entity class
  *
  * @param schemeName: Returns the name of a "schemeName" programme
  * @return
  */
 public Scheme getScheme(String schemeName) {
   return schemeDAO.getScheme(schemeName);
 }
Exemplo n.º 3
0
 /**
  * Put a Scheme data stored in the database
  *
  * @param scheme: implementation class, storage object
  * @return
  */
 public boolean add(Scheme scheme) {
   schemeDAO.save(scheme);
   return true;
 }