public void setLdap(java.lang.Boolean ldap) { if (! _loaded ) errorIfUnloaded(); this.ldap = (java.lang.Boolean) ldap; } protected java.lang.String email = null;
@Override public void setVersion(Integer version) { if (! _loaded ) errorIfUnloaded(); this.version = version; }
/** * setter for groupExperimenterMap should be avoided. Does not fulfill normal semantics. */ protected void setGroupExperimenterMap(java.util.List<ome.model.meta.GroupExperimenterMap> groupExperimenterMap) { if (! _loaded ) errorIfUnloaded(); this.groupExperimenterMap = groupExperimenterMap; } /**
public void setOmeName(java.lang.String omeName) { if (! _loaded ) errorIfUnloaded(); this.omeName = (java.lang.String) omeName; } protected java.lang.String firstName = null;
public void setLastName(java.lang.String lastName) { if (! _loaded ) errorIfUnloaded(); this.lastName = (java.lang.String) lastName; } protected java.lang.String institution = null;
/** * returns the size of groupExperimenterMap. If less than zero, the Set was null. */ public int sizeOfGroupExperimenterMap() { if (! _loaded ) errorIfUnloaded(); return this.groupExperimenterMap == null ? -1 : this.groupExperimenterMap.size(); }
/** * returns the size of annotationLinks. If less than zero, the Set was null. */ public int sizeOfAnnotationLinks() { if (! _loaded ) errorIfUnloaded(); return this.annotationLinks == null ? -1 : this.annotationLinks.size(); }
/** * Simple field ome.model.meta.Experimenter.ldap (java.lang.Boolean) */ // No @Type annotation // Not indexed @javax.persistence.Column(columnDefinition="", nullable=false, unique=false, name="ldap", updatable=true) public java.lang.Boolean getLdap() { if (! _loaded ) errorIfUnloaded(); return this.ldap; }
/** * Simple field ome.model.meta.Experimenter.firstName (java.lang.String) */ // No @Type annotation @org.hibernate.search.annotations.Fields({ @org.hibernate.search.annotations.Field(index = org.hibernate.search.annotations.Index.TOKENIZED), @org.hibernate.search.annotations.Field(index = org.hibernate.search.annotations.Index.TOKENIZED, name="combined_fields") }) @javax.persistence.Column(columnDefinition="", nullable=false, unique=false, name="firstName", updatable=true) public java.lang.String getFirstName() { if (! _loaded ) errorIfUnloaded(); return this.firstName; }
/** * unlinks all ome.model.meta.ExperimenterGroup instances from this instance. */ public void unlinkExperimenterGroup (ome.model.meta.ExperimenterGroup removal) { if (! _loaded ) errorIfUnloaded(); java.util.Set<ome.model.meta.GroupExperimenterMap> toRemove = findGroupExperimenterMap( removal ); java.util.Iterator<ome.model.meta.GroupExperimenterMap> it = toRemove.iterator(); while ( it.hasNext() ) { removeGroupExperimenterMap( it.next(), true ); } }
/** * unlinks all ome.model.annotations.Annotation instances from this instance. */ public void unlinkAnnotation (ome.model.annotations.Annotation removal) { if (! _loaded ) errorIfUnloaded(); java.util.Set<ome.model.annotations.ExperimenterAnnotationLink> toRemove = findExperimenterAnnotationLink( removal ); java.util.Iterator<ome.model.annotations.ExperimenterAnnotationLink> it = toRemove.iterator(); while ( it.hasNext() ) { removeExperimenterAnnotationLink( it.next(), true ); } }
/** * clears the set. */ public void clearAnnotationLinks() { if (! _loaded ) errorIfUnloaded(); java.util.List<ome.model.annotations.ExperimenterAnnotationLink> list = new java.util.ArrayList<ome.model.annotations.ExperimenterAnnotationLink>( getAnnotationLinks() ); for (ome.model.annotations.ExperimenterAnnotationLink link : list) { removeExperimenterAnnotationLink( link, true ); } }
/** * Adds a ome.model.annotations.ExperimenterAnnotationLink to annotationLinks, allowing for recursion -- whether * or not addExperimenterAnnotationLink will be called on the addition <b>if it is loaded</b> */ public void addExperimenterAnnotationLink (ome.model.annotations.ExperimenterAnnotationLink link, boolean bothSides) { if (! _loaded ) errorIfUnloaded(); if ( getAnnotationLinks() == null ) { throwNullCollectionException("AnnotationLinks"); } getAnnotationLinks().add( link ); }
/** * removes the given ExperimenterAnnotationLink from annotationLinks, allowing for recursion -- whether * or not the removal will call unlinkExperimenter again <b>if loaded</b>. */ public void removeExperimenterAnnotationLink (ome.model.annotations.ExperimenterAnnotationLink link, boolean bothSides) { if (! _loaded ) errorIfUnloaded(); if ( getAnnotationLinks() == null ) { throwNullCollectionException("AnnotationLinks"); } getAnnotationLinks().remove( link ); }
/** * Gets the ome.model.meta.GroupExperimenterMap at the given index. */ public ome.model.meta.GroupExperimenterMap getGroupExperimenterMap(int index) throws IndexOutOfBoundsException { if (! _loaded ) errorIfUnloaded(); if (getGroupExperimenterMap() == null) { throwNullCollectionException("GroupExperimenterMap"); } return getGroupExperimenterMap().get(index); }
/** * should be used rather than accessing the annotationLinks set directly. * This method will never return null, but rather will return an instance * of {@link ome.util.EmptyIterator}. To test for a null collection, * see of {@link #sizeOfAnnotationLinks()} is less than zero. */ public java.util.Iterator<ome.model.annotations.ExperimenterAnnotationLink> iterateAnnotationLinks() { if (! _loaded ) errorIfUnloaded(); if ( getAnnotationLinks() == null ) { return new ome.util.EmptyIterator<ome.model.annotations.ExperimenterAnnotationLink>(); } return getAnnotationLinks().iterator(); // TODO should this be direct access }
/** * removes a single element from this set and makes the inverse call on ome.model.annotations.ExperimenterAnnotationLink */ public void removeExperimenterAnnotationLink(ome.model.annotations.ExperimenterAnnotationLink target) { if (! _loaded ) errorIfUnloaded(); if (getAnnotationLinks() == null) { throwNullCollectionException("AnnotationLinks"); } getAnnotationLinks().remove( target ); target.setParent ( null ); }
/** * Adds a ome.model.annotations.ExperimenterAnnotationLink to annotationLinks . This entails changing our annotationLinks Set, * creating a new ome.model.annotations.ExperimenterAnnotationLink and calling linkAnnotation on the ome.model.annotations.Annotation. */ public ome.model.annotations.ExperimenterAnnotationLink linkAnnotation (ome.model.annotations.Annotation addition) { if (! _loaded ) errorIfUnloaded(); // Setup link ome.model.annotations.ExperimenterAnnotationLink link = new ome.model.annotations.ExperimenterAnnotationLink(); link.link( this, addition ); // Add it to us and possibly the other side. addExperimenterAnnotationLink( link, true ); return link; }
/** * Adds a ome.model.meta.GroupExperimenterMap to groupExperimenterMap, allowing for recursion -- whether * or not addGroupExperimenterMap will be called on the addition <b>if it is loaded</b> */ public void addGroupExperimenterMap (ome.model.meta.GroupExperimenterMap link, boolean bothSides) { if (! _loaded ) errorIfUnloaded(); if ( getGroupExperimenterMap() == null ) { throwNullCollectionException("GroupExperimenterMap"); } getGroupExperimenterMap().add( link ); if ( bothSides && link.parent().isLoaded() ) { link.parent().addGroupExperimenterMap( link, false ); } }
/** * removes the given GroupExperimenterMap from groupExperimenterMap, allowing for recursion -- whether * or not the removal will call unlinkExperimenter again <b>if loaded</b>. */ public void removeGroupExperimenterMap (ome.model.meta.GroupExperimenterMap link, boolean bothSides) { if (! _loaded ) errorIfUnloaded(); if ( getGroupExperimenterMap() == null ) { throwNullCollectionException("GroupExperimenterMap"); } getGroupExperimenterMap().remove( link ); if ( bothSides && link.parent().isLoaded() ) { link.parent().removeGroupExperimenterMap( link, false ); } }