/** * 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 setType(ome.model.enums.MicrobeamManipulationType type) { if (! _loaded ) errorIfUnloaded(); this.type = type; } protected java.util.Set<ome.model.acquisition.LightSettings> lightSourceSettings = new java.util.HashSet<ome.model.acquisition.LightSettings>();
public void setExperiment(ome.model.experiment.Experiment experiment) { if (! _loaded ) errorIfUnloaded(); this.experiment = experiment; } protected java.lang.String description = null;
/** * setter for lightSourceSettings should be avoided. Does not fulfill normal semantics. */ protected void setLightSourceSettings(java.util.Set<ome.model.acquisition.LightSettings> lightSourceSettings) { if (! _loaded ) errorIfUnloaded(); this.lightSourceSettings = lightSourceSettings; } /**
public void setDescription(java.lang.String description) { if (! _loaded ) errorIfUnloaded(); this.description = (java.lang.String) description; } protected ome.model.internal.Details details = new 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 lightSourceSettings. If less than zero, the Set was null. */ public int sizeOfLightSourceSettings() { if (! _loaded ) errorIfUnloaded(); return this.lightSourceSettings == null ? -1 : this.lightSourceSettings.size(); }
/** * Returns an unmodifiable collection-view */ public java.util.Collection<ome.model.acquisition.LightSettings> unmodifiableLightSourceSettings() { if (! _loaded ) errorIfUnloaded(); if ( getLightSourceSettings() == null ) { return java.util.Collections.emptyList(); } return java.util.Collections.unmodifiableCollection( getLightSourceSettings() ); }
/** * Many-to-one field ome.model.experiment.MicrobeamManipulation.experiment (ome.model.experiment.Experiment) */ @javax.persistence.ManyToOne(fetch = javax.persistence.FetchType.LAZY, cascade = {javax.persistence.CascadeType.MERGE, javax.persistence.CascadeType.PERSIST, javax.persistence.CascadeType.REFRESH}, targetEntity = ome.model.experiment.Experiment.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="experiment", nullable=false, unique=false, insertable=true, updatable=true) @org.hibernate.annotations.ForeignKey(name="FKmicrobeammanipulation_experiment_experiment") public ome.model.experiment.Experiment getExperiment() { if (! _loaded ) errorIfUnloaded(); return this.experiment; }
/** * Many-to-one field ome.model.experiment.MicrobeamManipulation.type (ome.model.enums.MicrobeamManipulationType) */ @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.MicrobeamManipulationType.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="FKmicrobeammanipulation_type_microbeammanipulationtype") public ome.model.enums.MicrobeamManipulationType getType() { if (! _loaded ) errorIfUnloaded(); return this.type; }
/** * Simple field ome.model.experiment.MicrobeamManipulation.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.acquisition.LightSettings while * collecting the results. If <code>block == null</code>, then the * iterator values themselves are collected. This method uses * {@link #iterateLightSourceSettings} internally and so will return a value * even if the underlying collection is null. */ @SuppressWarnings("unchecked") public <E> java.util.List<E> collectLightSourceSettings(ome.util.CBlock<E> block) { if (! _loaded ) errorIfUnloaded(); java.util.List<E> result = new java.util.ArrayList<E>(); java.util.Iterator<ome.model.acquisition.LightSettings> it = iterateLightSourceSettings(); 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 removeLightSettings */ public void removeLightSettingsSet(java.util.Collection<ome.model.acquisition.LightSettings> targets ) { if (! _loaded ) errorIfUnloaded(); if (getLightSourceSettings() == null) { throwNullCollectionException("LightSourceSettings"); } getLightSourceSettings().removeAll( targets ); java.util.Iterator<ome.model.acquisition.LightSettings> it = targets.iterator(); while ( it.hasNext() ) { ome.model.acquisition.LightSettings target = it.next(); target.setMicrobeamManipulation ( null ); } }
/** * returns lightSourceSettings . 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.MicrobeamManipulation.lightSourceSettings (ome.model.acquisition.LightSettings) */ @javax.persistence.OneToMany(mappedBy="microbeamManipulation", 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 OR " + "id IN (SELECT lightsettings.id FROM lightsettings*, logicalchannel*, channel*, pixels* WHERE " + "lightsettings.id = logicalchannel.lightsourcesettings AND logicalchannel.id = channel.logicalchannel AND channel.pixels = pixels.id AND pixels.image IN (:images)))"), @org.hibernate.annotations.Filter(name=OWNER_FILTER_LIGHTSOURCESETTINGS, condition=":ownerId = owner_id"), @org.hibernate.annotations.Filter(name=GROUP_FILTER_LIGHTSOURCESETTINGS, condition=":groupId = group_id"), @org.hibernate.annotations.Filter(name=EVENT_FILTER_LIGHTSOURCESETTINGS, condition=":eventId = event_id"), @org.hibernate.annotations.Filter(name=PERMS_FILTER_LIGHTSOURCESETTINGS, condition=":permsStr = permissions") }) protected java.util.Set<ome.model.acquisition.LightSettings> getLightSourceSettings() { if (! _loaded ) errorIfUnloaded(); return this.lightSourceSettings; }
/** * use like addLightSettings. */ public void addLightSettingsSet(java.util.Collection<ome.model.acquisition.LightSettings> targets) { if (! _loaded ) errorIfUnloaded(); if (getLightSourceSettings() == null) { throwNullCollectionException("LightSourceSettings"); } getLightSourceSettings().addAll( targets ); java.util.Iterator<ome.model.acquisition.LightSettings> it = targets.iterator(); while ( it.hasNext() ) { ome.model.acquisition.LightSettings target = it.next(); // If this relationship is not ordered, then we will // "attempt" the setting even if it is loaded. if (target != null) { target.setMicrobeamManipulation ( this ); } } }
/** * should be used rather than accessing the lightSourceSettings 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 #sizeOfLightSourceSettings()} is less than zero. */ public java.util.Iterator<ome.model.acquisition.LightSettings> iterateLightSourceSettings() { if (! _loaded ) errorIfUnloaded(); if ( getLightSourceSettings() == null ) { return new ome.util.EmptyIterator<ome.model.acquisition.LightSettings>(); } return getLightSourceSettings().iterator(); // TODO should this be direct access }
/** * clears the set. */ public void clearLightSourceSettings() { if (! _loaded ) errorIfUnloaded(); if (getLightSourceSettings() == null) { throwNullCollectionException("LightSourceSettings"); } getLightSourceSettings().clear(); java.util.Iterator<ome.model.acquisition.LightSettings> it = iterateLightSourceSettings(); while (it.hasNext()) { ome.model.acquisition.LightSettings target = it.next(); target.setMicrobeamManipulation ( null ); } }
/** * removes a single element from this set and makes the inverse call on ome.model.acquisition.LightSettings */ public void removeLightSettings(ome.model.acquisition.LightSettings target) { if (! _loaded ) errorIfUnloaded(); if (getLightSourceSettings() == null) { throwNullCollectionException("LightSourceSettings"); } getLightSourceSettings().remove( target ); target.setMicrobeamManipulation ( null ); }
/** * use instead of setLightSourceSettings . Makes the necessary * call on ome.model.acquisition.LightSettings as well. */ public void addLightSettings(ome.model.acquisition.LightSettings target) { if (! _loaded ) errorIfUnloaded(); if (getLightSourceSettings() == null) { throwNullCollectionException("LightSourceSettings"); } getLightSourceSettings().add( target ); // If this relationship is not ordered, then we will // "attempt" the setting even if it is loaded. if (target != null) { target.setMicrobeamManipulation ( this ); } }