public ome.model.acquisition.LightPathExcitationFilterLink newInstance() { return new ome.model.acquisition.LightPathExcitationFilterLink(); }
@Override public void setVersion(Integer version) { if (! _loaded ) errorIfUnloaded(); this.version = version; }
public ome.model.acquisition.Filter child() { return (ome.model.acquisition.Filter) getChild(); }
@Override public Object retrieve(String field) { if (field == null) { return null; } else if (field.equals(ID)) { return getId(); } else if (field.equals(VERSION)) { return getVersion(); } else if (field.equals(PARENT)) { return getParent(); } else if (field.equals(CHILD)) { return getChild(); } else if (field.equals(DETAILS)) { return getDetails(); } else { if (_dynamicFields != null) { return _dynamicFields.get(field); } return null; } }
/** * removes a single element from this set and makes the inverse call on ome.model.acquisition.LightPathExcitationFilterLink */ public void removeLightPathExcitationFilterLink(ome.model.acquisition.LightPathExcitationFilterLink target) { if (! _loaded ) errorIfUnloaded(); if (getExcitationFilterLink() == null) { throwNullCollectionException("ExcitationFilterLink"); } getExcitationFilterLink().remove( target ); if (target.isLoaded()) { target.setParent ( null ); } }
/** * Main constructor. */ public LightPathExcitationFilterLink (Long id, boolean loaded) { setId(id); if (loaded) { getDetails().setContext(this); } else { if (this.id == null) { throw new ApiUsageException("Id cannot be null for a proxy"); } unload(); } }
/** * Adds a ome.model.acquisition.LightPathExcitationFilterLink to excitationFilterLink . This entails changing our excitationFilterLink Set, * creating a new ome.model.acquisition.LightPathExcitationFilterLink and calling linkExcitationFilter on the ome.model.acquisition.Filter. */ public ome.model.acquisition.LightPathExcitationFilterLink linkExcitationFilter (ome.model.acquisition.Filter addition) { if (! _loaded ) errorIfUnloaded(); // Setup link ome.model.acquisition.LightPathExcitationFilterLink link = new ome.model.acquisition.LightPathExcitationFilterLink(); link.link( this, addition ); // Add it to us and possibly the other side. addLightPathExcitationFilterLink( link, true ); return link; }
public ome.model.acquisition.LightPath parent() { return (ome.model.acquisition.LightPath) getParent(); }
/** * find all ome.model.acquisition.LightPathExcitationFilterLink which have the argument as their child. */ public java.util.Set<ome.model.acquisition.LightPathExcitationFilterLink> findLightPathExcitationFilterLink( ome.model.acquisition.Filter target ) { if (! _loaded ) errorIfUnloaded(); final java.util.Iterator<ome.model.acquisition.LightPathExcitationFilterLink> it = iterateExcitationFilterLink(); final java.util.Set<ome.model.acquisition.LightPathExcitationFilterLink> result = new java.util.HashSet<ome.model.acquisition.LightPathExcitationFilterLink>(); while ( it.hasNext() ) { ome.model.acquisition.LightPathExcitationFilterLink link = it.next(); if ( link.child() == target ) { result.add( link ); } } return result; }
/** * use like removeLightPathExcitationFilterLink */ public void removeLightPathExcitationFilterLinkSet(java.util.Collection<ome.model.acquisition.LightPathExcitationFilterLink> targets ) { if (! _loaded ) errorIfUnloaded(); if (getExcitationFilterLink() == null) { throwNullCollectionException("ExcitationFilterLink"); } getExcitationFilterLink().removeAll( targets ); java.util.Iterator<ome.model.acquisition.LightPathExcitationFilterLink> it = targets.iterator(); while ( it.hasNext() ) { ome.model.acquisition.LightPathExcitationFilterLink target = it.next(); if (target.isLoaded()) { target.setParent ( null ); } } }
/** * use like addLightPathExcitationFilterLink. */ public void addLightPathExcitationFilterLinkSet(java.util.Collection<ome.model.acquisition.LightPathExcitationFilterLink> targets) { if (! _loaded ) errorIfUnloaded(); if (getExcitationFilterLink() == null) { throwNullCollectionException("ExcitationFilterLink"); } getExcitationFilterLink().addAll( targets ); java.util.Iterator<ome.model.acquisition.LightPathExcitationFilterLink> it = targets.iterator(); while ( it.hasNext() ) { ome.model.acquisition.LightPathExcitationFilterLink target = it.next(); // If this relationship is not ordered, then we will // "attempt" the setting even if it is loaded. if (target != null) { if (target.isLoaded()) { target.setParent ( this ); } } } }
public void setParent(IObject parent) { if (! _loaded ) errorIfUnloaded(); this.parent = parent; } protected IObject child = null;
public ome.model.acquisition.LightPathExcitationFilterLink proxy() { return new ome.model.acquisition.LightPathExcitationFilterLink(this.id, false); }
/** * use instead of setExcitationFilterLink . Makes the necessary * call on ome.model.acquisition.LightPathExcitationFilterLink as well. */ public void addLightPathExcitationFilterLink(ome.model.acquisition.LightPathExcitationFilterLink target) { if (! _loaded ) errorIfUnloaded(); if (getExcitationFilterLink() == null) { throwNullCollectionException("ExcitationFilterLink"); } getExcitationFilterLink().add( target ); // If this relationship is not ordered, then we will // "attempt" the setting even if it is loaded. if (target != null) { if (target.isLoaded()) { target.setParent ( this ); } } }
public void setChild(IObject child) { if (! _loaded ) errorIfUnloaded(); this.child = child; } protected ome.model.internal.Details details = new Details();
/** * Sets the ome.model.acquisition.LightPathExcitationFilterLink at the given index. Adheres to the {@link java.util.List#set(int, Object)} * contract. To extend the list, use {@link #addLightPathExcitationFilterLink(LightPathExcitationFilterLink)}. * @see java.util.List#set(int, Object) */ public ome.model.acquisition.LightPathExcitationFilterLink setLightPathExcitationFilterLink(int index, ome.model.acquisition.LightPathExcitationFilterLink element) throws IndexOutOfBoundsException { if (! _loaded ) errorIfUnloaded(); if (getExcitationFilterLink() == null) { throwNullCollectionException("ExcitationFilterLink"); } ome.model.acquisition.LightPathExcitationFilterLink old = getExcitationFilterLink().set(index, element); // If this relationship is not ordered, then we will // "attempt" the setting even if it is loaded. if (element != null) { if (element.isLoaded()) { element.setParent ( this ); } } return old; }
/** * Use the {@link ome.model.internal.Details#copy(ome.model.internal.Details)} * or {@link ome.model.internal.Details#shallowCopy(ome.model.internal.Details)} * methods to set the {@link Details} instance instead. */ protected void setDetails(ome.model.internal.Details details) { if (! _loaded ) errorIfUnloaded(); this.details = (Details) details; }
/** * This version number is controlled by the database for optimisitic * locking. */ @javax.persistence.Column(name="version") // @javax.persistence.Version //TODO mark off #118 if this succeeds, otherwise, completely remove versions and test updateEvent @Override public Integer getVersion() { if (! _loaded ) errorIfUnloaded(); return this.version; }
/** * Many-to-one field ome.model.acquisition.LightPathExcitationFilterLink.parent (ome.model.acquisition.LightPath) */ @javax.persistence.ManyToOne(fetch = javax.persistence.FetchType.LAZY, cascade = {javax.persistence.CascadeType.MERGE, javax.persistence.CascadeType.PERSIST, javax.persistence.CascadeType.REFRESH}, targetEntity = ome.model.acquisition.LightPath.class) @org.hibernate.annotations.Cascade({org.hibernate.annotations.CascadeType.LOCK, org.hibernate.annotations.CascadeType.MERGE, org.hibernate.annotations.CascadeType.PERSIST, org.hibernate.annotations.CascadeType.REPLICATE, org.hibernate.annotations.CascadeType.REFRESH, org.hibernate.annotations.CascadeType.SAVE_UPDATE, org.hibernate.annotations.CascadeType.EVICT}) @javax.persistence.JoinColumn(name="parent", nullable=false, unique=false, insertable=false, updatable=false) @org.hibernate.annotations.ForeignKey(name="FKlightpathexcitationfilterlink_parent_lightpath") @org.hibernate.annotations.Target(ome.model.acquisition.LightPath.class) public IObject getParent() { if (! _loaded ) errorIfUnloaded(); return this.parent; }
/** * Many-to-one field ome.model.acquisition.LightPathExcitationFilterLink.child (ome.model.acquisition.Filter) */ @javax.persistence.ManyToOne(fetch = javax.persistence.FetchType.LAZY, cascade = {javax.persistence.CascadeType.MERGE, javax.persistence.CascadeType.PERSIST, javax.persistence.CascadeType.REFRESH}, targetEntity = ome.model.acquisition.Filter.class) @org.hibernate.annotations.Cascade({org.hibernate.annotations.CascadeType.LOCK, org.hibernate.annotations.CascadeType.MERGE, org.hibernate.annotations.CascadeType.PERSIST, org.hibernate.annotations.CascadeType.REPLICATE, org.hibernate.annotations.CascadeType.REFRESH, org.hibernate.annotations.CascadeType.SAVE_UPDATE, org.hibernate.annotations.CascadeType.EVICT}) @javax.persistence.JoinColumn(name="child", nullable=false, unique=false, insertable=true, updatable=true) @org.hibernate.annotations.ForeignKey(name="FKlightpathexcitationfilterlink_child_filter") @org.hibernate.annotations.Target(ome.model.acquisition.Filter.class) public IObject getChild() { if (! _loaded ) errorIfUnloaded(); return this.child; }