Package omero.model

Interface _IObjectOperationsNC

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Details getDetails()  
      RLong getId()  
      boolean isAnnotated()
      Allows for the attachment of any omero.model.Annotation subclasses.
      boolean isGlobal()
      Marker interface which means that special rules apply for both reading and writing these instances.
      boolean isLink()
      A link between two other types.
      boolean isLoaded()
      Tests if the objects are loaded or not.
      boolean isMutable()
      The server will persist changes made to these types.
      IObject proxy()
      Return another instance of the same type as this instance constructed as if by: new InstanceI( this.id.val, false );
      void setId​(RLong id)  
      IObject shallowCopy()
      Return another instance of the same type as this instance with all single-value entities unloaded and all members of collections also unloaded.
      void unload()
      Sets the loaded boolean to false and empties all state from this entity to make sending it over the network less costly.
      void unloadCollections()
      Each collection can also be unloaded, independently of the object itself.
      void unloadDetails()
      As with collections, the objects under details can link to many other objects.
    • Method Detail

      • setId

        void setId​(RLong id)
      • proxy

        IObject proxy()
        Return another instance of the same type as this instance constructed as if by: new InstanceI( this.id.val, false );
      • shallowCopy

        IObject shallowCopy()
        Return another instance of the same type as this instance with all single-value entities unloaded and all members of collections also unloaded.
      • unload

        void unload()
        Sets the loaded boolean to false and empties all state from this entity to make sending it over the network less costly.
      • unloadCollections

        void unloadCollections()
        Each collection can also be unloaded, independently of the object itself. To unload all collections, use: object.unloadCollections(); This is useful when it is possible that a collection no longer represents the state in the database, and passing the collections back to the server might delete some entities. Sending back empty collections can also save a significant amount of bandwidth, when working with large data graphs.
      • unloadDetails

        void unloadDetails()
        As with collections, the objects under details can link to many other objects. Unloading the details can same bandwidth and simplify the server logic.
      • isLoaded

        boolean isLoaded()
        Tests if the objects are loaded or not. If this value is false, then any method call on this instance other than getId or setId will result in an exception.
      • isGlobal

        boolean isGlobal()
        Marker interface which means that special rules apply for both reading and writing these instances.
      • isLink

        boolean isLink()
        A link between two other types. Methods provided: - getParent() - getChild()
      • isMutable

        boolean isMutable()
        The server will persist changes made to these types. Methods provided: - getVersion() - setVersion()
      • isAnnotated

        boolean isAnnotated()
        Allows for the attachment of any omero.model.Annotation subclasses. Methods provided are: - linkAnnotation(Annotation) -