Package ome.model.core
Class Pixels
- java.lang.Object
-
- ome.model.core.Pixels
-
- 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 Pixels 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
Pixels.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.util.List<Channel>
channels
static java.lang.String
CHANNELS
protected Details
details
static java.lang.String
DETAILS
protected DimensionOrder
dimensionOrder
static java.lang.String
DIMENSIONORDER
static java.lang.String
EVENT_FILTER
static java.lang.String
EVENT_FILTER_CHANNELS
static java.lang.String
EVENT_FILTER_PIXELSFILEMAPS
static java.lang.String
EVENT_FILTER_PLANEINFO
static java.lang.String
EVENT_FILTER_SETTINGS
static java.lang.String
EVENT_FILTER_THUMBNAILS
static java.util.Set<java.lang.String>
FIELDS
static java.lang.String
GROUP_FILTER
static java.lang.String
GROUP_FILTER_CHANNELS
static java.lang.String
GROUP_FILTER_PIXELSFILEMAPS
static java.lang.String
GROUP_FILTER_PLANEINFO
static java.lang.String
GROUP_FILTER_SETTINGS
static java.lang.String
GROUP_FILTER_THUMBNAILS
protected java.lang.Long
id
static java.lang.String
ID
protected Image
image
static java.lang.String
IMAGE
protected java.lang.String
methodology
static java.lang.String
METHODOLOGY
static java.lang.String
OWNER_FILTER
static java.lang.String
OWNER_FILTER_CHANNELS
static java.lang.String
OWNER_FILTER_PIXELSFILEMAPS
static java.lang.String
OWNER_FILTER_PLANEINFO
static java.lang.String
OWNER_FILTER_SETTINGS
static java.lang.String
OWNER_FILTER_THUMBNAILS
static java.lang.String
PERMS_FILTER
static java.lang.String
PERMS_FILTER_CHANNELS
static java.lang.String
PERMS_FILTER_PIXELSFILEMAPS
static java.lang.String
PERMS_FILTER_PLANEINFO
static java.lang.String
PERMS_FILTER_SETTINGS
static java.lang.String
PERMS_FILTER_THUMBNAILS
protected Length
physicalSizeX
static java.lang.String
PHYSICALSIZEX
protected Length
physicalSizeY
static java.lang.String
PHYSICALSIZEY
protected Length
physicalSizeZ
static java.lang.String
PHYSICALSIZEZ
protected java.util.Set<PixelsOriginalFileMap>
pixelsFileMaps
static java.lang.String
PIXELSFILEMAPS
static java.lang.String
PIXELSFILEMAPSCOUNTPEROWNER
protected PixelsType
pixelsType
static java.lang.String
PIXELSTYPE
protected java.util.Set<PlaneInfo>
planeInfo
static java.lang.String
PLANEINFO
protected Pixels
relatedTo
Deprecated.static java.lang.String
RELATEDTO
Deprecated.protected java.util.Set<RenderingDef>
settings
static java.lang.String
SETTINGS
protected java.lang.String
sha1
static java.lang.String
SHA1
protected java.lang.Integer
significantBits
static java.lang.String
SIGNIFICANTBITS
protected java.lang.Integer
sizeC
static java.lang.String
SIZEC
protected java.lang.Integer
sizeT
static java.lang.String
SIZET
protected java.lang.Integer
sizeX
static java.lang.String
SIZEX
protected java.lang.Integer
sizeY
static java.lang.String
SIZEY
protected java.lang.Integer
sizeZ
static java.lang.String
SIZEZ
protected java.util.Set<Thumbnail>
thumbnails
static java.lang.String
THUMBNAILS
protected Time
timeIncrement
static java.lang.String
TIMEINCREMENT
protected java.lang.Integer
version
static java.lang.String
VERSION
protected java.lang.Integer
waveIncrement
static java.lang.String
WAVEINCREMENT
protected java.lang.Integer
waveStart
static java.lang.String
WAVESTART
-
Constructor Summary
Constructors Modifier Constructor Description Pixels()
protected
Pixels(java.lang.Long id)
Pixels(java.lang.Long id, boolean loaded)
Main constructor.Pixels(Image _image, PixelsType _pixelsType, java.lang.Integer _sizeX, java.lang.Integer _sizeY, java.lang.Integer _sizeZ, java.lang.Integer _sizeC, java.lang.Integer _sizeT, java.lang.String _sha1, DimensionOrder _dimensionOrder)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
acceptFilter(Filter __filter)
void
addChannel(Channel target)
use instead of setChannels .void
addChannelSet(java.util.Collection<Channel> targets)
use like addChannel.void
addPixelsOriginalFileMap(PixelsOriginalFileMap target)
use instead of setPixelsFileMaps .void
addPixelsOriginalFileMap(PixelsOriginalFileMap link, boolean bothSides)
Adds a ome.model.core.PixelsOriginalFileMap to pixelsFileMaps, allowing for recursion -- whether or not addPixelsOriginalFileMap will be called on the addition if it is loadedvoid
addPixelsOriginalFileMapSet(java.util.Collection<PixelsOriginalFileMap> targets)
use like addPixelsOriginalFileMap.void
addPlaneInfo(PlaneInfo target)
use instead of setPlaneInfo .void
addPlaneInfoSet(java.util.Collection<PlaneInfo> targets)
use like addPlaneInfo.void
addRenderingDef(RenderingDef target)
use instead of setSettings .void
addRenderingDefSet(java.util.Collection<RenderingDef> targets)
use like addRenderingDef.void
addThumbnail(Thumbnail target)
use instead of setThumbnails .void
addThumbnailSet(java.util.Collection<Thumbnail> targets)
use like addThumbnail.void
clearChannels()
clears the set.void
clearOriginalFileLinks()
clears the set.void
clearPlaneInfo()
clears the set.void
clearSettings()
clears the set.void
clearThumbnails()
clears the set.<E> java.util.List<E>
collectChannels(CBlock<E> block)
takes a CBlock and calls the block once for each ome.model.core.Channel while collecting the results.<E> java.util.List<E>
collectPixelsFileMaps(CBlock<E> block)
takes a CBlock and calls the block once for each ome.model.core.PixelsOriginalFileMap while collecting the results.<E> java.util.List<E>
collectPlaneInfo(CBlock<E> block)
takes a CBlock and calls the block once for each ome.model.core.PlaneInfo while collecting the results.<E> java.util.List<E>
collectSettings(CBlock<E> block)
takes a CBlock and calls the block once for each ome.model.display.RenderingDef while collecting the results.<E> java.util.List<E>
collectThumbnails(CBlock<E> block)
takes a CBlock and calls the block once for each ome.model.display.Thumbnail while collecting the results.<E> java.util.List<E>
eachLinkedOriginalFile(CBlock<E> block)
takes a CBlock and calls the block once for each ome.model.core.OriginalFile 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.util.Set<PixelsOriginalFileMap>
findPixelsOriginalFileMap(OriginalFile target)
find all ome.model.core.PixelsOriginalFileMap which have the argument as their parent.Channel
getChannel(int index)
Gets the ome.model.core.Channel at the given index.protected java.util.List<Channel>
getChannels()
returns channels .Details
getDetails()
The details of this object correspond to low-level system information.DimensionOrder
getDimensionOrder()
Many-to-one field ome.model.core.Pixels.dimensionOrder (ome.model.enums.DimensionOrder)GraphHolder
getGraphHolder()
retrieves theGraphHolder
for this entity.java.lang.Long
getId()
The DB unique identifier for this object.Image
getImage()
Many-to-one field ome.model.core.Pixels.image (ome.model.core.Image)java.lang.String
getMethodology()
Simple field ome.model.core.Pixels.methodology (java.lang.String)Length
getPhysicalSizeX()
Enum-mapped unit-based field ome.model.core.Pixels.physicalSizeX (ome.model.units.Length)Length
getPhysicalSizeY()
Enum-mapped unit-based field ome.model.core.Pixels.physicalSizeY (ome.model.units.Length)Length
getPhysicalSizeZ()
Enum-mapped unit-based field ome.model.core.Pixels.physicalSizeZ (ome.model.units.Length)protected java.util.Set<PixelsOriginalFileMap>
getPixelsFileMaps()
returns pixelsFileMaps .java.util.Map<java.lang.Long,java.lang.Long>
getPixelsFileMapsCountPerOwner()
If fetched, returns the count(*) of ome.model.core.PixelsOriginalFileMap that a user has.PixelsType
getPixelsType()
Many-to-one field ome.model.core.Pixels.pixelsType (ome.model.enums.PixelsType)protected java.util.Set<PlaneInfo>
getPlaneInfo()
returns planeInfo .Channel
getPrimaryChannel()
Gets the first element of channels which can be interpreted as the primary or default element in some situations.Pixels
getRelatedTo()
Deprecated.protected java.util.Set<RenderingDef>
getSettings()
returns settings .java.lang.String
getSha1()
Simple field ome.model.core.Pixels.sha1 (java.lang.String)java.lang.Integer
getSignificantBits()
Simple field ome.model.core.Pixels.significantBits (java.lang.Integer)java.lang.Integer
getSizeC()
Simple field ome.model.core.Pixels.sizeC (java.lang.Integer)java.lang.Integer
getSizeT()
Simple field ome.model.core.Pixels.sizeT (java.lang.Integer)java.lang.Integer
getSizeX()
Simple field ome.model.core.Pixels.sizeX (java.lang.Integer)java.lang.Integer
getSizeY()
Simple field ome.model.core.Pixels.sizeY (java.lang.Integer)java.lang.Integer
getSizeZ()
Simple field ome.model.core.Pixels.sizeZ (java.lang.Integer)protected java.util.Set<Thumbnail>
getThumbnails()
returns thumbnails .Time
getTimeIncrement()
Enum-mapped unit-based field ome.model.core.Pixels.timeIncrement (ome.model.units.Time)java.lang.Integer
getVersion()
This version number is controlled by the database for optimisitic locking.java.lang.Integer
getWaveIncrement()
Simple field ome.model.core.Pixels.waveIncrement (java.lang.Integer)java.lang.Integer
getWaveStart()
Simple field ome.model.core.Pixels.waveStart (java.lang.Integer)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<Channel>
iterateChannels()
should be used rather than accessing the channels set directly.java.util.Iterator<PixelsOriginalFileMap>
iteratePixelsFileMaps()
should be used rather than accessing the pixelsFileMaps set directly.java.util.Iterator<PlaneInfo>
iteratePlaneInfo()
should be used rather than accessing the planeInfo set directly.java.util.Iterator<RenderingDef>
iterateSettings()
should be used rather than accessing the settings set directly.java.util.Iterator<Thumbnail>
iterateThumbnails()
should be used rather than accessing the thumbnails set directly.java.util.Iterator<OriginalFile>
linkedOriginalFileIterator()
provides an iterator over the child values of the pixelsFileMaps.java.util.List<OriginalFile>
linkedOriginalFileList()
produces aList
-copy of the underlying collection.PixelsOriginalFileMap
linkOriginalFile(OriginalFile addition)
Adds a ome.model.core.PixelsOriginalFileMap to pixelsFileMaps .Pixels
newInstance()
Pixels
proxy()
void
putAt(java.lang.String field, java.lang.Object value)
stores a value in this instance.void
removeChannel(Channel target)
removes a single element from this set and makes the inverse call on ome.model.core.Channelvoid
removeChannelSet(java.util.Collection<Channel> targets)
use like removeChannelvoid
removePixelsOriginalFileMap(PixelsOriginalFileMap target)
removes a single element from this set and makes the inverse call on ome.model.core.PixelsOriginalFileMapvoid
removePixelsOriginalFileMap(PixelsOriginalFileMap link, boolean bothSides)
removes the given PixelsOriginalFileMap from pixelsFileMaps, allowing for recursion -- whether or not the removal will call unlinkPixels again if loaded.void
removePixelsOriginalFileMapSet(java.util.Collection<PixelsOriginalFileMap> targets)
use like removePixelsOriginalFileMapvoid
removePlaneInfo(PlaneInfo target)
removes a single element from this set and makes the inverse call on ome.model.core.PlaneInfovoid
removePlaneInfoSet(java.util.Collection<PlaneInfo> targets)
use like removePlaneInfovoid
removeRenderingDef(RenderingDef target)
removes a single element from this set and makes the inverse call on ome.model.display.RenderingDefvoid
removeRenderingDefSet(java.util.Collection<RenderingDef> targets)
use like removeRenderingDefvoid
removeThumbnail(Thumbnail target)
removes a single element from this set and makes the inverse call on ome.model.display.Thumbnailvoid
removeThumbnailSet(java.util.Collection<Thumbnail> targets)
use like removeThumbnailjava.lang.Object
retrieve(java.lang.String field)
retrieves a value from this instance.Channel
setChannel(int index, Channel element)
Sets the ome.model.core.Channel at the given index.protected void
setChannels(java.util.List<Channel> channels)
setter for channels should be avoided.protected void
setDetails(Details details)
void
setDimensionOrder(DimensionOrder dimensionOrder)
void
setId(java.lang.Long id)
usually unneeded.void
setImage(Image image)
void
setMethodology(java.lang.String methodology)
void
setPhysicalSizeX(Length physicalSizeX)
void
setPhysicalSizeY(Length physicalSizeY)
void
setPhysicalSizeZ(Length physicalSizeZ)
protected void
setPixelsFileMaps(java.util.Set<PixelsOriginalFileMap> pixelsFileMaps)
setter for pixelsFileMaps should be avoided.protected void
setPixelsFileMapsCountPerOwner(java.util.Map<java.lang.Long,java.lang.Long> map)
void
setPixelsType(PixelsType pixelsType)
protected void
setPlaneInfo(java.util.Set<PlaneInfo> planeInfo)
setter for planeInfo should be avoided.Channel
setPrimaryChannel(Channel element)
Swaps the first element of channels with the first instance of the given element.void
setRelatedTo(Pixels relatedTo)
Deprecated.protected void
setSettings(java.util.Set<RenderingDef> settings)
setter for settings should be avoided.void
setSha1(java.lang.String sha1)
void
setSignificantBits(java.lang.Integer significantBits)
void
setSizeC(java.lang.Integer sizeC)
void
setSizeT(java.lang.Integer sizeT)
void
setSizeX(java.lang.Integer sizeX)
void
setSizeY(java.lang.Integer sizeY)
void
setSizeZ(java.lang.Integer sizeZ)
protected void
setThumbnails(java.util.Set<Thumbnail> thumbnails)
setter for thumbnails should be avoided.void
setTimeIncrement(Time timeIncrement)
void
setVersion(java.lang.Integer version)
use with caution.void
setWaveIncrement(java.lang.Integer waveIncrement)
void
setWaveStart(java.lang.Integer waveStart)
int
sizeOfChannels()
returns the size of channels.int
sizeOfPixelsFileMaps()
returns the size of pixelsFileMaps.int
sizeOfPlaneInfo()
returns the size of planeInfo.int
sizeOfSettings()
returns the size of settings.int
sizeOfThumbnails()
returns the size of thumbnails.protected void
throwNullCollectionException(java.lang.String propertyName)
java.lang.String
toString()
void
unlinkOriginalFile(OriginalFile removal)
unlinks all ome.model.core.OriginalFile instances from this instance.void
unload()
set the loaded field to false, and set all non-ID fields to null.java.util.Collection<Channel>
unmodifiableChannels()
Returns an unmodifiable collection-viewjava.util.Collection<PixelsOriginalFileMap>
unmodifiablePixelsFileMaps()
Returns an unmodifiable collection-viewjava.util.Collection<PlaneInfo>
unmodifiablePlaneInfo()
Returns an unmodifiable collection-viewjava.util.Collection<RenderingDef>
unmodifiableSettings()
Returns an unmodifiable collection-viewjava.util.Collection<Thumbnail>
unmodifiableThumbnails()
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
-
image
protected Image image
-
relatedTo
@Deprecated protected Pixels relatedTo
Deprecated.
-
pixelsType
protected PixelsType pixelsType
-
significantBits
protected java.lang.Integer significantBits
-
sizeX
protected java.lang.Integer sizeX
-
sizeY
protected java.lang.Integer sizeY
-
sizeZ
protected java.lang.Integer sizeZ
-
sizeC
protected java.lang.Integer sizeC
-
sizeT
protected java.lang.Integer sizeT
-
sha1
protected java.lang.String sha1
-
dimensionOrder
protected DimensionOrder dimensionOrder
-
physicalSizeX
protected Length physicalSizeX
-
physicalSizeY
protected Length physicalSizeY
-
physicalSizeZ
protected Length physicalSizeZ
-
waveStart
protected java.lang.Integer waveStart
-
waveIncrement
protected java.lang.Integer waveIncrement
-
timeIncrement
protected Time timeIncrement
-
methodology
protected java.lang.String methodology
-
planeInfo
protected java.util.Set<PlaneInfo> planeInfo
-
OWNER_FILTER_PLANEINFO
public static final java.lang.String OWNER_FILTER_PLANEINFO
- See Also:
- Constant Field Values
-
GROUP_FILTER_PLANEINFO
public static final java.lang.String GROUP_FILTER_PLANEINFO
- See Also:
- Constant Field Values
-
EVENT_FILTER_PLANEINFO
public static final java.lang.String EVENT_FILTER_PLANEINFO
- See Also:
- Constant Field Values
-
PERMS_FILTER_PLANEINFO
public static final java.lang.String PERMS_FILTER_PLANEINFO
- See Also:
- Constant Field Values
-
pixelsFileMaps
protected java.util.Set<PixelsOriginalFileMap> pixelsFileMaps
-
OWNER_FILTER_PIXELSFILEMAPS
public static final java.lang.String OWNER_FILTER_PIXELSFILEMAPS
- See Also:
- Constant Field Values
-
GROUP_FILTER_PIXELSFILEMAPS
public static final java.lang.String GROUP_FILTER_PIXELSFILEMAPS
- See Also:
- Constant Field Values
-
EVENT_FILTER_PIXELSFILEMAPS
public static final java.lang.String EVENT_FILTER_PIXELSFILEMAPS
- See Also:
- Constant Field Values
-
PERMS_FILTER_PIXELSFILEMAPS
public static final java.lang.String PERMS_FILTER_PIXELSFILEMAPS
- See Also:
- Constant Field Values
-
channels
protected java.util.List<Channel> channels
-
OWNER_FILTER_CHANNELS
public static final java.lang.String OWNER_FILTER_CHANNELS
- See Also:
- Constant Field Values
-
GROUP_FILTER_CHANNELS
public static final java.lang.String GROUP_FILTER_CHANNELS
- See Also:
- Constant Field Values
-
EVENT_FILTER_CHANNELS
public static final java.lang.String EVENT_FILTER_CHANNELS
- See Also:
- Constant Field Values
-
PERMS_FILTER_CHANNELS
public static final java.lang.String PERMS_FILTER_CHANNELS
- See Also:
- Constant Field Values
-
settings
protected java.util.Set<RenderingDef> settings
-
OWNER_FILTER_SETTINGS
public static final java.lang.String OWNER_FILTER_SETTINGS
- See Also:
- Constant Field Values
-
GROUP_FILTER_SETTINGS
public static final java.lang.String GROUP_FILTER_SETTINGS
- See Also:
- Constant Field Values
-
EVENT_FILTER_SETTINGS
public static final java.lang.String EVENT_FILTER_SETTINGS
- See Also:
- Constant Field Values
-
PERMS_FILTER_SETTINGS
public static final java.lang.String PERMS_FILTER_SETTINGS
- See Also:
- Constant Field Values
-
thumbnails
protected java.util.Set<Thumbnail> thumbnails
-
OWNER_FILTER_THUMBNAILS
public static final java.lang.String OWNER_FILTER_THUMBNAILS
- See Also:
- Constant Field Values
-
GROUP_FILTER_THUMBNAILS
public static final java.lang.String GROUP_FILTER_THUMBNAILS
- See Also:
- Constant Field Values
-
EVENT_FILTER_THUMBNAILS
public static final java.lang.String EVENT_FILTER_THUMBNAILS
- See Also:
- Constant Field Values
-
PERMS_FILTER_THUMBNAILS
public static final java.lang.String PERMS_FILTER_THUMBNAILS
- See Also:
- Constant Field Values
-
details
protected Details details
-
IMAGE
public static final java.lang.String IMAGE
- See Also:
- Constant Field Values
-
RELATEDTO
@Deprecated public static final java.lang.String RELATEDTO
Deprecated.- See Also:
- Constant Field Values
-
PIXELSTYPE
public static final java.lang.String PIXELSTYPE
- See Also:
- Constant Field Values
-
SIGNIFICANTBITS
public static final java.lang.String SIGNIFICANTBITS
- See Also:
- Constant Field Values
-
SIZEX
public static final java.lang.String SIZEX
- See Also:
- Constant Field Values
-
SIZEY
public static final java.lang.String SIZEY
- See Also:
- Constant Field Values
-
SIZEZ
public static final java.lang.String SIZEZ
- See Also:
- Constant Field Values
-
SIZEC
public static final java.lang.String SIZEC
- See Also:
- Constant Field Values
-
SIZET
public static final java.lang.String SIZET
- See Also:
- Constant Field Values
-
SHA1
public static final java.lang.String SHA1
- See Also:
- Constant Field Values
-
DIMENSIONORDER
public static final java.lang.String DIMENSIONORDER
- See Also:
- Constant Field Values
-
PHYSICALSIZEX
public static final java.lang.String PHYSICALSIZEX
- See Also:
- Constant Field Values
-
PHYSICALSIZEY
public static final java.lang.String PHYSICALSIZEY
- See Also:
- Constant Field Values
-
PHYSICALSIZEZ
public static final java.lang.String PHYSICALSIZEZ
- See Also:
- Constant Field Values
-
WAVESTART
public static final java.lang.String WAVESTART
- See Also:
- Constant Field Values
-
WAVEINCREMENT
public static final java.lang.String WAVEINCREMENT
- See Also:
- Constant Field Values
-
TIMEINCREMENT
public static final java.lang.String TIMEINCREMENT
- See Also:
- Constant Field Values
-
METHODOLOGY
public static final java.lang.String METHODOLOGY
- See Also:
- Constant Field Values
-
PLANEINFO
public static final java.lang.String PLANEINFO
- See Also:
- Constant Field Values
-
PIXELSFILEMAPSCOUNTPEROWNER
public static final java.lang.String PIXELSFILEMAPSCOUNTPEROWNER
- See Also:
- Constant Field Values
-
PIXELSFILEMAPS
public static final java.lang.String PIXELSFILEMAPS
- See Also:
- Constant Field Values
-
CHANNELS
public static final java.lang.String CHANNELS
- See Also:
- Constant Field Values
-
SETTINGS
public static final java.lang.String SETTINGS
- See Also:
- Constant Field Values
-
THUMBNAILS
public static final java.lang.String THUMBNAILS
- 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
-
Pixels
public Pixels()
-
Pixels
protected Pixels(java.lang.Long id)
-
Pixels
public Pixels(java.lang.Long id, boolean loaded)
Main constructor.
-
Pixels
public Pixels(Image _image, PixelsType _pixelsType, java.lang.Integer _sizeX, java.lang.Integer _sizeY, java.lang.Integer _sizeZ, java.lang.Integer _sizeC, java.lang.Integer _sizeT, java.lang.String _sha1, DimensionOrder _dimensionOrder)
-
-
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.
-
getImage
public Image getImage()
Many-to-one field ome.model.core.Pixels.image (ome.model.core.Image)
-
setImage
public void setImage(Image image)
-
getRelatedTo
@Deprecated public Pixels getRelatedTo()
Deprecated.Many-to-one field ome.model.core.Pixels.relatedTo (ome.model.core.Pixels)
-
setRelatedTo
@Deprecated public void setRelatedTo(Pixels relatedTo)
Deprecated.
-
getPixelsType
public PixelsType getPixelsType()
Many-to-one field ome.model.core.Pixels.pixelsType (ome.model.enums.PixelsType)
-
setPixelsType
public void setPixelsType(PixelsType pixelsType)
-
getSignificantBits
@Field(index=UN_TOKENIZED) @Field(index=TOKENIZED,analyzer=@Analyzer(impl=ConfiguredAnalyzer.class),name="combined_fields") public java.lang.Integer getSignificantBits()
Simple field ome.model.core.Pixels.significantBits (java.lang.Integer)
-
setSignificantBits
public void setSignificantBits(java.lang.Integer significantBits)
-
getSizeX
@Field(index=UN_TOKENIZED) @Field(index=TOKENIZED,analyzer=@Analyzer(impl=ConfiguredAnalyzer.class),name="combined_fields") public java.lang.Integer getSizeX()
Simple field ome.model.core.Pixels.sizeX (java.lang.Integer)
-
setSizeX
public void setSizeX(java.lang.Integer sizeX)
-
getSizeY
@Field(index=UN_TOKENIZED) @Field(index=TOKENIZED,analyzer=@Analyzer(impl=ConfiguredAnalyzer.class),name="combined_fields") public java.lang.Integer getSizeY()
Simple field ome.model.core.Pixels.sizeY (java.lang.Integer)
-
setSizeY
public void setSizeY(java.lang.Integer sizeY)
-
getSizeZ
@Field(index=UN_TOKENIZED) @Field(index=TOKENIZED,analyzer=@Analyzer(impl=ConfiguredAnalyzer.class),name="combined_fields") public java.lang.Integer getSizeZ()
Simple field ome.model.core.Pixels.sizeZ (java.lang.Integer)
-
setSizeZ
public void setSizeZ(java.lang.Integer sizeZ)
-
getSizeC
@Field(index=UN_TOKENIZED) @Field(index=TOKENIZED,analyzer=@Analyzer(impl=ConfiguredAnalyzer.class),name="combined_fields") public java.lang.Integer getSizeC()
Simple field ome.model.core.Pixels.sizeC (java.lang.Integer)
-
setSizeC
public void setSizeC(java.lang.Integer sizeC)
-
getSizeT
@Field(index=UN_TOKENIZED) @Field(index=TOKENIZED,analyzer=@Analyzer(impl=ConfiguredAnalyzer.class),name="combined_fields") public java.lang.Integer getSizeT()
Simple field ome.model.core.Pixels.sizeT (java.lang.Integer)
-
setSizeT
public void setSizeT(java.lang.Integer sizeT)
-
getSha1
@Field(index=TOKENIZED) @Field(index=TOKENIZED,analyzer=@Analyzer(impl=ConfiguredAnalyzer.class),name="combined_fields") public java.lang.String getSha1()
Simple field ome.model.core.Pixels.sha1 (java.lang.String)
-
setSha1
public void setSha1(java.lang.String sha1)
-
getDimensionOrder
public DimensionOrder getDimensionOrder()
Many-to-one field ome.model.core.Pixels.dimensionOrder (ome.model.enums.DimensionOrder)
-
setDimensionOrder
public void setDimensionOrder(DimensionOrder dimensionOrder)
-
getPhysicalSizeX
public Length getPhysicalSizeX()
Enum-mapped unit-based field ome.model.core.Pixels.physicalSizeX (ome.model.units.Length)
-
setPhysicalSizeX
public void setPhysicalSizeX(Length physicalSizeX)
-
getPhysicalSizeY
public Length getPhysicalSizeY()
Enum-mapped unit-based field ome.model.core.Pixels.physicalSizeY (ome.model.units.Length)
-
setPhysicalSizeY
public void setPhysicalSizeY(Length physicalSizeY)
-
getPhysicalSizeZ
public Length getPhysicalSizeZ()
Enum-mapped unit-based field ome.model.core.Pixels.physicalSizeZ (ome.model.units.Length)
-
setPhysicalSizeZ
public void setPhysicalSizeZ(Length physicalSizeZ)
-
getWaveStart
@Field(index=UN_TOKENIZED) @Field(index=TOKENIZED,analyzer=@Analyzer(impl=ConfiguredAnalyzer.class),name="combined_fields") public java.lang.Integer getWaveStart()
Simple field ome.model.core.Pixels.waveStart (java.lang.Integer)
-
setWaveStart
public void setWaveStart(java.lang.Integer waveStart)
-
getWaveIncrement
@Field(index=UN_TOKENIZED) @Field(index=TOKENIZED,analyzer=@Analyzer(impl=ConfiguredAnalyzer.class),name="combined_fields") public java.lang.Integer getWaveIncrement()
Simple field ome.model.core.Pixels.waveIncrement (java.lang.Integer)
-
setWaveIncrement
public void setWaveIncrement(java.lang.Integer waveIncrement)
-
getTimeIncrement
public Time getTimeIncrement()
Enum-mapped unit-based field ome.model.core.Pixels.timeIncrement (ome.model.units.Time)
-
setTimeIncrement
public void setTimeIncrement(Time timeIncrement)
-
getMethodology
@Field(index=TOKENIZED) @Field(index=TOKENIZED,analyzer=@Analyzer(impl=ConfiguredAnalyzer.class),name="combined_fields") public java.lang.String getMethodology()
Simple field ome.model.core.Pixels.methodology (java.lang.String)
-
setMethodology
public void setMethodology(java.lang.String methodology)
-
getPlaneInfo
protected java.util.Set<PlaneInfo> getPlaneInfo()
returns planeInfo . You should not modify this collection unless you know what you are doing. Use the iterate method instead. one-to-many Set ome.model.core.Pixels.planeInfo (ome.model.core.PlaneInfo)
-
setPlaneInfo
protected void setPlaneInfo(java.util.Set<PlaneInfo> planeInfo)
setter for planeInfo should be avoided. Does not fulfill normal semantics.
-
sizeOfPlaneInfo
public int sizeOfPlaneInfo()
returns the size of planeInfo. If less than zero, the Set was null.
-
iteratePlaneInfo
public java.util.Iterator<PlaneInfo> iteratePlaneInfo()
should be used rather than accessing the planeInfo set directly. This method will never return null, but rather will return an instance ofEmptyIterator
. To test for a null collection, see ofsizeOfPlaneInfo()
is less than zero.
-
unmodifiablePlaneInfo
public java.util.Collection<PlaneInfo> unmodifiablePlaneInfo()
Returns an unmodifiable collection-view
-
collectPlaneInfo
public <E> java.util.List<E> collectPlaneInfo(CBlock<E> block)
takes a CBlock and calls the block once for each ome.model.core.PlaneInfo while collecting the results. Ifblock == null
, then the iterator values themselves are collected. This method usesiteratePlaneInfo()
internally and so will return a value even if the underlying collection is null.
-
addPlaneInfo
public void addPlaneInfo(PlaneInfo target)
use instead of setPlaneInfo . Makes the necessary call on ome.model.core.PlaneInfo as well.
-
addPlaneInfoSet
public void addPlaneInfoSet(java.util.Collection<PlaneInfo> targets)
use like addPlaneInfo.
-
removePlaneInfo
public void removePlaneInfo(PlaneInfo target)
removes a single element from this set and makes the inverse call on ome.model.core.PlaneInfo
-
removePlaneInfoSet
public void removePlaneInfoSet(java.util.Collection<PlaneInfo> targets)
use like removePlaneInfo
-
clearPlaneInfo
public void clearPlaneInfo()
clears the set.
-
getPixelsFileMaps
protected java.util.Set<PixelsOriginalFileMap> getPixelsFileMaps()
returns pixelsFileMaps . You should not modify this collection unless you know what you are doing. Use the iterate method instead. one-to-many Set ome.model.core.Pixels.pixelsFileMaps (ome.model.core.PixelsOriginalFileMap)
-
setPixelsFileMaps
protected void setPixelsFileMaps(java.util.Set<PixelsOriginalFileMap> pixelsFileMaps)
setter for pixelsFileMaps should be avoided. Does not fulfill normal semantics.
-
sizeOfPixelsFileMaps
public int sizeOfPixelsFileMaps()
returns the size of pixelsFileMaps. If less than zero, the Set was null.
-
iteratePixelsFileMaps
public java.util.Iterator<PixelsOriginalFileMap> iteratePixelsFileMaps()
should be used rather than accessing the pixelsFileMaps set directly. This method will never return null, but rather will return an instance ofEmptyIterator
. To test for a null collection, see ofsizeOfPixelsFileMaps()
is less than zero.
-
unmodifiablePixelsFileMaps
public java.util.Collection<PixelsOriginalFileMap> unmodifiablePixelsFileMaps()
Returns an unmodifiable collection-view
-
collectPixelsFileMaps
public <E> java.util.List<E> collectPixelsFileMaps(CBlock<E> block)
takes a CBlock and calls the block once for each ome.model.core.PixelsOriginalFileMap while collecting the results. Ifblock == null
, then the iterator values themselves are collected. This method usesiteratePixelsFileMaps()
internally and so will return a value even if the underlying collection is null.
-
addPixelsOriginalFileMap
public void addPixelsOriginalFileMap(PixelsOriginalFileMap target)
use instead of setPixelsFileMaps . Makes the necessary call on ome.model.core.PixelsOriginalFileMap as well.
-
addPixelsOriginalFileMapSet
public void addPixelsOriginalFileMapSet(java.util.Collection<PixelsOriginalFileMap> targets)
use like addPixelsOriginalFileMap.
-
removePixelsOriginalFileMap
public void removePixelsOriginalFileMap(PixelsOriginalFileMap target)
removes a single element from this set and makes the inverse call on ome.model.core.PixelsOriginalFileMap
-
removePixelsOriginalFileMapSet
public void removePixelsOriginalFileMapSet(java.util.Collection<PixelsOriginalFileMap> targets)
use like removePixelsOriginalFileMap
-
linkOriginalFile
public PixelsOriginalFileMap linkOriginalFile(OriginalFile addition)
Adds a ome.model.core.PixelsOriginalFileMap to pixelsFileMaps . This entails changing our pixelsFileMaps Set, creating a new ome.model.core.PixelsOriginalFileMap and calling linkOriginalFile on the ome.model.core.OriginalFile.
-
addPixelsOriginalFileMap
public void addPixelsOriginalFileMap(PixelsOriginalFileMap link, boolean bothSides)
Adds a ome.model.core.PixelsOriginalFileMap to pixelsFileMaps, allowing for recursion -- whether or not addPixelsOriginalFileMap will be called on the addition if it is loaded
-
linkedOriginalFileIterator
public java.util.Iterator<OriginalFile> linkedOriginalFileIterator()
provides an iterator over the child values of the pixelsFileMaps. Like with most Collection iterators, modifications to the underlying collection while iterating will result in anConcurrentModificationException
. UselinkedOriginalFileList()
instead.
-
findPixelsOriginalFileMap
public java.util.Set<PixelsOriginalFileMap> findPixelsOriginalFileMap(OriginalFile target)
find all ome.model.core.PixelsOriginalFileMap which have the argument as their parent.
-
linkedOriginalFileList
public java.util.List<OriginalFile> linkedOriginalFileList()
produces aList
-copy of the underlying collection. Unlike,linkedOriginalFileIterator()
, while using the returnedList
, modifications can be made to the underlying collection without throwingConcurrentModificationException
.
-
eachLinkedOriginalFile
public <E> java.util.List<E> eachLinkedOriginalFile(CBlock<E> block)
takes a CBlock and calls the block once for each ome.model.core.OriginalFile while collecting the results. Ifblock == null
, then the iterator values themselves are collected.
-
unlinkOriginalFile
public void unlinkOriginalFile(OriginalFile removal)
unlinks all ome.model.core.OriginalFile instances from this instance.
-
removePixelsOriginalFileMap
public void removePixelsOriginalFileMap(PixelsOriginalFileMap link, boolean bothSides)
removes the given PixelsOriginalFileMap from pixelsFileMaps, allowing for recursion -- whether or not the removal will call unlinkPixels again if loaded.
-
clearOriginalFileLinks
public void clearOriginalFileLinks()
clears the set.
-
setPixelsFileMapsCountPerOwner
protected void setPixelsFileMapsCountPerOwner(java.util.Map<java.lang.Long,java.lang.Long> map)
-
getPixelsFileMapsCountPerOwner
public java.util.Map<java.lang.Long,java.lang.Long> getPixelsFileMapsCountPerOwner()
If fetched, returns the count(*) of ome.model.core.PixelsOriginalFileMap that a user has. If unfetched, returns null. No entries in the collection should be null.
-
getChannels
protected java.util.List<Channel> getChannels()
returns channels . You should not modify this collection unless you know what you are doing. Use the iterate method instead. one-to-many List ome.model.core.Pixels.channels (ome.model.core.Channel) Values are indexed by the column "index" on ome.model.core.Channel
-
setChannels
protected void setChannels(java.util.List<Channel> channels)
setter for channels should be avoided. Does not fulfill normal semantics.
-
sizeOfChannels
public int sizeOfChannels()
returns the size of channels. If less than zero, the Set was null.
-
iterateChannels
public java.util.Iterator<Channel> iterateChannels()
should be used rather than accessing the channels set directly. This method will never return null, but rather will return an instance ofEmptyIterator
. To test for a null collection, see ofsizeOfChannels()
is less than zero.
-
unmodifiableChannels
public java.util.Collection<Channel> unmodifiableChannels()
Returns an unmodifiable collection-view
-
collectChannels
public <E> java.util.List<E> collectChannels(CBlock<E> block)
takes a CBlock and calls the block once for each ome.model.core.Channel while collecting the results. Ifblock == null
, then the iterator values themselves are collected. This method usesiterateChannels()
internally and so will return a value even if the underlying collection is null.
-
addChannel
public void addChannel(Channel target)
use instead of setChannels . Makes the necessary call on ome.model.core.Channel as well.
-
addChannelSet
public void addChannelSet(java.util.Collection<Channel> targets)
use like addChannel.
-
removeChannel
public void removeChannel(Channel target)
removes a single element from this set and makes the inverse call on ome.model.core.Channel
-
removeChannelSet
public void removeChannelSet(java.util.Collection<Channel> targets)
use like removeChannel
-
clearChannels
public void clearChannels()
clears the set.
-
getChannel
public Channel getChannel(int index) throws java.lang.IndexOutOfBoundsException
Gets the ome.model.core.Channel at the given index.- Throws:
java.lang.IndexOutOfBoundsException
-
setChannel
public Channel setChannel(int index, Channel element) throws java.lang.IndexOutOfBoundsException
Sets the ome.model.core.Channel at the given index. Adheres to theList.set(int, Object)
contract. To extend the list, useaddChannel(Channel)
.- Throws:
java.lang.IndexOutOfBoundsException
- See Also:
List.set(int, Object)
-
getPrimaryChannel
public Channel getPrimaryChannel() throws java.lang.IndexOutOfBoundsException
Gets the first element of channels 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. SeesizeOfChannels()
for more information.- Throws:
java.lang.IndexOutOfBoundsException
-
setPrimaryChannel
public Channel setPrimaryChannel(Channel element) throws java.lang.IndexOutOfBoundsException
Swaps the first element of channels 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. SeesizeOfChannels()
for more information.- Throws:
java.lang.IndexOutOfBoundsException
-
getSettings
protected java.util.Set<RenderingDef> getSettings()
returns settings . You should not modify this collection unless you know what you are doing. Use the iterate method instead. one-to-many Set ome.model.core.Pixels.settings (ome.model.display.RenderingDef)
-
setSettings
protected void setSettings(java.util.Set<RenderingDef> settings)
setter for settings should be avoided. Does not fulfill normal semantics.
-
sizeOfSettings
public int sizeOfSettings()
returns the size of settings. If less than zero, the Set was null.
-
iterateSettings
public java.util.Iterator<RenderingDef> iterateSettings()
should be used rather than accessing the settings set directly. This method will never return null, but rather will return an instance ofEmptyIterator
. To test for a null collection, see ofsizeOfSettings()
is less than zero.
-
unmodifiableSettings
public java.util.Collection<RenderingDef> unmodifiableSettings()
Returns an unmodifiable collection-view
-
collectSettings
public <E> java.util.List<E> collectSettings(CBlock<E> block)
takes a CBlock and calls the block once for each ome.model.display.RenderingDef while collecting the results. Ifblock == null
, then the iterator values themselves are collected. This method usesiterateSettings()
internally and so will return a value even if the underlying collection is null.
-
addRenderingDef
public void addRenderingDef(RenderingDef target)
use instead of setSettings . Makes the necessary call on ome.model.display.RenderingDef as well.
-
addRenderingDefSet
public void addRenderingDefSet(java.util.Collection<RenderingDef> targets)
use like addRenderingDef.
-
removeRenderingDef
public void removeRenderingDef(RenderingDef target)
removes a single element from this set and makes the inverse call on ome.model.display.RenderingDef
-
removeRenderingDefSet
public void removeRenderingDefSet(java.util.Collection<RenderingDef> targets)
use like removeRenderingDef
-
clearSettings
public void clearSettings()
clears the set.
-
getThumbnails
protected java.util.Set<Thumbnail> getThumbnails()
returns thumbnails . You should not modify this collection unless you know what you are doing. Use the iterate method instead. one-to-many Set ome.model.core.Pixels.thumbnails (ome.model.display.Thumbnail)
-
setThumbnails
protected void setThumbnails(java.util.Set<Thumbnail> thumbnails)
setter for thumbnails should be avoided. Does not fulfill normal semantics.
-
sizeOfThumbnails
public int sizeOfThumbnails()
returns the size of thumbnails. If less than zero, the Set was null.
-
iterateThumbnails
public java.util.Iterator<Thumbnail> iterateThumbnails()
should be used rather than accessing the thumbnails set directly. This method will never return null, but rather will return an instance ofEmptyIterator
. To test for a null collection, see ofsizeOfThumbnails()
is less than zero.
-
unmodifiableThumbnails
public java.util.Collection<Thumbnail> unmodifiableThumbnails()
Returns an unmodifiable collection-view
-
collectThumbnails
public <E> java.util.List<E> collectThumbnails(CBlock<E> block)
takes a CBlock and calls the block once for each ome.model.display.Thumbnail while collecting the results. Ifblock == null
, then the iterator values themselves are collected. This method usesiterateThumbnails()
internally and so will return a value even if the underlying collection is null.
-
addThumbnail
public void addThumbnail(Thumbnail target)
use instead of setThumbnails . Makes the necessary call on ome.model.display.Thumbnail as well.
-
addThumbnailSet
public void addThumbnailSet(java.util.Collection<Thumbnail> targets)
use like addThumbnail.
-
removeThumbnail
public void removeThumbnail(Thumbnail target)
removes a single element from this set and makes the inverse call on ome.model.display.Thumbnail
-
removeThumbnailSet
public void removeThumbnailSet(java.util.Collection<Thumbnail> targets)
use like removeThumbnail
-
clearThumbnails
public void clearThumbnails()
clears the set.
-
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 Pixels newInstance()
-
proxy
public Pixels 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)
-
-