Package ome.model.display
Class ChannelBinding
- java.lang.Object
-
- ome.model.display.ChannelBinding
-
- All Implemented Interfaces:
java.io.Serializable,IMutable,IObject,Filterable
@Entity @Indexed(index="FullText") @ClassBridge(name="details", impl=DetailsFieldBridge.class, index=UN_TOKENIZED, store=NO) public class ChannelBinding extends java.lang.Object implements java.io.Serializable, IObject, IMutableThese filter definitions are used by the security system to eliminate non-readable objects from queries. The regular user does not need to worry about them, as they will be injected directly into the SQL (not HQL)- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classChannelBinding.Details
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<java.lang.String,java.lang.Object>_dynamicFieldsprotected boolean_loadedprotected java.lang.Booleanactivestatic java.lang.StringACTIVEprotected java.lang.Integeralphastatic java.lang.StringALPHAprotected java.lang.Integerbluestatic java.lang.StringBLUEprotected java.lang.Doublecoefficientstatic java.lang.StringCOEFFICIENTprotected Detailsdetailsstatic java.lang.StringDETAILSstatic java.lang.StringEVENT_FILTERstatic java.lang.StringEVENT_FILTER_SPATIALDOMAINENHANCEMENTprotected Familyfamilystatic java.lang.StringFAMILYstatic java.util.Set<java.lang.String>FIELDSprotected java.lang.Integergreenstatic java.lang.StringGREENstatic java.lang.StringGROUP_FILTERstatic java.lang.StringGROUP_FILTER_SPATIALDOMAINENHANCEMENTprotected java.lang.Longidstatic java.lang.StringIDprotected java.lang.DoubleinputEndstatic java.lang.StringINPUTENDprotected java.lang.DoubleinputStartstatic java.lang.StringINPUTSTARTprotected java.lang.StringlookupTablestatic java.lang.StringLOOKUPTABLEprotected java.lang.BooleannoiseReductionstatic java.lang.StringNOISEREDUCTIONstatic java.lang.StringOWNER_FILTERstatic java.lang.StringOWNER_FILTER_SPATIALDOMAINENHANCEMENTstatic java.lang.StringPERMS_FILTERstatic java.lang.StringPERMS_FILTER_SPATIALDOMAINENHANCEMENTprotected java.lang.Integerredstatic java.lang.StringREDprotected RenderingDefrenderingDefstatic java.lang.StringRENDERINGDEFprotected java.util.List<CodomainMapContext>spatialDomainEnhancementstatic java.lang.StringSPATIALDOMAINENHANCEMENTprotected java.lang.Integerversionstatic java.lang.StringVERSION
-
Constructor Summary
Constructors Modifier Constructor Description ChannelBinding()protectedChannelBinding(java.lang.Long id)ChannelBinding(java.lang.Long id, boolean loaded)Main constructor.ChannelBinding(RenderingDef _renderingDef, Family _family, java.lang.Double _coefficient, java.lang.Double _inputStart, java.lang.Double _inputEnd, java.lang.Boolean _active, java.lang.Boolean _noiseReduction, java.lang.Integer _red, java.lang.Integer _green, java.lang.Integer _blue, java.lang.Integer _alpha)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanacceptFilter(Filter __filter)voidaddCodomainMapContext(CodomainMapContext target)use instead of setSpatialDomainEnhancement .voidaddCodomainMapContextSet(java.util.Collection<CodomainMapContext> targets)use like addCodomainMapContext.voidclearSpatialDomainEnhancement()clears the set.<E> java.util.List<E>collectSpatialDomainEnhancement(CBlock<E> block)takes a CBlock and calls the block once for each ome.model.display.CodomainMapContext while collecting the results.protected voiderrorIfUnloaded()java.util.Set<java.lang.String>fields()returns a Set of field names that belong to this classjava.lang.BooleangetActive()Simple field ome.model.display.ChannelBinding.active (java.lang.Boolean)java.lang.IntegergetAlpha()Simple field ome.model.display.ChannelBinding.alpha (java.lang.Integer)java.lang.IntegergetBlue()Simple field ome.model.display.ChannelBinding.blue (java.lang.Integer)CodomainMapContextgetCodomainMapContext(int index)Gets the ome.model.display.CodomainMapContext at the given index.java.lang.DoublegetCoefficient()Simple field ome.model.display.ChannelBinding.coefficient (java.lang.Double)DetailsgetDetails()The details of this object correspond to low-level system information.FamilygetFamily()Many-to-one field ome.model.display.ChannelBinding.family (ome.model.enums.Family)GraphHoldergetGraphHolder()retrieves theGraphHolderfor this entity.java.lang.IntegergetGreen()Simple field ome.model.display.ChannelBinding.green (java.lang.Integer)java.lang.LonggetId()The DB unique identifier for this object.java.lang.DoublegetInputEnd()Simple field ome.model.display.ChannelBinding.inputEnd (java.lang.Double)java.lang.DoublegetInputStart()Simple field ome.model.display.ChannelBinding.inputStart (java.lang.Double)java.lang.StringgetLookupTable()Simple field ome.model.display.ChannelBinding.lookupTable (java.lang.String)java.lang.BooleangetNoiseReduction()Simple field ome.model.display.ChannelBinding.noiseReduction (java.lang.Boolean)CodomainMapContextgetPrimaryCodomainMapContext()Gets the first element of spatialDomainEnhancement which can be interpreted as the primary or default element in some situations.java.lang.IntegergetRed()Simple field ome.model.display.ChannelBinding.red (java.lang.Integer)RenderingDefgetRenderingDef()Many-to-one field ome.model.display.ChannelBinding.renderingDef (ome.model.display.RenderingDef)protected java.util.List<CodomainMapContext>getSpatialDomainEnhancement()returns spatialDomainEnhancement .java.lang.IntegergetVersion()This version number is controlled by the database for optimisitic locking.booleanisLoaded()transient field (not stored in the DB) which specifies whether this object has been loaded from the DB or is only a wrapper around the ID.booleanisValid()calls the class-specific validator for this instance and returns the value fromValidation.isValid()java.util.Iterator<CodomainMapContext>iterateSpatialDomainEnhancement()should be used rather than accessing the spatialDomainEnhancement set directly.ChannelBindingnewInstance()ChannelBindingproxy()voidputAt(java.lang.String field, java.lang.Object value)stores a value in this instance.voidremoveCodomainMapContext(CodomainMapContext target)removes a single element from this set and makes the inverse call on ome.model.display.CodomainMapContextvoidremoveCodomainMapContextSet(java.util.Collection<CodomainMapContext> targets)use like removeCodomainMapContextjava.lang.Objectretrieve(java.lang.String field)retrieves a value from this instance.voidsetActive(java.lang.Boolean active)voidsetAlpha(java.lang.Integer alpha)voidsetBlue(java.lang.Integer blue)CodomainMapContextsetCodomainMapContext(int index, CodomainMapContext element)Sets the ome.model.display.CodomainMapContext at the given index.voidsetCoefficient(java.lang.Double coefficient)protected voidsetDetails(Details details)voidsetFamily(Family family)voidsetGreen(java.lang.Integer green)voidsetId(java.lang.Long id)usually unneeded.voidsetInputEnd(java.lang.Double inputEnd)voidsetInputStart(java.lang.Double inputStart)voidsetLookupTable(java.lang.String lookupTable)voidsetNoiseReduction(java.lang.Boolean noiseReduction)CodomainMapContextsetPrimaryCodomainMapContext(CodomainMapContext element)Swaps the first element of spatialDomainEnhancement with the first instance of the given element.voidsetRed(java.lang.Integer red)voidsetRenderingDef(RenderingDef renderingDef)protected voidsetSpatialDomainEnhancement(java.util.List<CodomainMapContext> spatialDomainEnhancement)setter for spatialDomainEnhancement should be avoided.voidsetVersion(java.lang.Integer version)use with caution.intsizeOfSpatialDomainEnhancement()returns the size of spatialDomainEnhancement.protected voidthrowNullCollectionException(java.lang.String propertyName)java.lang.StringtoString()voidunload()set the loaded field to false, and set all non-ID fields to null.java.util.Collection<CodomainMapContext>unmodifiableSpatialDomainEnhancement()Returns an unmodifiable collection-viewValidationvalidate()calls the class-specific validator for this instance and returns theValidationobject.
-
-
-
Field Detail
-
OWNER_FILTER
public static final java.lang.String OWNER_FILTER
- See Also:
- Constant Field Values
-
GROUP_FILTER
public static final java.lang.String GROUP_FILTER
- See Also:
- Constant Field Values
-
EVENT_FILTER
public static final java.lang.String EVENT_FILTER
- See Also:
- Constant Field Values
-
PERMS_FILTER
public static final java.lang.String PERMS_FILTER
- See Also:
- Constant Field Values
-
ID
public static final java.lang.String ID
- See Also:
- Constant Field Values
-
id
protected java.lang.Long id
-
VERSION
public static final java.lang.String VERSION
- See Also:
- Constant Field Values
-
version
protected java.lang.Integer version
-
renderingDef
protected RenderingDef renderingDef
-
family
protected Family family
-
coefficient
protected java.lang.Double coefficient
-
inputStart
protected java.lang.Double inputStart
-
inputEnd
protected java.lang.Double inputEnd
-
active
protected java.lang.Boolean active
-
noiseReduction
protected java.lang.Boolean noiseReduction
-
red
protected java.lang.Integer red
-
green
protected java.lang.Integer green
-
blue
protected java.lang.Integer blue
-
alpha
protected java.lang.Integer alpha
-
lookupTable
protected java.lang.String lookupTable
-
spatialDomainEnhancement
protected java.util.List<CodomainMapContext> spatialDomainEnhancement
-
OWNER_FILTER_SPATIALDOMAINENHANCEMENT
public static final java.lang.String OWNER_FILTER_SPATIALDOMAINENHANCEMENT
- See Also:
- Constant Field Values
-
GROUP_FILTER_SPATIALDOMAINENHANCEMENT
public static final java.lang.String GROUP_FILTER_SPATIALDOMAINENHANCEMENT
- See Also:
- Constant Field Values
-
EVENT_FILTER_SPATIALDOMAINENHANCEMENT
public static final java.lang.String EVENT_FILTER_SPATIALDOMAINENHANCEMENT
- See Also:
- Constant Field Values
-
PERMS_FILTER_SPATIALDOMAINENHANCEMENT
public static final java.lang.String PERMS_FILTER_SPATIALDOMAINENHANCEMENT
- See Also:
- Constant Field Values
-
details
protected Details details
-
RENDERINGDEF
public static final java.lang.String RENDERINGDEF
- See Also:
- Constant Field Values
-
FAMILY
public static final java.lang.String FAMILY
- See Also:
- Constant Field Values
-
COEFFICIENT
public static final java.lang.String COEFFICIENT
- See Also:
- Constant Field Values
-
INPUTSTART
public static final java.lang.String INPUTSTART
- See Also:
- Constant Field Values
-
INPUTEND
public static final java.lang.String INPUTEND
- See Also:
- Constant Field Values
-
ACTIVE
public static final java.lang.String ACTIVE
- See Also:
- Constant Field Values
-
NOISEREDUCTION
public static final java.lang.String NOISEREDUCTION
- See Also:
- Constant Field Values
-
RED
public static final java.lang.String RED
- See Also:
- Constant Field Values
-
GREEN
public static final java.lang.String GREEN
- See Also:
- Constant Field Values
-
BLUE
public static final java.lang.String BLUE
- See Also:
- Constant Field Values
-
ALPHA
public static final java.lang.String ALPHA
- See Also:
- Constant Field Values
-
LOOKUPTABLE
public static final java.lang.String LOOKUPTABLE
- See Also:
- Constant Field Values
-
SPATIALDOMAINENHANCEMENT
public static final java.lang.String SPATIALDOMAINENHANCEMENT
- See Also:
- Constant Field Values
-
DETAILS
public static final java.lang.String DETAILS
- See Also:
- Constant Field Values
-
FIELDS
public static final java.util.Set<java.lang.String> FIELDS
-
_dynamicFields
protected java.util.Map<java.lang.String,java.lang.Object> _dynamicFields
-
_loaded
protected boolean _loaded
-
-
Constructor Detail
-
ChannelBinding
public ChannelBinding()
-
ChannelBinding
protected ChannelBinding(java.lang.Long id)
-
ChannelBinding
public ChannelBinding(java.lang.Long id, boolean loaded)Main constructor.
-
ChannelBinding
public ChannelBinding(RenderingDef _renderingDef, Family _family, java.lang.Double _coefficient, java.lang.Double _inputStart, java.lang.Double _inputEnd, java.lang.Boolean _active, java.lang.Boolean _noiseReduction, java.lang.Integer _red, java.lang.Integer _green, java.lang.Integer _blue, java.lang.Integer _alpha)
-
-
Method Detail
-
getId
@DocumentId public java.lang.Long getId()
The DB unique identifier for this object. You are not responsible for setting the id; however, it can be useful for creating "unloaded" versions of your objects. Each top-level entity contains an id field of type long. For all objects returned from the server, this value will be non-null, which doesn't necessarily hold for the other fields.
-
setId
public void setId(java.lang.Long id)
Description copied from interface:IObjectusually unneeded. Ids are managed by the backend.
-
getVersion
public java.lang.Integer getVersion()
This version number is controlled by the database for optimisitic locking.- Specified by:
getVersionin interfaceIMutable
-
setVersion
public void setVersion(java.lang.Integer version)
Description copied from interface:IMutableuse with caution. In general, the version should only be altered by the backend. In the best case, an exception will be thrown for a version not equal to the current DB value. In the worst (though rare) case, the new version could match the database, and override optimistic lock checks that are supposed to prevent data loss.- Specified by:
setVersionin interfaceIMutable- Parameters:
version- Value for this objects version.
-
getRenderingDef
public RenderingDef getRenderingDef()
Many-to-one field ome.model.display.ChannelBinding.renderingDef (ome.model.display.RenderingDef)
-
setRenderingDef
public void setRenderingDef(RenderingDef renderingDef)
-
getFamily
public Family getFamily()
Many-to-one field ome.model.display.ChannelBinding.family (ome.model.enums.Family)
-
setFamily
public void setFamily(Family family)
-
getCoefficient
@Field(index=UN_TOKENIZED) @Field(index=TOKENIZED,analyzer=@Analyzer(impl=ConfiguredAnalyzer.class),name="combined_fields") public java.lang.Double getCoefficient()
Simple field ome.model.display.ChannelBinding.coefficient (java.lang.Double)
-
setCoefficient
public void setCoefficient(java.lang.Double coefficient)
-
getInputStart
@Field(index=UN_TOKENIZED) @Field(index=TOKENIZED,analyzer=@Analyzer(impl=ConfiguredAnalyzer.class),name="combined_fields") public java.lang.Double getInputStart()
Simple field ome.model.display.ChannelBinding.inputStart (java.lang.Double)
-
setInputStart
public void setInputStart(java.lang.Double inputStart)
-
getInputEnd
@Field(index=UN_TOKENIZED) @Field(index=TOKENIZED,analyzer=@Analyzer(impl=ConfiguredAnalyzer.class),name="combined_fields") public java.lang.Double getInputEnd()
Simple field ome.model.display.ChannelBinding.inputEnd (java.lang.Double)
-
setInputEnd
public void setInputEnd(java.lang.Double inputEnd)
-
getActive
public java.lang.Boolean getActive()
Simple field ome.model.display.ChannelBinding.active (java.lang.Boolean)
-
setActive
public void setActive(java.lang.Boolean active)
-
getNoiseReduction
public java.lang.Boolean getNoiseReduction()
Simple field ome.model.display.ChannelBinding.noiseReduction (java.lang.Boolean)
-
setNoiseReduction
public void setNoiseReduction(java.lang.Boolean noiseReduction)
-
getRed
@Field(index=UN_TOKENIZED) @Field(index=TOKENIZED,analyzer=@Analyzer(impl=ConfiguredAnalyzer.class),name="combined_fields") public java.lang.Integer getRed()
Simple field ome.model.display.ChannelBinding.red (java.lang.Integer)
-
setRed
public void setRed(java.lang.Integer red)
-
getGreen
@Field(index=UN_TOKENIZED) @Field(index=TOKENIZED,analyzer=@Analyzer(impl=ConfiguredAnalyzer.class),name="combined_fields") public java.lang.Integer getGreen()
Simple field ome.model.display.ChannelBinding.green (java.lang.Integer)
-
setGreen
public void setGreen(java.lang.Integer green)
-
getBlue
@Field(index=UN_TOKENIZED) @Field(index=TOKENIZED,analyzer=@Analyzer(impl=ConfiguredAnalyzer.class),name="combined_fields") public java.lang.Integer getBlue()
Simple field ome.model.display.ChannelBinding.blue (java.lang.Integer)
-
setBlue
public void setBlue(java.lang.Integer blue)
-
getAlpha
@Field(index=UN_TOKENIZED) @Field(index=TOKENIZED,analyzer=@Analyzer(impl=ConfiguredAnalyzer.class),name="combined_fields") public java.lang.Integer getAlpha()
Simple field ome.model.display.ChannelBinding.alpha (java.lang.Integer)
-
setAlpha
public void setAlpha(java.lang.Integer alpha)
-
getLookupTable
@Field(index=TOKENIZED) @Field(index=TOKENIZED,analyzer=@Analyzer(impl=ConfiguredAnalyzer.class),name="combined_fields") public java.lang.String getLookupTable()
Simple field ome.model.display.ChannelBinding.lookupTable (java.lang.String)
-
setLookupTable
public void setLookupTable(java.lang.String lookupTable)
-
getSpatialDomainEnhancement
protected java.util.List<CodomainMapContext> getSpatialDomainEnhancement()
returns spatialDomainEnhancement . You should not modify this collection unless you know what you are doing. Use the iterate method instead. one-to-many List ome.model.display.ChannelBinding.spatialDomainEnhancement (ome.model.display.CodomainMapContext) Values are indexed by the column "index" on ome.model.display.CodomainMapContext
-
setSpatialDomainEnhancement
protected void setSpatialDomainEnhancement(java.util.List<CodomainMapContext> spatialDomainEnhancement)
setter for spatialDomainEnhancement should be avoided. Does not fulfill normal semantics.
-
sizeOfSpatialDomainEnhancement
public int sizeOfSpatialDomainEnhancement()
returns the size of spatialDomainEnhancement. If less than zero, the Set was null.
-
iterateSpatialDomainEnhancement
public java.util.Iterator<CodomainMapContext> iterateSpatialDomainEnhancement()
should be used rather than accessing the spatialDomainEnhancement set directly. This method will never return null, but rather will return an instance ofEmptyIterator. To test for a null collection, see ofsizeOfSpatialDomainEnhancement()is less than zero.
-
unmodifiableSpatialDomainEnhancement
public java.util.Collection<CodomainMapContext> unmodifiableSpatialDomainEnhancement()
Returns an unmodifiable collection-view
-
collectSpatialDomainEnhancement
public <E> java.util.List<E> collectSpatialDomainEnhancement(CBlock<E> block)
takes a CBlock and calls the block once for each ome.model.display.CodomainMapContext while collecting the results. Ifblock == null, then the iterator values themselves are collected. This method usesiterateSpatialDomainEnhancement()internally and so will return a value even if the underlying collection is null.
-
addCodomainMapContext
public void addCodomainMapContext(CodomainMapContext target)
use instead of setSpatialDomainEnhancement . Makes the necessary call on ome.model.display.CodomainMapContext as well.
-
addCodomainMapContextSet
public void addCodomainMapContextSet(java.util.Collection<CodomainMapContext> targets)
use like addCodomainMapContext.
-
removeCodomainMapContext
public void removeCodomainMapContext(CodomainMapContext target)
removes a single element from this set and makes the inverse call on ome.model.display.CodomainMapContext
-
removeCodomainMapContextSet
public void removeCodomainMapContextSet(java.util.Collection<CodomainMapContext> targets)
use like removeCodomainMapContext
-
clearSpatialDomainEnhancement
public void clearSpatialDomainEnhancement()
clears the set.
-
getCodomainMapContext
public CodomainMapContext getCodomainMapContext(int index) throws java.lang.IndexOutOfBoundsException
Gets the ome.model.display.CodomainMapContext at the given index.- Throws:
java.lang.IndexOutOfBoundsException
-
setCodomainMapContext
public CodomainMapContext setCodomainMapContext(int index, CodomainMapContext element) throws java.lang.IndexOutOfBoundsException
Sets the ome.model.display.CodomainMapContext at the given index. Adheres to theList.set(int, Object)contract. To extend the list, useaddCodomainMapContext(CodomainMapContext).- Throws:
java.lang.IndexOutOfBoundsException- See Also:
List.set(int, Object)
-
getPrimaryCodomainMapContext
public CodomainMapContext getPrimaryCodomainMapContext() throws java.lang.IndexOutOfBoundsException
Gets the first element of spatialDomainEnhancement which can be interpreted as the primary or default element in some situations. If there is not first element, anIndexOutOfBoundsExceptionis throws. This method will also throw anApiUsageExceptionif the collection is unloaded. SeesizeOfSpatialDomainEnhancement()for more information.- Throws:
java.lang.IndexOutOfBoundsException
-
setPrimaryCodomainMapContext
public CodomainMapContext setPrimaryCodomainMapContext(CodomainMapContext element) throws java.lang.IndexOutOfBoundsException
Swaps the first element of spatialDomainEnhancement with the first instance of the given element. If the given element is not in the list, anIndexOutOfBoundsExceptionwill be thrown. Returns the swapped element. This method will also throw anApiUsageExceptionif the collection is unloaded. SeesizeOfSpatialDomainEnhancement()for more information.- Throws:
java.lang.IndexOutOfBoundsException
-
getDetails
public Details getDetails()
The details of this object correspond to low-level system information. Owner, permissions, Details is always guaranteed to be non-null, unless the user actively nulls it. Every entity also contains a Detail reference, which doesn't refer to a separate table but rather to a collection of fields collected into a Hibernate "component" which is embedded in the object. HQL queries which refer to the Details component cannot directly fetch the entity like this: select o from Object join fetch o.details but rather each field of the Details instance must be explicitly joined: select o from Object join fetch o.details.owner It should also be noted that not all types have all the fields which are present on Details. For example, select e from Experimenter e join fetch e.details.owner will fail. Experimenter has no owner, for obvious reasons. Note: subclasses of this class will return a subclass of theDetailstype.- Specified by:
getDetailsin interfaceIObject
-
setDetails
protected void setDetails(Details details)
-
isValid
public boolean isValid()
Description copied from interface:IObjectcalls the class-specific validator for this instance and returns the value fromValidation.isValid()
-
validate
public Validation validate()
Description copied from interface:IObjectcalls the class-specific validator for this instance and returns theValidationobject.
-
newInstance
public ChannelBinding newInstance()
-
proxy
public ChannelBinding proxy()
-
acceptFilter
public boolean acceptFilter(Filter __filter)
- Specified by:
acceptFilterin interfaceFilterable
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
fields
public java.util.Set<java.lang.String> fields()
Description copied from interface:IObjectreturns a Set of field names that belong to this class
-
retrieve
public java.lang.Object retrieve(java.lang.String field)
Description copied from interface:IObjectretrieves a value from this instance. Values forfieldwhich match a field of this instance will be delegated to the accessors. Otherwise, values will be retrieved from a lazy-loaded map filled by calls toIObject.putAt(String, Object)
-
putAt
public void putAt(java.lang.String field, java.lang.Object value)Description copied from interface:IObjectstores a value in this instance. Values forfieldwhich match a field of this instance will be delegated to the accessors. Otherwise, values will be stored in a lazy-loaded map.
-
isLoaded
public boolean isLoaded()
Description copied from interface:IObjecttransient field (not stored in the DB) which specifies whether this object has been loaded from the DB or is only a wrapper around the ID.
-
errorIfUnloaded
protected void errorIfUnloaded()
-
unload
public void unload()
Description copied from interface:IObjectset the loaded field to false, and set all non-ID fields to null. Subsequent calls to all accessors other than getId/setId will throw an ApiUsageException
-
getGraphHolder
public final GraphHolder getGraphHolder()
Description copied from interface:IObjectretrieves theGraphHolderfor this entity. If the GraphHolder has not been actively set, a new one will be instatiated.- Specified by:
getGraphHolderin interfaceIObject- Returns:
- Non-null GraphHolder
-
throwNullCollectionException
protected void throwNullCollectionException(java.lang.String propertyName)
-
-