Exemplo n.º 1
0
 private String processCreate(String parameter) {
   if (parameter != null) {
     Item create = newItemDao.create(new Item(parameter, parameter, null));
     return "create: " + create.toString();
   }
   return null;
 }
Exemplo n.º 2
0
 private String processGet(String parameter) {
   if (parameter != null) {
     try {
       Item read = newItemDao.read(Long.valueOf(parameter));
       if (read != null) return "get: " + read.toString();
     } catch (Exception e) {
       e.printStackTrace();
     }
   }
   return null;
 }