Example #1
0
 @Transactional
 @Override
 public List<Contenedor> listContenedors() throws BussinesException {
   try {
     return contenedorDao.obtenerTodos();
   } catch (GenericException ex) {
     Logger.getLogger(ContenedorServiceImpl.class.getName()).log(Level.SEVERE, null, ex);
     throw new BussinesException("Error al acceder la Base de Datos");
   }
 }
Example #2
0
 @Transactional
 @Override
 public Contenedor obtenerContenedor(String codigo) throws BussinesException {
   try {
     return contenedorDao.obtenerPorPropiedad("codigo", codigo).get(0);
   } catch (GenericException ex) {
     Logger.getLogger(ContenedorServiceImpl.class.getName()).log(Level.SEVERE, null, ex);
     throw new BussinesException("Error al acceder la Base de Datos");
   }
 }
Example #3
0
 @Transactional
 @Override
 public void modifyContenedor(Contenedor contenedor) throws BussinesException {
   try {
     contenedorDao.modificar(contenedor);
   } catch (GenericException ex) {
     Logger.getLogger(ContenedorServiceImpl.class.getName()).log(Level.SEVERE, null, ex);
     throw new BussinesException("Error al acceder la Base de Datos");
   }
 }