public void setSerialNumber(java.lang.String serialNumber) { if (! _loaded ) errorIfUnloaded(); this.serialNumber = (java.lang.String) serialNumber; } protected ome.model.acquisition.Instrument instrument = null;
/** * setter for annotationLinks should be avoided. Does not fulfill normal semantics. */ protected void setAnnotationLinks(java.util.Set<ome.model.annotations.DichroicAnnotationLink> annotationLinks) { if (! _loaded ) errorIfUnloaded(); this.annotationLinks = annotationLinks; } /**
public void setModel(java.lang.String model) { if (! _loaded ) errorIfUnloaded(); this.model = (java.lang.String) model; } protected java.lang.String lotNumber = null;
public void setInstrument(ome.model.acquisition.Instrument instrument) { if (! _loaded ) errorIfUnloaded(); this.instrument = instrument; } protected java.util.Set<ome.model.annotations.DichroicAnnotationLink> annotationLinks = new java.util.HashSet<ome.model.annotations.DichroicAnnotationLink>();
/** * 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; }
@Override public void setVersion(Integer version) { if (! _loaded ) errorIfUnloaded(); this.version = version; }
public void setManufacturer(java.lang.String manufacturer) { if (! _loaded ) errorIfUnloaded(); this.manufacturer = (java.lang.String) manufacturer; } protected java.lang.String model = null;
public void setLotNumber(java.lang.String lotNumber) { if (! _loaded ) errorIfUnloaded(); this.lotNumber = (java.lang.String) lotNumber; } protected java.lang.String serialNumber = null;
/** * 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; }
/** * 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.acquisition.Dichroic.manufacturer (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=true, unique=false, name="manufacturer", updatable=true) public java.lang.String getManufacturer() { if (! _loaded ) errorIfUnloaded(); return this.manufacturer; }
/** * produces a {@link java.util.List}-copy of the underlying collection. Unlike, * {@link #linkedAnnotationIterator()}, while using the returned {@link java.util.List}, * modifications can be made to the underlying collection without throwing * {@link java.util.ConcurrentModificationException}. */ public java.util.List<ome.model.annotations.Annotation> linkedAnnotationList() { if (! _loaded ) errorIfUnloaded(); java.util.Iterator<ome.model.annotations.Annotation> it = linkedAnnotationIterator(); java.util.List<ome.model.annotations.Annotation> list = new java.util.ArrayList<ome.model.annotations.Annotation>(); while ( it.hasNext() ) { list.add( it.next() ); } return list; }
/** * find all ome.model.annotations.DichroicAnnotationLink which have the argument as their child. */ public java.util.Set<ome.model.annotations.DichroicAnnotationLink> findDichroicAnnotationLink( ome.model.annotations.Annotation target ) { if (! _loaded ) errorIfUnloaded(); final java.util.Iterator<ome.model.annotations.DichroicAnnotationLink> it = iterateAnnotationLinks(); final java.util.Set<ome.model.annotations.DichroicAnnotationLink> result = new java.util.HashSet<ome.model.annotations.DichroicAnnotationLink>(); while ( it.hasNext() ) { ome.model.annotations.DichroicAnnotationLink link = it.next(); if ( link.child() == target ) { result.add( link ); } } return result; }
/** * Many-to-one field ome.model.acquisition.Dichroic.instrument (ome.model.acquisition.Instrument) */ @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.Instrument.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="instrument", nullable=false, unique=false, insertable=true, updatable=true) @org.hibernate.annotations.ForeignKey(name="FKdichroic_instrument_instrument") public ome.model.acquisition.Instrument getInstrument() { if (! _loaded ) errorIfUnloaded(); return this.instrument; }
/** * Returns an unmodifiable collection-view */ public java.util.Collection<ome.model.annotations.DichroicAnnotationLink> unmodifiableAnnotationLinks() { if (! _loaded ) errorIfUnloaded(); if ( getAnnotationLinks() == null ) { return java.util.Collections.emptyList(); } return java.util.Collections.unmodifiableCollection( getAnnotationLinks() ); }
/** * 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.DichroicAnnotationLink> toRemove = findDichroicAnnotationLink( removal ); java.util.Iterator<ome.model.annotations.DichroicAnnotationLink> it = toRemove.iterator(); while ( it.hasNext() ) { removeDichroicAnnotationLink( it.next(), true ); } }
/** * clears the set. */ public void clearAnnotationLinks() { if (! _loaded ) errorIfUnloaded(); java.util.List<ome.model.annotations.DichroicAnnotationLink> list = new java.util.ArrayList<ome.model.annotations.DichroicAnnotationLink>( getAnnotationLinks() ); for (ome.model.annotations.DichroicAnnotationLink link : list) { removeDichroicAnnotationLink( link, true ); } }
/** * removes the given DichroicAnnotationLink from annotationLinks, allowing for recursion -- whether * or not the removal will call unlinkDichroic again <b>if loaded</b>. */ public void removeDichroicAnnotationLink (ome.model.annotations.DichroicAnnotationLink link, boolean bothSides) { if (! _loaded ) errorIfUnloaded(); if ( getAnnotationLinks() == null ) { throwNullCollectionException("AnnotationLinks"); } getAnnotationLinks().remove( link ); }
/** * Adds a ome.model.annotations.DichroicAnnotationLink to annotationLinks, allowing for recursion -- whether * or not addDichroicAnnotationLink will be called on the addition <b>if it is loaded</b> */ public void addDichroicAnnotationLink (ome.model.annotations.DichroicAnnotationLink link, boolean bothSides) { if (! _loaded ) errorIfUnloaded(); if ( getAnnotationLinks() == null ) { throwNullCollectionException("AnnotationLinks"); } getAnnotationLinks().add( link ); }
/** * removes a single element from this set and makes the inverse call on ome.model.annotations.DichroicAnnotationLink */ public void removeDichroicAnnotationLink(ome.model.annotations.DichroicAnnotationLink target) { if (! _loaded ) errorIfUnloaded(); if (getAnnotationLinks() == null) { throwNullCollectionException("AnnotationLinks"); } getAnnotationLinks().remove( target ); target.setParent ( null ); }