Package omero.api

Class _IUpdateDisp

  • All Implemented Interfaces:
    Ice.Object, java.io.Serializable, java.lang.Cloneable, _IUpdateOperations, _IUpdateOperationsNC, _ServiceInterfaceOperations, _ServiceInterfaceOperationsNC, IUpdate, ServiceInterface
    Direct Known Subclasses:
    _IUpdateTie

    public abstract class _IUpdateDisp
    extends Ice.ObjectImpl
    implements IUpdate
    Provides methods for directly updating object graphs. IUpdate is the lowest level (level-1) interface which may make changes (INSERT, UPDATE, DELETE) to the database. All other methods of changing the database may leave it in an inconsistent state.

    All the save* methods act recursively on the entire object graph, replacing placeholders and details where necessary, and then merging the final graph. This means that the objects that are passed into IUpdate.save* methods are copied over to new instances which are then returned. The original objects should be discarded.

    saveAndReturnIds behaves slightly differently in that it does not handle object modifications. The graph of objects passed in can consist ONLY if either newly created objects without ids or of unloaded objects with ids. Note: The ids of the saved values may not be in order. This is caused by persistence-by-transitivity. Hibernate may detect an item later in the array if they are interconnected and therefore choose to save it first.

    All methods throw ValidationException if the input objects do not pass validation, and OptimisticLockException if the version of a given has already been incremented.

    See Also:
    Serialized Form
    • Field Detail

      • __ids

        public static final java.lang.String[] __ids
    • Constructor Detail

      • _IUpdateDisp

        public _IUpdateDisp()
    • Method Detail

      • ice_copyStateFrom

        protected void ice_copyStateFrom​(Ice.Object __obj)
                                  throws java.lang.CloneNotSupportedException
        Throws:
        java.lang.CloneNotSupportedException
      • ice_isA

        public boolean ice_isA​(java.lang.String s)
        Specified by:
        ice_isA in interface Ice.Object
        Overrides:
        ice_isA in class Ice.ObjectImpl
      • ice_isA

        public boolean ice_isA​(java.lang.String s,
                               Ice.Current __current)
        Specified by:
        ice_isA in interface Ice.Object
        Overrides:
        ice_isA in class Ice.ObjectImpl
      • ice_ids

        public java.lang.String[] ice_ids()
        Specified by:
        ice_ids in interface Ice.Object
        Overrides:
        ice_ids in class Ice.ObjectImpl
      • ice_ids

        public java.lang.String[] ice_ids​(Ice.Current __current)
        Specified by:
        ice_ids in interface Ice.Object
        Overrides:
        ice_ids in class Ice.ObjectImpl
      • ice_id

        public java.lang.String ice_id()
        Specified by:
        ice_id in interface Ice.Object
        Overrides:
        ice_id in class Ice.ObjectImpl
      • ice_id

        public java.lang.String ice_id​(Ice.Current __current)
        Specified by:
        ice_id in interface Ice.Object
        Overrides:
        ice_id in class Ice.ObjectImpl
      • ice_staticId

        public static java.lang.String ice_staticId()
      • indexObject_async

        public final void indexObject_async​(AMD_IUpdate_indexObject __cb,
                                            IObject row)
                                     throws ServerError
        Initiates full-text indexing for the given object. This may have to wait for the current FullTextThread to finish. Can only be executed by an admin. Other users must wait for the background Thread to complete.
        Specified by:
        indexObject_async in interface _IUpdateOperationsNC
        Parameters:
        __cb - The callback object for the operation.
        row - a persistent IObject to be deleted
        Throws:
        ValidationException - if the object does not exist or is nul
        ServerError
      • ___saveObject

        public static Ice.DispatchStatus ___saveObject​(IUpdate __obj,
                                                       IceInternal.Incoming __inS,
                                                       Ice.Current __current)
      • ___saveCollection

        public static Ice.DispatchStatus ___saveCollection​(IUpdate __obj,
                                                           IceInternal.Incoming __inS,
                                                           Ice.Current __current)
      • ___saveAndReturnObject

        public static Ice.DispatchStatus ___saveAndReturnObject​(IUpdate __obj,
                                                                IceInternal.Incoming __inS,
                                                                Ice.Current __current)
      • ___saveArray

        public static Ice.DispatchStatus ___saveArray​(IUpdate __obj,
                                                      IceInternal.Incoming __inS,
                                                      Ice.Current __current)
      • ___saveAndReturnArray

        public static Ice.DispatchStatus ___saveAndReturnArray​(IUpdate __obj,
                                                               IceInternal.Incoming __inS,
                                                               Ice.Current __current)
      • ___saveAndReturnIds

        public static Ice.DispatchStatus ___saveAndReturnIds​(IUpdate __obj,
                                                             IceInternal.Incoming __inS,
                                                             Ice.Current __current)
      • ___deleteObject

        public static Ice.DispatchStatus ___deleteObject​(IUpdate __obj,
                                                         IceInternal.Incoming __inS,
                                                         Ice.Current __current)
      • ___indexObject

        public static Ice.DispatchStatus ___indexObject​(IUpdate __obj,
                                                        IceInternal.Incoming __inS,
                                                        Ice.Current __current)
      • __dispatch

        public Ice.DispatchStatus __dispatch​(IceInternal.Incoming in,
                                             Ice.Current __current)
        Specified by:
        __dispatch in interface Ice.Object
        Overrides:
        __dispatch in class Ice.ObjectImpl
      • __writeImpl

        protected void __writeImpl​(IceInternal.BasicStream __os)
        Overrides:
        __writeImpl in class Ice.ObjectImpl
      • __readImpl

        protected void __readImpl​(IceInternal.BasicStream __is)
        Overrides:
        __readImpl in class Ice.ObjectImpl