Package ome.model.internal
Class Details
- java.lang.Object
-
- ome.model.internal.Details
-
- All Implemented Interfaces:
java.io.Serializable,Filterable
- Direct Known Subclasses:
AcquisitionMode.Details,AdminPrivilege.Details,AffineTransform.Details,Annotation.Details,AnnotationAnnotationLink.Details,ArcType.Details,Binning.Details,Channel.Details,ChannelAnnotationLink.Details,ChannelBinding.Details,ChecksumAlgorithm.Details,CodomainMapContext.Details,ContrastMethod.Details,Correction.Details,Dataset.Details,DatasetAnnotationLink.Details,DatasetImageLink.Details,DBPatch.Details,Detector.Details,DetectorAnnotationLink.Details,DetectorSettings.Details,DetectorType.Details,Dichroic.Details,DichroicAnnotationLink.Details,DimensionOrder.Details,Event.Details,EventLog.Details,EventType.Details,Experiment.Details,Experimenter.Details,ExperimenterAnnotationLink.Details,ExperimenterGroup.Details,ExperimenterGroupAnnotationLink.Details,ExperimentType.Details,ExternalInfo.Details,Family.Details,FilamentType.Details,Fileset.Details,FilesetAnnotationLink.Details,FilesetEntry.Details,FilesetJobLink.Details,Filter.Details,FilterAnnotationLink.Details,FilterSet.Details,FilterSetEmissionFilterLink.Details,FilterSetExcitationFilterLink.Details,FilterType.Details,Folder.Details,FolderAnnotationLink.Details,FolderImageLink.Details,FolderRoiLink.Details,Format.Details,GroupExperimenterMap.Details,Illumination.Details,Image.Details,ImageAnnotationLink.Details,ImagingEnvironment.Details,Immersion.Details,Instrument.Details,InstrumentAnnotationLink.Details,Job.Details,JobOriginalFileLink.Details,JobStatus.Details,LaserMedium.Details,LaserType.Details,LightPath.Details,LightPathAnnotationLink.Details,LightPathEmissionFilterLink.Details,LightPathExcitationFilterLink.Details,LightSettings.Details,LightSource.Details,LightSourceAnnotationLink.Details,Link.Details,LogicalChannel.Details,Medium.Details,MicrobeamManipulation.Details,MicrobeamManipulationType.Details,Microscope.Details,MicroscopeType.Details,Namespace.Details,NamespaceAnnotationLink.Details,Node.Details,NodeAnnotationLink.Details,Objective.Details,ObjectiveAnnotationLink.Details,ObjectiveSettings.Details,OriginalFile.Details,OriginalFileAnnotationLink.Details,OTF.Details,PhotometricInterpretation.Details,Pixels.Details,PixelsOriginalFileMap.Details,PixelsType.Details,PlaneInfo.Details,PlaneInfoAnnotationLink.Details,Plate.Details,PlateAcquisition.Details,PlateAcquisitionAnnotationLink.Details,PlateAnnotationLink.Details,Project.Details,ProjectAnnotationLink.Details,ProjectDatasetLink.Details,ProjectionAxis.Details,ProjectionDef.Details,ProjectionType.Details,Pulse.Details,QuantumDef.Details,Reagent.Details,ReagentAnnotationLink.Details,RenderingDef.Details,RenderingModel.Details,Roi.Details,RoiAnnotationLink.Details,Screen.Details,ScreenAnnotationLink.Details,ScreenPlateLink.Details,Session.Details,SessionAnnotationLink.Details,Shape.Details,ShapeAnnotationLink.Details,ShareMember.Details,StageLabel.Details,StatsInfo.Details,Thumbnail.Details,TransmittanceRange.Details,Well.Details,WellAnnotationLink.Details,WellReagentLink.Details,WellSample.Details
@MappedSuperclass public abstract class Details extends java.lang.Object implements Filterable, java.io.Serializable
value type for low-level (row-level) details for allIObjectobjects. Details instances are given special treatment through the Omero system, especially duringome.api.IUpdateupdate.- Since:
- 3.0
- See Also:
- "ome.api.IUpdate", Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected IObject_contextprotected Event_creationprotected java.util.Map_dynamicFieldsprotected ExternalInfo_externalInfoprotected java.util.Set<java.lang.String>_filteredCollectionsprotected ExperimenterGroup_groupprotected Experimenter_ownerprotected Permissions_permsprotected Event_updateprotected java.lang.Object[]contextsstatic java.lang.StringCREATIONEVENTstatic java.lang.StringEXTERNALINFOstatic java.lang.StringGROUPstatic java.lang.StringOWNERstatic java.lang.StringPERMISSIONSstatic java.lang.StringUPDATEEVENT
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanacceptFilter(Filter filter)voidaddFiltered(java.lang.String collectionName)consider the collection named bycollectionNameto be a "filtered" representation of the DB.voidaddFiltered(java.util.Collection<java.lang.String> collection)consider all the collections named by the elements of collection to be a "filtered" representation of the DB.voidclearFiltered()all currently marked collections are released.java.lang.ObjectcontextAt(int i)Detailscopy()voidcopy(Details copy)Method which takes all field values from the givenDetailsinstance and copies them into the current instance.voidcopyWhereUnset(Details mask, Details copyFrom)For any field of this which is null (and is NOT null on mask -- assuming mask is not null), copy the same value from copyFrom into this object.static Detailscreate()Callcreate(Object[])with null.static Detailscreate(java.lang.Object[] contexts)java.util.Set<java.lang.String>filteredSet()copy of the current collection of filtered names.intfilteredSize()the count of collections which were filtered.IObjectgetContext()reference to the entity which this Details is contained in.EventgetCreationEvent()ExternalInfogetExternalInfo()ExperimenterGroupgetGroup()ExperimentergetOwner()PermissionsgetPermissions()Permissions is a component embedded into the Details component.EventgetUpdateEvent()booleanisFiltered(java.lang.String collectionName)Was this collection filtered during creation? If so, it should not be saved to the DB.abstract DetailsnewInstance()voidputAt(java.lang.String field, java.lang.Object value)java.lang.Objectretrieve(java.lang.String field)voidsetContext(IObject myContext)set entity to which this Details belongs.voidsetContexts(java.lang.Object[] contexts)voidsetCreationEvent(Event e)voidsetExternalInfo(ExternalInfo info)voidsetGroup(ExperimenterGroup _group)voidsetOwner(Experimenter exp)voidsetPermissions(Permissions perms)voidsetUpdateEvent(Event e)DetailsshallowCopy()voidshallowCopy(Details copy)Method which takes all the fields of the givenDetailsinstance and sets unloaded proxies of them into the current instance.java.lang.StringtoString()simple view of the Details.voidtoString(java.lang.StringBuilder sb)
-
-
-
Field Detail
-
PERMISSIONS
public static final java.lang.String PERMISSIONS
- See Also:
- Constant Field Values
-
EXTERNALINFO
public static final java.lang.String EXTERNALINFO
- See Also:
- Constant Field Values
-
CREATIONEVENT
public static final java.lang.String CREATIONEVENT
- See Also:
- Constant Field Values
-
OWNER
public static final java.lang.String OWNER
- See Also:
- Constant Field Values
-
GROUP
public static final java.lang.String GROUP
- See Also:
- Constant Field Values
-
UPDATEEVENT
public static final java.lang.String UPDATEEVENT
- See Also:
- Constant Field Values
-
_update
protected Event _update
-
_context
protected IObject _context
-
_perms
protected Permissions _perms
-
_externalInfo
protected ExternalInfo _externalInfo
-
_creation
protected Event _creation
-
_owner
protected Experimenter _owner
-
_group
protected ExperimenterGroup _group
-
_filteredCollections
protected java.util.Set<java.lang.String> _filteredCollections
-
_dynamicFields
protected java.util.Map _dynamicFields
-
contexts
protected java.lang.Object[] contexts
-
-
Constructor Detail
-
Details
public Details()
default constructor. Leaves values null to save resources.
-
Details
public Details(java.lang.Object[] contexts)
-
Details
public Details(Details copy)
copy-constructor
-
-
Method Detail
-
create
public static final Details create()
Callcreate(Object[])with null.
-
create
public static final Details create(java.lang.Object[] contexts)
Factory method which returns aDetailsimplementation for passing in API calls, but cannot be stored within anIObjectinstance. Usecopy(Details)orshallowCopy(Details)instead.
-
contextAt
public java.lang.Object contextAt(int i)
-
setContexts
public void setContexts(java.lang.Object[] contexts)
-
shallowCopy
public Details shallowCopy()
-
copy
public Details copy()
-
copy
public void copy(Details copy)
Method which takes all field values from the givenDetailsinstance and copies them into the current instance.- Parameters:
copy-
-
copyWhereUnset
public void copyWhereUnset(Details mask, Details copyFrom)
For any field of this which is null (and is NOT null on mask -- assuming mask is not null), copy the same value from copyFrom into this object.- Parameters:
mask-copyFrom-
-
shallowCopy
public void shallowCopy(Details copy)
Method which takes all the fields of the givenDetailsinstance and sets unloaded proxies of them into the current instance.
-
addFiltered
public void addFiltered(java.lang.String collectionName)
consider the collection named bycollectionNameto be a "filtered" representation of the DB. This collection should not be saved, at most compared with the current DB to find added entities.
-
addFiltered
public void addFiltered(java.util.Collection<java.lang.String> collection)
consider all the collections named by the elements of collection to be a "filtered" representation of the DB. This collection should not be saved, at most compared with the current DB to find added entities.
-
isFiltered
public boolean isFiltered(java.lang.String collectionName)
Was this collection filtered during creation? If so, it should not be saved to the DB.
-
clearFiltered
public void clearFiltered()
all currently marked collections are released. The space taken up by the collection is also released.
-
filteredSize
public int filteredSize()
the count of collections which were filtered.- Returns:
- number of String keys in the filtered set.
-
filteredSet
public java.util.Set<java.lang.String> filteredSet()
copy of the current collection of filtered names. Changes to this collection are not propagated.- Returns:
- filtered set copy.
-
getContext
public IObject getContext()
reference to the entity which this Details is contained in. This value is not maintained by the backend but is an internal mechanism.
-
setContext
public void setContext(IObject myContext)
set entity to which this Details belongs. This may cause erratic behavior if called improperly.- Parameters:
myContext- entity which this Details belongs to
-
newInstance
public abstract Details newInstance()
-
toString
public java.lang.String toString()
simple view of the Details. Accesses only the ids of the contained entities- Overrides:
toStringin classjava.lang.Object
-
toString
public void toString(java.lang.StringBuilder sb)
-
getPermissions
public Permissions getPermissions()
Permissions is a component embedded into the Details component. Similar rules apply as to Details, but it is not suggested that users attempt to directly query Permissions object as its internal state is not public.
-
setPermissions
public void setPermissions(Permissions perms)
-
getExternalInfo
public ExternalInfo getExternalInfo()
-
setExternalInfo
public void setExternalInfo(ExternalInfo info)
-
getOwner
public Experimenter getOwner()
-
setOwner
public void setOwner(Experimenter exp)
-
getCreationEvent
public Event getCreationEvent()
-
setCreationEvent
public void setCreationEvent(Event e)
-
getGroup
public ExperimenterGroup getGroup()
-
setGroup
public void setGroup(ExperimenterGroup _group)
-
getUpdateEvent
public Event getUpdateEvent()
-
setUpdateEvent
public void setUpdateEvent(Event e)
-
acceptFilter
public boolean acceptFilter(Filter filter)
- Specified by:
acceptFilterin interfaceFilterable
-
retrieve
public java.lang.Object retrieve(java.lang.String field)
-
putAt
public void putAt(java.lang.String field, java.lang.Object value)
-
-