コード例 #1
0
 @Override
 public void createBluetoothDwell(BluetoothDwell entry) {
   try {
     em.persist(entry);
   } catch (javax.validation.ConstraintViolationException err) {
     logger.error(err.getConstraintViolations().toString());
   } catch (javax.ejb.EJBException err) {
     Throwable cause = err.getCause();
     if (cause instanceof ConstraintViolationException) {
       logger.error(((ConstraintViolationException) cause).getConstraintViolations().toString());
     }
   } catch (Exception err) {
     logger.error(null, err);
   }
 }
コード例 #2
0
 @Override
 public void updateBluetoothFileSendSummary(BluetoothFileSendSummary entry) {
   try {
     em.merge(entry);
   } catch (javax.validation.ConstraintViolationException err) {
     logger.error(err.getConstraintViolations().toString());
   } catch (javax.ejb.EJBException err) {
     Throwable cause = err.getCause();
     if (cause instanceof ConstraintViolationException) {
       logger.error(((ConstraintViolationException) cause).getConstraintViolations().toString());
     } else {
       logger.error(null, err);
     }
   } catch (Exception err) {
     logger.error(null, err);
   }
 }