Ejemplo n.º 1
0
 /**
  * Update an existing Localization
  *
  * @author Adelina
  * @param Localization
  * @throws BusinessException
  */
 public void update(Localization locale) throws BusinessException {
   logger.debug("Updating Localization BL - START");
   try {
     localizationDao.update(locale);
   } catch (Exception e) {
     throw new BusinessException(ICodeException.LOCALIZATION_UPDATE, e);
   }
   logger.debug("Updating Localization BL - END");
   logger.debug("Localization updated, id:".concat(String.valueOf(locale.getLocalizationId())));
 }
Ejemplo n.º 2
0
 /**
  * Add a Localization
  *
  * @author Adelina
  * @throws BusinessException
  */
 public void add(Localization locale) throws BusinessException {
   logger.debug("Add Localization BL - START");
   try {
     localizationDao.add(locale);
   } catch (Exception e) {
     throw new BusinessException(ICodeException.LOCALIZATION_ADD, e);
   }
   logger.debug("Add Localization BL - END");
   logger.debug(
       "Localization added"
           .concat(" with id=")
           .concat(String.valueOf(locale.getLocalizationId())));
 }