Example #1
0
 /** Instantiates a new healthcare site. */
 public HealthcareSite() {
   lazyListHelper = new LazyListHelper();
   lazyListHelper.add(
       InvestigatorGroup.class,
       new BiDirectionalInstantiateFactory<InvestigatorGroup>(
           InvestigatorGroup.class, this, "HealthcareSite", new Class[] {HealthcareSite.class}));
 }
Example #2
0
 /** Instantiates a new research staff. */
 public ResearchStaff() {
   lazyListHelper = new LazyListHelper();
   // register with lazy list helper study site.
   lazyListHelper.add(SiteResearchStaff.class, new SiteResearchStaffFactory(this));
 }
Example #3
0
 /**
  * Gets the site research staffs.
  *
  * @return the site research staffs
  */
 @Transient
 public List<SiteResearchStaff> getSiteResearchStaffs() {
   return lazyListHelper.getLazyList(SiteResearchStaff.class);
 }
Example #4
0
 /**
  * Sets the site research staffs internal.
  *
  * @param researchstaffs the new site research staffs internal
  */
 public void setSiteResearchStaffsInternal(final List<SiteResearchStaff> researchstaffs) {
   lazyListHelper.setInternalList(SiteResearchStaff.class, researchstaffs);
 }
Example #5
0
 /**
  * This method will return a status text for display purpose's.
  *
  * @return the site research staffs internal
  */
 @OneToMany(mappedBy = "researchStaff", fetch = FetchType.LAZY, orphanRemoval = true)
 @Cascade(value = {CascadeType.ALL})
 @Fetch(value = org.hibernate.annotations.FetchMode.SUBSELECT)
 public List<SiteResearchStaff> getSiteResearchStaffsInternal() {
   return lazyListHelper.getInternalList(SiteResearchStaff.class);
 }
Example #6
0
 /**
  * Gets the investigator groups.
  *
  * @return the investigator groups
  */
 @Transient
 public List<InvestigatorGroup> getInvestigatorGroups() {
   return lazyListHelper.getLazyList(InvestigatorGroup.class);
 }
Example #7
0
 /**
  * Gets the investigator groups internal.
  *
  * @return the investigator groups internal
  */
 @OneToMany(mappedBy = "healthcareSite", fetch = FetchType.LAZY, orphanRemoval = true)
 @Cascade(value = {CascadeType.ALL})
 public List<InvestigatorGroup> getInvestigatorGroupsInternal() {
   return lazyListHelper.getInternalList(InvestigatorGroup.class);
 }