Пример #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());
   }
 }
Пример #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();
   }
 }
Пример #3
0
 public Collection listAll() throws RemoteException {
   try {
     return dao.listAll();
   } catch (Exception ex) {
     throw new RemoteException(ex.toString());
   }
 }
Пример #4
0
 public void delete(GlbRoleDao attrs) throws RemoteException {
   try {
     this.attrs = attrs;
     dao.remove(attrs);
   } catch (Exception ex) {
     ex.toString();
   }
 }
Пример #5
0
 public void update(GlbRoleDao attrs) throws RemoteException {
   try {
     this.attrs = attrs;
     dao.update(this.attrs);
   } catch (Exception ex) {
     ex.toString();
   }
 }
Пример #6
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());
   }
 }
Пример #7
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());
   }
 }
Пример #8
0
 public void ejbRemove() throws RemoteException {
   dao.close();
   dao = null;
 }