Beispiel #1
0
 public void update(GlbRoleDao attrs) throws RemoteException {
   try {
     this.attrs = attrs;
     dao.update(this.attrs);
   } catch (Exception ex) {
     ex.toString();
   }
 }
Beispiel #2
0
 public void insert(GlbRoleDao attrs) throws RemoteException, DupKeyException {
   try {
     this.attrs = attrs;
     dao.create(this.attrs);
     dao.update(this.attrs);
   } catch (DupKeyException dkex) {
     throw dkex;
   } catch (Exception ex) {
     ex.toString();
   }
 }
 public void update(EnvAspOtherMatrixMethodDao attrs) throws UserException {
   try {
     dao.update(attrs);
   } catch (NamingException ex) {
     ctx.setRollbackOnly();
     throw new UserException("Erro no servidor de nomes.", ex);
   } catch (SQLException ex) {
     ctx.setRollbackOnly();
     throw new UserException("Erro no SQL!", ex);
   }
   this.attrs = attrs;
 }
 public void insert(EnvAspOtherMatrixMethodDao attrs) throws DupKeyException, UserException {
   try {
     this.attrs = attrs;
     dao.create(this.attrs);
     dao.update(this.attrs);
   } catch (DupKeyException ex) {
     ctx.setRollbackOnly();
     throw ex;
   } catch (NamingException ex) {
     ctx.setRollbackOnly();
     throw new UserException("Erro no servidor de nomes.", ex);
   } catch (SQLException ex) {
     ctx.setRollbackOnly();
     throw new UserException("Erro no SQL!", ex);
   }
 }