Class _IUpdateDisp
- java.lang.Object
-
- Ice.ObjectImpl
-
- omero.api._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.
saveAndReturnIdsbehaves 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
ValidationExceptionif the input objects do not pass validation, andOptimisticLockExceptionif the version of a given has already been incremented.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String[]__idsstatic longserialVersionUID-
Fields inherited from interface omero.api.IUpdate
ice_staticId
-
-
Constructor Summary
Constructors Constructor Description _IUpdateDisp()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Ice.DispatchStatus___deleteObject(IUpdate __obj, IceInternal.Incoming __inS, Ice.Current __current)static Ice.DispatchStatus___indexObject(IUpdate __obj, IceInternal.Incoming __inS, Ice.Current __current)static Ice.DispatchStatus___saveAndReturnArray(IUpdate __obj, IceInternal.Incoming __inS, Ice.Current __current)static Ice.DispatchStatus___saveAndReturnIds(IUpdate __obj, IceInternal.Incoming __inS, Ice.Current __current)static Ice.DispatchStatus___saveAndReturnObject(IUpdate __obj, IceInternal.Incoming __inS, Ice.Current __current)static Ice.DispatchStatus___saveArray(IUpdate __obj, IceInternal.Incoming __inS, Ice.Current __current)static Ice.DispatchStatus___saveCollection(IUpdate __obj, IceInternal.Incoming __inS, Ice.Current __current)static Ice.DispatchStatus___saveObject(IUpdate __obj, IceInternal.Incoming __inS, Ice.Current __current)Ice.DispatchStatus__dispatch(IceInternal.Incoming in, Ice.Current __current)protected void__readImpl(IceInternal.BasicStream __is)protected void__writeImpl(IceInternal.BasicStream __os)voiddeleteObject_async(AMD_IUpdate_deleteObject __cb, IObject row)Deprecated.use omero::cmd::Delete2 insteadprotected voidice_copyStateFrom(Ice.Object __obj)java.lang.Stringice_id()java.lang.Stringice_id(Ice.Current __current)java.lang.String[]ice_ids()java.lang.String[]ice_ids(Ice.Current __current)booleanice_isA(java.lang.String s)booleanice_isA(java.lang.String s, Ice.Current __current)static java.lang.Stringice_staticId()voidindexObject_async(AMD_IUpdate_indexObject __cb, IObject row)Initiates full-text indexing for the given object.voidsaveAndReturnArray_async(AMD_IUpdate_saveAndReturnArray __cb, java.util.List<IObject> graph)voidsaveAndReturnIds_async(AMD_IUpdate_saveAndReturnIds __cb, java.util.List<IObject> graph)voidsaveAndReturnObject_async(AMD_IUpdate_saveAndReturnObject __cb, IObject obj)voidsaveArray_async(AMD_IUpdate_saveArray __cb, java.util.List<IObject> graph)voidsaveCollection_async(AMD_IUpdate_saveCollection __cb, java.util.List<IObject> objs)voidsaveObject_async(AMD_IUpdate_saveObject __cb, IObject obj)-
Methods inherited from class Ice.ObjectImpl
___ice_id, ___ice_ids, ___ice_isA, ___ice_ping, __checkMode, __read, __read, __readImpl, __write, __write, __writeImpl, clone, ice_dispatch, ice_dispatch, ice_operationAttributes, ice_ping, ice_ping, ice_postUnmarshal, ice_preMarshal
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface omero.api._IUpdateOperations
deleteObject_async, indexObject_async, saveAndReturnArray_async, saveAndReturnIds_async, saveAndReturnObject_async, saveArray_async, saveCollection_async, saveObject_async
-
-
-
-
Field Detail
-
__ids
public static final java.lang.String[] __ids
-
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
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_isAin interfaceIce.Object- Overrides:
ice_isAin classIce.ObjectImpl
-
ice_isA
public boolean ice_isA(java.lang.String s, Ice.Current __current)- Specified by:
ice_isAin interfaceIce.Object- Overrides:
ice_isAin classIce.ObjectImpl
-
ice_ids
public java.lang.String[] ice_ids()
- Specified by:
ice_idsin interfaceIce.Object- Overrides:
ice_idsin classIce.ObjectImpl
-
ice_ids
public java.lang.String[] ice_ids(Ice.Current __current)
- Specified by:
ice_idsin interfaceIce.Object- Overrides:
ice_idsin classIce.ObjectImpl
-
ice_id
public java.lang.String ice_id()
- Specified by:
ice_idin interfaceIce.Object- Overrides:
ice_idin classIce.ObjectImpl
-
ice_id
public java.lang.String ice_id(Ice.Current __current)
- Specified by:
ice_idin interfaceIce.Object- Overrides:
ice_idin classIce.ObjectImpl
-
ice_staticId
public static java.lang.String ice_staticId()
-
deleteObject_async
public final void deleteObject_async(AMD_IUpdate_deleteObject __cb, IObject row) throws ServerError
Deprecated.use omero::cmd::Delete2 instead- Specified by:
deleteObject_asyncin interface_IUpdateOperationsNC- Parameters:
__cb- The callback object for the operation.- Throws:
ServerError
-
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 currentFullTextThreadto finish. Can only be executed by an admin. Other users must wait for the backgroundThreadto complete.- Specified by:
indexObject_asyncin interface_IUpdateOperationsNC- Parameters:
__cb- The callback object for the operation.row- a persistentIObjectto be deleted- Throws:
ValidationException- if the object does not exist or is nulServerError
-
saveAndReturnArray_async
public final void saveAndReturnArray_async(AMD_IUpdate_saveAndReturnArray __cb, java.util.List<IObject> graph) throws ServerError
- Specified by:
saveAndReturnArray_asyncin interface_IUpdateOperationsNC- Throws:
ServerError
-
saveAndReturnIds_async
public final void saveAndReturnIds_async(AMD_IUpdate_saveAndReturnIds __cb, java.util.List<IObject> graph) throws ServerError
- Specified by:
saveAndReturnIds_asyncin interface_IUpdateOperationsNC- Throws:
ServerError
-
saveAndReturnObject_async
public final void saveAndReturnObject_async(AMD_IUpdate_saveAndReturnObject __cb, IObject obj) throws ServerError
- Specified by:
saveAndReturnObject_asyncin interface_IUpdateOperationsNC- Throws:
ServerError
-
saveArray_async
public final void saveArray_async(AMD_IUpdate_saveArray __cb, java.util.List<IObject> graph) throws ServerError
- Specified by:
saveArray_asyncin interface_IUpdateOperationsNC- Throws:
ServerError
-
saveCollection_async
public final void saveCollection_async(AMD_IUpdate_saveCollection __cb, java.util.List<IObject> objs) throws ServerError
- Specified by:
saveCollection_asyncin interface_IUpdateOperationsNC- Throws:
ServerError
-
saveObject_async
public final void saveObject_async(AMD_IUpdate_saveObject __cb, IObject obj) throws ServerError
- Specified by:
saveObject_asyncin interface_IUpdateOperationsNC- Throws:
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:
__dispatchin interfaceIce.Object- Overrides:
__dispatchin classIce.ObjectImpl
-
__writeImpl
protected void __writeImpl(IceInternal.BasicStream __os)
- Overrides:
__writeImplin classIce.ObjectImpl
-
__readImpl
protected void __readImpl(IceInternal.BasicStream __is)
- Overrides:
__readImplin classIce.ObjectImpl
-
-