Package ome.model
Interface IMutable
-
- All Superinterfaces:
Filterable
,IObject
,java.io.Serializable
- All Known Implementing Classes:
AffineTransform
,Annotation
,AnnotationAnnotationLink
,Arc
,BasicAnnotation
,BooleanAnnotation
,Channel
,ChannelAnnotationLink
,ChannelBinding
,CodomainMapContext
,CommentAnnotation
,ContrastStretchingContext
,Dataset
,DatasetAnnotationLink
,DatasetImageLink
,Detector
,DetectorAnnotationLink
,DetectorSettings
,Dichroic
,DichroicAnnotationLink
,DoubleAnnotation
,Ellipse
,Experiment
,Experimenter
,ExperimenterAnnotationLink
,ExperimenterGroup
,ExperimenterGroupAnnotationLink
,Filament
,FileAnnotation
,Fileset
,FilesetAnnotationLink
,FilesetEntry
,FilesetJobLink
,Filter
,FilterAnnotationLink
,FilterSet
,FilterSetEmissionFilterLink
,FilterSetExcitationFilterLink
,Folder
,FolderAnnotationLink
,FolderImageLink
,FolderRoiLink
,GenericExcitationSource
,GroupExperimenterMap
,Image
,ImageAnnotationLink
,ImagingEnvironment
,ImportJob
,IndexingJob
,Instrument
,InstrumentAnnotationLink
,IntegrityCheckJob
,Job
,JobOriginalFileLink
,Label
,Laser
,LightEmittingDiode
,LightPath
,LightPathAnnotationLink
,LightPathEmissionFilterLink
,LightPathExcitationFilterLink
,LightSettings
,LightSource
,LightSourceAnnotationLink
,Line
,Link
,ListAnnotation
,LogicalChannel
,LongAnnotation
,MapAnnotation
,Mask
,MetadataImportJob
,MicrobeamManipulation
,Microscope
,Namespace
,NamespaceAnnotationLink
,Node
,NodeAnnotationLink
,NumericAnnotation
,Objective
,ObjectiveAnnotationLink
,ObjectiveSettings
,OriginalFile
,OriginalFileAnnotationLink
,OTF
,ParseJob
,Path
,PixelDataJob
,Pixels
,PixelsOriginalFileMap
,PlaneInfo
,PlaneInfoAnnotationLink
,PlaneSlicingContext
,Plate
,PlateAcquisition
,PlateAcquisitionAnnotationLink
,PlateAnnotationLink
,Point
,Polygon
,Polyline
,Project
,ProjectAnnotationLink
,ProjectDatasetLink
,ProjectionDef
,QuantumDef
,Reagent
,ReagentAnnotationLink
,Rectangle
,RenderingDef
,ReverseIntensityContext
,Roi
,RoiAnnotationLink
,Screen
,ScreenAnnotationLink
,ScreenPlateLink
,ScriptJob
,Session
,SessionAnnotationLink
,Shape
,ShapeAnnotationLink
,Share
,ShareMember
,StageLabel
,StatsInfo
,TagAnnotation
,TermAnnotation
,TextAnnotation
,Thumbnail
,ThumbnailGenerationJob
,TimestampAnnotation
,TransmittanceRange
,TypeAnnotation
,UploadJob
,Well
,WellAnnotationLink
,WellReagentLink
,WellSample
,XmlAnnotation
public interface IMutable extends IObject
interface for all mutable domain objects. Provides access to the version property which the backend uses for optimistic locking. An object with an id but without a version passed to the backend is considered an error, since some backends will silently create a new object in the database.- Since:
- 3.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Integer
getVersion()
optimistic-lock version.void
setVersion(java.lang.Integer version)
use with caution.-
Methods inherited from interface ome.util.Filterable
acceptFilter
-
-
-
-
Method Detail
-
getVersion
java.lang.Integer getVersion()
optimistic-lock version. Usually managed by the backend.
-
setVersion
void setVersion(java.lang.Integer version)
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.- Parameters:
version
- Value for this objects version.
-
-