@Override public void setVersion(Integer version) { if (! _loaded ) errorIfUnloaded(); this.version = version; }
public void setType(ome.model.enums.ExperimentType type) { if (! _loaded ) errorIfUnloaded(); this.type = type; } protected java.util.Set<ome.model.experiment.MicrobeamManipulation> microbeamManipulation = new java.util.HashSet<ome.model.experiment.MicrobeamManipulation>();
/** * setter for microbeamManipulation should be avoided. Does not fulfill normal semantics. */ protected void setMicrobeamManipulation(java.util.Set<ome.model.experiment.MicrobeamManipulation> microbeamManipulation) { if (! _loaded ) errorIfUnloaded(); this.microbeamManipulation = microbeamManipulation; } /**
public void setDescription(java.lang.String description) { if (! _loaded ) errorIfUnloaded(); this.description = (java.lang.String) description; } protected ome.model.internal.Details details = new Details();
/** * 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; }
/** * returns the size of microbeamManipulation. If less than zero, the Set was null. */ public int sizeOfMicrobeamManipulation() { if (! _loaded ) errorIfUnloaded(); return this.microbeamManipulation == null ? -1 : this.microbeamManipulation.size(); }
/** * Many-to-one field ome.model.experiment.Experiment.type (ome.model.enums.ExperimentType) */ @javax.persistence.ManyToOne(fetch = javax.persistence.FetchType.LAZY, cascade = {javax.persistence.CascadeType.MERGE, javax.persistence.CascadeType.PERSIST, javax.persistence.CascadeType.REFRESH}, targetEntity = ome.model.enums.ExperimentType.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="type", nullable=false, unique=false, insertable=true, updatable=true) @org.hibernate.annotations.ForeignKey(name="FKexperiment_type_experimenttype") public ome.model.enums.ExperimentType getType() { if (! _loaded ) errorIfUnloaded(); return this.type; }
/** * Returns an unmodifiable collection-view */ public java.util.Collection<ome.model.experiment.MicrobeamManipulation> unmodifiableMicrobeamManipulation() { if (! _loaded ) errorIfUnloaded(); if ( getMicrobeamManipulation() == null ) { return java.util.Collections.emptyList(); } return java.util.Collections.unmodifiableCollection( getMicrobeamManipulation() ); }
/** * Simple field ome.model.experiment.Experiment.description (java.lang.String) */ @org.hibernate.annotations.Type(type="org.hibernate.type.TextType") @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="description", updatable=true) public java.lang.String getDescription() { if (! _loaded ) errorIfUnloaded(); return this.description; }
/** * takes a CBlock and calls the block once for each ome.model.experiment.MicrobeamManipulation while * collecting the results. If <code>block == null</code>, then the * iterator values themselves are collected. This method uses * {@link #iterateMicrobeamManipulation} internally and so will return a value * even if the underlying collection is null. */ @SuppressWarnings("unchecked") public <E> java.util.List<E> collectMicrobeamManipulation(ome.util.CBlock<E> block) { if (! _loaded ) errorIfUnloaded(); java.util.List<E> result = new java.util.ArrayList<E>(); java.util.Iterator<ome.model.experiment.MicrobeamManipulation> it = iterateMicrobeamManipulation(); while ( it.hasNext() ) { IObject obj = (IObject) it.next(); if ( block != null ) { result.add( block.call( obj ) ); } else { result.add( (E) obj ); } } return result; }
/** * use like removeMicrobeamManipulation */ public void removeMicrobeamManipulationSet(java.util.Collection<ome.model.experiment.MicrobeamManipulation> targets ) { if (! _loaded ) errorIfUnloaded(); if (getMicrobeamManipulation() == null) { throwNullCollectionException("MicrobeamManipulation"); } getMicrobeamManipulation().removeAll( targets ); java.util.Iterator<ome.model.experiment.MicrobeamManipulation> it = targets.iterator(); while ( it.hasNext() ) { ome.model.experiment.MicrobeamManipulation target = it.next(); target.setExperiment ( null ); } }
/** * returns microbeamManipulation . You should not modify this collection unless you * know what you are doing. Use the iterate method instead. * * one-to-many Set ome.model.experiment.Experiment.microbeamManipulation (ome.model.experiment.MicrobeamManipulation) */ @javax.persistence.OneToMany(mappedBy="experiment", fetch=javax.persistence.FetchType.LAZY, cascade={javax.persistence.CascadeType.MERGE, javax.persistence.CascadeType.PERSIST, javax.persistence.CascadeType.REFRESH}) @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}) @org.hibernate.annotations.Filters({ @org.hibernate.annotations.Filter(name="OneGroupSecurityFilter"), @org.hibernate.annotations.Filter(name="AllGroupsSecurityFilter"), @org.hibernate.annotations.Filter(name="SharingSecurityFilter", condition="(:is_admin = 1 OR :is_share = 0)"), @org.hibernate.annotations.Filter(name=OWNER_FILTER_MICROBEAMMANIPULATION, condition=":ownerId = owner_id"), @org.hibernate.annotations.Filter(name=GROUP_FILTER_MICROBEAMMANIPULATION, condition=":groupId = group_id"), @org.hibernate.annotations.Filter(name=EVENT_FILTER_MICROBEAMMANIPULATION, condition=":eventId = event_id"), @org.hibernate.annotations.Filter(name=PERMS_FILTER_MICROBEAMMANIPULATION, condition=":permsStr = permissions") }) protected java.util.Set<ome.model.experiment.MicrobeamManipulation> getMicrobeamManipulation() { if (! _loaded ) errorIfUnloaded(); return this.microbeamManipulation; }
/** * should be used rather than accessing the microbeamManipulation 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 #sizeOfMicrobeamManipulation()} is less than zero. */ public java.util.Iterator<ome.model.experiment.MicrobeamManipulation> iterateMicrobeamManipulation() { if (! _loaded ) errorIfUnloaded(); if ( getMicrobeamManipulation() == null ) { return new ome.util.EmptyIterator<ome.model.experiment.MicrobeamManipulation>(); } return getMicrobeamManipulation().iterator(); // TODO should this be direct access }
/** * use like addMicrobeamManipulation. */ public void addMicrobeamManipulationSet(java.util.Collection<ome.model.experiment.MicrobeamManipulation> targets) { if (! _loaded ) errorIfUnloaded(); if (getMicrobeamManipulation() == null) { throwNullCollectionException("MicrobeamManipulation"); } getMicrobeamManipulation().addAll( targets ); java.util.Iterator<ome.model.experiment.MicrobeamManipulation> it = targets.iterator(); while ( it.hasNext() ) { ome.model.experiment.MicrobeamManipulation target = it.next(); // If this relationship is not ordered, then we will // "attempt" the setting even if it is loaded. if (target != null) { target.setExperiment ( this ); } } }
/** * removes a single element from this set and makes the inverse call on ome.model.experiment.MicrobeamManipulation */ public void removeMicrobeamManipulation(ome.model.experiment.MicrobeamManipulation target) { if (! _loaded ) errorIfUnloaded(); if (getMicrobeamManipulation() == null) { throwNullCollectionException("MicrobeamManipulation"); } getMicrobeamManipulation().remove( target ); target.setExperiment ( null ); }
/** * clears the set. */ public void clearMicrobeamManipulation() { if (! _loaded ) errorIfUnloaded(); if (getMicrobeamManipulation() == null) { throwNullCollectionException("MicrobeamManipulation"); } getMicrobeamManipulation().clear(); java.util.Iterator<ome.model.experiment.MicrobeamManipulation> it = iterateMicrobeamManipulation(); while (it.hasNext()) { ome.model.experiment.MicrobeamManipulation target = it.next(); target.setExperiment ( null ); } }
@Override public ome.model.internal.Details getDetails() { if (! _loaded ) errorIfUnloaded(); return this.details;
/** * use instead of setMicrobeamManipulation . Makes the necessary * call on ome.model.experiment.MicrobeamManipulation as well. */ public void addMicrobeamManipulation(ome.model.experiment.MicrobeamManipulation target) { if (! _loaded ) errorIfUnloaded(); if (getMicrobeamManipulation() == null) { throwNullCollectionException("MicrobeamManipulation"); } getMicrobeamManipulation().add( target ); // If this relationship is not ordered, then we will // "attempt" the setting even if it is loaded. if (target != null) { target.setExperiment ( this ); } }