@Transactional(readOnly=false) public class UpdateImpl extends AbstractLevel1Service implements LocalUpdate
Modifier and Type | Field and Description |
---|---|
protected Executor |
executor |
protected FullTextBridge |
fullTextBridge |
protected LocalQuery |
localQuery |
protected SessionManager |
sessionManager |
queryFactory, sessionFactory
Constructor and Description |
---|
UpdateImpl() |
Modifier and Type | Method and Description |
---|---|
void |
deleteObject(IObject row)
Deletes a single entity.
|
void |
flush() |
Class<? extends ServiceInterface> |
getServiceInterface() |
void |
indexObject(IObject row)
Initiates full-text indexing for the given object.
|
protected void |
internalDelete(IObject obj,
UpdateFilter filter,
org.hibernate.Session session) |
protected IObject |
internalMerge(IObject obj,
UpdateFilter filter,
org.hibernate.Session session)
Note if we use anything other than merge here, functionality from
MergeEventListener needs to be moved to
UpdateFilter or to another event listener. |
protected Long |
internalSave(IObject obj,
ReloadFilter filter,
org.hibernate.Session session)
Note if we use anything other than merge here, functionality from
MergeEventListener needs to be moved to
UpdateFilter or to another event listener. |
IObject[] |
saveAndReturnArray(IObject[] graph) |
List<Long> |
saveAndReturnIds(IObject[] graph)
Logic differs from other methods.
|
IObject |
saveAndReturnObject(IObject graph) |
void |
saveArray(IObject[] graph) |
void |
saveCollection(Collection graph) |
void |
saveObject(IObject graph) |
void |
setExecutor(Executor executor) |
void |
setFullTextBridge(FullTextBridge fullTextBridge) |
void |
setQueryService(LocalQuery query) |
void |
setSessionManager(SessionManager sessionManager) |
getBeanHelper, getQueryFactory, getSessionFactory, selfConfigure, setQueryFactory, setSessionFactory
protected transient LocalQuery localQuery
protected transient Executor executor
protected transient SessionManager sessionManager
protected transient FullTextBridge fullTextBridge
public final void setQueryService(LocalQuery query)
public void setExecutor(Executor executor)
public void setSessionManager(SessionManager sessionManager)
public void setFullTextBridge(FullTextBridge fullTextBridge)
public Class<? extends ServiceInterface> getServiceInterface()
getServiceInterface
in interface SelfConfigurableService
public void flush()
flush
in interface LocalUpdate
public void saveObject(IObject graph)
saveObject
in interface IUpdate
IUpdate
public IObject saveAndReturnObject(IObject graph)
saveAndReturnObject
in interface IUpdate
IUpdate
public void saveCollection(Collection graph)
saveCollection
in interface IUpdate
IUpdate
public IObject[] saveAndReturnArray(IObject[] graph)
saveAndReturnArray
in interface IUpdate
IUpdate
public List<Long> saveAndReturnIds(IObject[] graph)
IUpdate
saveAndReturnIds
in interface IUpdate
IUpdate
public void saveArray(IObject[] graph)
public void deleteObject(IObject row)
IUpdate
IDelete
which provide support for deleting entire
graphs of objects in the correct order.deleteObject
in interface IUpdate
row
- a persistent IObject
to be deleted.public void indexObject(IObject row)
IUpdate
ome.services.fulltext.FullTextThread
to finish.
Can only be executed by an admin. Other users must wait for the
background Thread
to complete.indexObject
in interface IUpdate
row
- a persistent IObject
to be deletedprotected Long internalSave(IObject obj, ReloadFilter filter, org.hibernate.Session session)
MergeEventListener
needs to be moved to
UpdateFilter
or to another event listener.protected IObject internalMerge(IObject obj, UpdateFilter filter, org.hibernate.Session session)
MergeEventListener
needs to be moved to
UpdateFilter
or to another event listener.protected void internalDelete(IObject obj, UpdateFilter filter, org.hibernate.Session session)
Version: 5.2.8-ice35-b57
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.