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.
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, andOptimisticLockException
if 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[]
__ids
static long
serialVersionUID
-
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)
void
deleteObject_async(AMD_IUpdate_deleteObject __cb, IObject row)
Deprecated.use omero::cmd::Delete2 insteadprotected void
ice_copyStateFrom(Ice.Object __obj)
java.lang.String
ice_id()
java.lang.String
ice_id(Ice.Current __current)
java.lang.String[]
ice_ids()
java.lang.String[]
ice_ids(Ice.Current __current)
boolean
ice_isA(java.lang.String s)
boolean
ice_isA(java.lang.String s, Ice.Current __current)
static java.lang.String
ice_staticId()
void
indexObject_async(AMD_IUpdate_indexObject __cb, IObject row)
Initiates full-text indexing for the given object.void
saveAndReturnArray_async(AMD_IUpdate_saveAndReturnArray __cb, java.util.List<IObject> graph)
void
saveAndReturnIds_async(AMD_IUpdate_saveAndReturnIds __cb, java.util.List<IObject> graph)
void
saveAndReturnObject_async(AMD_IUpdate_saveAndReturnObject __cb, IObject obj)
void
saveArray_async(AMD_IUpdate_saveArray __cb, java.util.List<IObject> graph)
void
saveCollection_async(AMD_IUpdate_saveCollection __cb, java.util.List<IObject> objs)
void
saveObject_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_isA
in interfaceIce.Object
- Overrides:
ice_isA
in classIce.ObjectImpl
-
ice_isA
public boolean ice_isA(java.lang.String s, Ice.Current __current)
- Specified by:
ice_isA
in interfaceIce.Object
- Overrides:
ice_isA
in classIce.ObjectImpl
-
ice_ids
public java.lang.String[] ice_ids()
- Specified by:
ice_ids
in interfaceIce.Object
- Overrides:
ice_ids
in classIce.ObjectImpl
-
ice_ids
public java.lang.String[] ice_ids(Ice.Current __current)
- Specified by:
ice_ids
in interfaceIce.Object
- Overrides:
ice_ids
in classIce.ObjectImpl
-
ice_id
public java.lang.String ice_id()
- Specified by:
ice_id
in interfaceIce.Object
- Overrides:
ice_id
in classIce.ObjectImpl
-
ice_id
public java.lang.String ice_id(Ice.Current __current)
- Specified by:
ice_id
in interfaceIce.Object
- Overrides:
ice_id
in 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_async
in 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 currentFullTextThread
to finish. Can only be executed by an admin. Other users must wait for the backgroundThread
to complete.- Specified by:
indexObject_async
in interface_IUpdateOperationsNC
- Parameters:
__cb
- The callback object for the operation.row
- a persistentIObject
to 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_async
in 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_async
in interface_IUpdateOperationsNC
- Throws:
ServerError
-
saveAndReturnObject_async
public final void saveAndReturnObject_async(AMD_IUpdate_saveAndReturnObject __cb, IObject obj) throws ServerError
- Specified by:
saveAndReturnObject_async
in 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_async
in 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_async
in interface_IUpdateOperationsNC
- Throws:
ServerError
-
saveObject_async
public final void saveObject_async(AMD_IUpdate_saveObject __cb, IObject obj) throws ServerError
- Specified by:
saveObject_async
in 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:
__dispatch
in interfaceIce.Object
- Overrides:
__dispatch
in classIce.ObjectImpl
-
__writeImpl
protected void __writeImpl(IceInternal.BasicStream __os)
- Overrides:
__writeImpl
in classIce.ObjectImpl
-
__readImpl
protected void __readImpl(IceInternal.BasicStream __is)
- Overrides:
__readImpl
in classIce.ObjectImpl
-
-