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, IMutable
These 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 class
ChannelBinding.Details
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<java.lang.String,java.lang.Object>
_dynamicFields
protected boolean
_loaded
protected java.lang.Boolean
active
static java.lang.String
ACTIVE
protected java.lang.Integer
alpha
static java.lang.String
ALPHA
protected java.lang.Integer
blue
static java.lang.String
BLUE
protected java.lang.Double
coefficient
static java.lang.String
COEFFICIENT
protected Details
details
static java.lang.String
DETAILS
static java.lang.String
EVENT_FILTER
static java.lang.String
EVENT_FILTER_SPATIALDOMAINENHANCEMENT
protected Family
family
static java.lang.String
FAMILY
static java.util.Set<java.lang.String>
FIELDS
protected java.lang.Integer
green
static java.lang.String
GREEN
static java.lang.String
GROUP_FILTER
static java.lang.String
GROUP_FILTER_SPATIALDOMAINENHANCEMENT
protected java.lang.Long
id
static java.lang.String
ID
protected java.lang.Double
inputEnd
static java.lang.String
INPUTEND
protected java.lang.Double
inputStart
static java.lang.String
INPUTSTART
protected java.lang.String
lookupTable
static java.lang.String
LOOKUPTABLE
protected java.lang.Boolean
noiseReduction
static java.lang.String
NOISEREDUCTION
static java.lang.String
OWNER_FILTER
static java.lang.String
OWNER_FILTER_SPATIALDOMAINENHANCEMENT
static java.lang.String
PERMS_FILTER
static java.lang.String
PERMS_FILTER_SPATIALDOMAINENHANCEMENT
protected java.lang.Integer
red
static java.lang.String
RED
protected RenderingDef
renderingDef
static java.lang.String
RENDERINGDEF
protected java.util.List<CodomainMapContext>
spatialDomainEnhancement
static java.lang.String
SPATIALDOMAINENHANCEMENT
protected java.lang.Integer
version
static java.lang.String
VERSION
-
Constructor Summary
Constructors Modifier Constructor Description ChannelBinding()
protected
ChannelBinding(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 boolean
acceptFilter(Filter __filter)
void
addCodomainMapContext(CodomainMapContext target)
use instead of setSpatialDomainEnhancement .void
addCodomainMapContextSet(java.util.Collection<CodomainMapContext> targets)
use like addCodomainMapContext.void
clearSpatialDomainEnhancement()
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 void
errorIfUnloaded()
java.util.Set<java.lang.String>
fields()
returns a Set of field names that belong to this classjava.lang.Boolean
getActive()
Simple field ome.model.display.ChannelBinding.active (java.lang.Boolean)java.lang.Integer
getAlpha()
Simple field ome.model.display.ChannelBinding.alpha (java.lang.Integer)java.lang.Integer
getBlue()
Simple field ome.model.display.ChannelBinding.blue (java.lang.Integer)CodomainMapContext
getCodomainMapContext(int index)
Gets the ome.model.display.CodomainMapContext at the given index.java.lang.Double
getCoefficient()
Simple field ome.model.display.ChannelBinding.coefficient (java.lang.Double)Details
getDetails()
The details of this object correspond to low-level system information.Family
getFamily()
Many-to-one field ome.model.display.ChannelBinding.family (ome.model.enums.Family)GraphHolder
getGraphHolder()
retrieves theGraphHolder
for this entity.java.lang.Integer
getGreen()
Simple field ome.model.display.ChannelBinding.green (java.lang.Integer)java.lang.Long
getId()
The DB unique identifier for this object.java.lang.Double
getInputEnd()
Simple field ome.model.display.ChannelBinding.inputEnd (java.lang.Double)java.lang.Double
getInputStart()
Simple field ome.model.display.ChannelBinding.inputStart (java.lang.Double)java.lang.String
getLookupTable()
Simple field ome.model.display.ChannelBinding.lookupTable (java.lang.String)java.lang.Boolean
getNoiseReduction()
Simple field ome.model.display.ChannelBinding.noiseReduction (java.lang.Boolean)CodomainMapContext
getPrimaryCodomainMapContext()
Gets the first element of spatialDomainEnhancement which can be interpreted as the primary or default element in some situations.java.lang.Integer
getRed()
Simple field ome.model.display.ChannelBinding.red (java.lang.Integer)RenderingDef
getRenderingDef()
Many-to-one field ome.model.display.ChannelBinding.renderingDef (ome.model.display.RenderingDef)protected java.util.List<CodomainMapContext>
getSpatialDomainEnhancement()
returns spatialDomainEnhancement .java.lang.Integer
getVersion()
This version number is controlled by the database for optimisitic locking.boolean
isLoaded()
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.boolean
isValid()
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.ChannelBinding
newInstance()
ChannelBinding
proxy()
void
putAt(java.lang.String field, java.lang.Object value)
stores a value in this instance.void
removeCodomainMapContext(CodomainMapContext target)
removes a single element from this set and makes the inverse call on ome.model.display.CodomainMapContextvoid
removeCodomainMapContextSet(java.util.Collection<CodomainMapContext> targets)
use like removeCodomainMapContextjava.lang.Object
retrieve(java.lang.String field)
retrieves a value from this instance.void
setActive(java.lang.Boolean active)
void
setAlpha(java.lang.Integer alpha)
void
setBlue(java.lang.Integer blue)
CodomainMapContext
setCodomainMapContext(int index, CodomainMapContext element)
Sets the ome.model.display.CodomainMapContext at the given index.void
setCoefficient(java.lang.Double coefficient)
protected void
setDetails(Details details)
void
setFamily(Family family)
void
setGreen(java.lang.Integer green)
void
setId(java.lang.Long id)
usually unneeded.void
setInputEnd(java.lang.Double inputEnd)
void
setInputStart(java.lang.Double inputStart)
void
setLookupTable(java.lang.String lookupTable)
void
setNoiseReduction(java.lang.Boolean noiseReduction)
CodomainMapContext
setPrimaryCodomainMapContext(CodomainMapContext element)
Swaps the first element of spatialDomainEnhancement with the first instance of the given element.void
setRed(java.lang.Integer red)
void
setRenderingDef(RenderingDef renderingDef)
protected void
setSpatialDomainEnhancement(java.util.List<CodomainMapContext> spatialDomainEnhancement)
setter for spatialDomainEnhancement should be avoided.void
setVersion(java.lang.Integer version)
use with caution.int
sizeOfSpatialDomainEnhancement()
returns the size of spatialDomainEnhancement.protected void
throwNullCollectionException(java.lang.String propertyName)
java.lang.String
toString()
void
unload()
set the loaded field to false, and set all non-ID fields to null.java.util.Collection<CodomainMapContext>
unmodifiableSpatialDomainEnhancement()
Returns an unmodifiable collection-viewValidation
validate()
calls the class-specific validator for this instance and returns theValidation
object.
-
-
-
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:IObject
usually 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:
getVersion
in interfaceIMutable
-
setVersion
public void setVersion(java.lang.Integer version)
Description copied from interface:IMutable
use 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:
setVersion
in 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, anIndexOutOfBoundsException
is throws. This method will also throw anApiUsageException
if 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, anIndexOutOfBoundsException
will be thrown. Returns the swapped element. This method will also throw anApiUsageException
if 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 theDetails
type.- Specified by:
getDetails
in interfaceIObject
-
setDetails
protected void setDetails(Details details)
-
isValid
public boolean isValid()
Description copied from interface:IObject
calls the class-specific validator for this instance and returns the value fromValidation.isValid()
-
validate
public Validation validate()
Description copied from interface:IObject
calls the class-specific validator for this instance and returns theValidation
object.
-
newInstance
public ChannelBinding newInstance()
-
proxy
public ChannelBinding proxy()
-
acceptFilter
public boolean acceptFilter(Filter __filter)
- Specified by:
acceptFilter
in interfaceFilterable
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
fields
public java.util.Set<java.lang.String> fields()
Description copied from interface:IObject
returns a Set of field names that belong to this class
-
retrieve
public java.lang.Object retrieve(java.lang.String field)
Description copied from interface:IObject
retrieves a value from this instance. Values forfield
which 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:IObject
stores a value in this instance. Values forfield
which 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:IObject
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.
-
errorIfUnloaded
protected void errorIfUnloaded()
-
unload
public void unload()
Description copied from interface:IObject
set 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:IObject
retrieves theGraphHolder
for this entity. If the GraphHolder has not been actively set, a new one will be instatiated.- Specified by:
getGraphHolder
in interfaceIObject
- Returns:
- Non-null GraphHolder
-
throwNullCollectionException
protected void throwNullCollectionException(java.lang.String propertyName)
-
-