Exemple #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());
   }
 }
 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);
   }
 }