@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, setSessionFactoryprotected 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 SelfConfigurableServicepublic void flush()
flush in interface LocalUpdatepublic void saveObject(IObject graph)
saveObject in interface IUpdateIUpdatepublic IObject saveAndReturnObject(IObject graph)
saveAndReturnObject in interface IUpdateIUpdatepublic void saveCollection(Collection graph)
saveCollection in interface IUpdateIUpdatepublic IObject[] saveAndReturnArray(IObject[] graph)
saveAndReturnArray in interface IUpdateIUpdatepublic List<Long> saveAndReturnIds(IObject[] graph)
IUpdatesaveAndReturnIds in interface IUpdateIUpdatepublic void saveArray(IObject[] graph)
public void deleteObject(IObject row)
IUpdateIDelete which provide support for deleting entire
graphs of objects in the correct order.deleteObject in interface IUpdaterow - a persistent IObject to be deleted.public void indexObject(IObject row)
IUpdateome.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 IUpdaterow - 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.3.4-ice35-b69
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.