public interface _IUpdateOperationsNC extends _ServiceInterfaceOperationsNC
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.
Modifier and Type | Method and Description |
---|---|
void |
deleteObject_async(AMD_IUpdate_deleteObject __cb,
IObject row)
Deprecated.
use omero::cmd::Delete2 instead
|
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) |
void saveObject_async(AMD_IUpdate_saveObject __cb, IObject obj) throws ServerError
ServerError
void saveCollection_async(AMD_IUpdate_saveCollection __cb, java.util.List<IObject> objs) throws ServerError
ServerError
void saveAndReturnObject_async(AMD_IUpdate_saveAndReturnObject __cb, IObject obj) throws ServerError
ServerError
void saveArray_async(AMD_IUpdate_saveArray __cb, java.util.List<IObject> graph) throws ServerError
ServerError
void saveAndReturnArray_async(AMD_IUpdate_saveAndReturnArray __cb, java.util.List<IObject> graph) throws ServerError
ServerError
void saveAndReturnIds_async(AMD_IUpdate_saveAndReturnIds __cb, java.util.List<IObject> graph) throws ServerError
ServerError
void deleteObject_async(AMD_IUpdate_deleteObject __cb, IObject row) throws ServerError
__cb
- The callback object for the operation.ServerError
void indexObject_async(AMD_IUpdate_indexObject __cb, IObject row) throws ServerError
FullTextThread
to finish.
Can only be executed by an admin. Other users must wait for
the background Thread
to complete.__cb
- The callback object for the operation.row
- a persistent IObject
to be deletedServerError