コード例 #1
0
 public void setOfficeManager(org.openxava.test.model.IClerk newClerk) throws RemoteException {
   if (newClerk != null && !(newClerk instanceof org.openxava.test.model.Clerk)) {
     throw new IllegalArgumentException(XavaResources.getString("ejb_to_pojo_illegal"));
   }
   this.officeManager = newClerk;
   this.officeManager_number = newClerk == null ? null : new Integer(newClerk.getNumber());
 }
コード例 #2
0
 public org.openxava.test.model.IClerk getOfficeManager() {
   if (officeManager != null) {
     // Because not-found='ignore' annul lazy initialization, we simulate it
     try {
       officeManager.toString();
     } catch (Exception ex) {
       return null;
     }
   }
   return officeManager;
 }