Beispiel #1
0
 public void findByPrimaryKey(GlbRoleDao attrs) throws RemoteException, FinderException {
   try {
     dao.findByPrimaryKey((Object) attrs);
     this.attrs = (GlbRoleDao) dao.load((Object) attrs);
   } catch (Exception ex) {
     throw new FinderException(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 findByPrimaryKey(EnvAspOtherMatrixMethodDao attrs)
     throws RowNotFoundException, UserException {
   try {
     dao.findByPrimaryKey((Object) attrs);
     this.attrs = (EnvAspOtherMatrixMethodDao) dao.load(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);
   }
 }
Beispiel #4
0
 public Collection listAll() throws RemoteException {
   try {
     return dao.listAll();
   } catch (Exception ex) {
     throw new RemoteException(ex.toString());
   }
 }
 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);
   }
 }
Beispiel #6
0
 public void delete(GlbRoleDao attrs) throws RemoteException {
   try {
     this.attrs = attrs;
     dao.remove(attrs);
   } catch (Exception ex) {
     ex.toString();
   }
 }
Beispiel #7
0
 public void update(GlbRoleDao attrs) throws RemoteException {
   try {
     this.attrs = attrs;
     dao.update(this.attrs);
   } catch (Exception ex) {
     ex.toString();
   }
 }
Beispiel #8
0
 public Collection find(GlbRoleDao attrs)
     throws RemoteException, FinderException, RowNotFoundException {
   try {
     return dao.find((Object) attrs);
   } catch (RowNotFoundException rnfex) {
     throw rnfex;
   } catch (Exception ex) {
     throw new FinderException(ex.toString());
   }
 }
 public Collection findExact(EnvAspOtherMatrixMethodDao attrs)
     throws FinderException, RowNotFoundException {
   try {
     return dao.findExact((Object) attrs);
   } catch (RowNotFoundException rnfex) {
     throw rnfex;
   } catch (Exception ex) {
     throw new FinderException(ex.toString());
   }
 }
Beispiel #10
0
 public void findNext(GlbRoleDao attrs)
     throws RemoteException, FinderException, RowNotFoundException {
   try {
     dao.findNextKey((Object) attrs);
     this.attrs = attrs;
   } catch (RowNotFoundException rnfex) {
     throw rnfex;
   } catch (Exception ex) {
     throw new FinderException(ex.toString());
   }
 }
 public void findPrev(EnvAspOtherMatrixMethodDao attrs)
     throws FinderException, RowNotFoundException {
   try {
     dao.findPrevKey((Object) attrs);
     this.attrs = attrs;
   } catch (RowNotFoundException rnfex) {
     throw rnfex;
   } catch (Exception ex) {
     throw new FinderException(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 Collection listAll() throws RowNotFoundException, UserException {
   try {
     return dao.listAll();
   } catch (RowNotFoundException 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);
   }
 }
 public void delete(EnvAspOtherMatrixMethodDao attrs)
     throws ConstraintViolatedException, UserException {
   try {
     this.attrs = attrs;
     dao.remove(attrs);
   } catch (ConstraintViolatedException 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);
   }
 }
Beispiel #15
0
 public void ejbRemove() throws RemoteException {
   dao.close();
   dao = null;
 }