Package ome.logic
Class UpdateImpl
- java.lang.Object
-
- ome.logic.AbstractLevel1Service
-
- ome.logic.UpdateImpl
-
- All Implemented Interfaces:
ome.api.IUpdate
,LocalUpdate
,ome.api.ServiceInterface
,ome.system.SelfConfigurableService
@Transactional(readOnly=false) public class UpdateImpl extends AbstractLevel1Service implements LocalUpdate
implementation of the IUpdate service interface- Since:
- OMERO 3.0
-
-
Field Summary
Fields Modifier and Type Field Description protected Executor
executor
protected FullTextBridge
fullTextBridge
protected IndexWatcher
indexWatcher
protected LocalAdmin
localAdmin
protected LocalQuery
localQuery
protected SessionManager
sessionManager
-
Fields inherited from class ome.logic.AbstractLevel1Service
queryFactory, sessionFactory
-
-
Constructor Summary
Constructors Constructor Description UpdateImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deleteObject(ome.model.IObject row)
void
flush()
java.lang.Class<? extends ome.api.ServiceInterface>
getServiceInterface()
void
indexObject(ome.model.IObject row)
protected void
internalDelete(ome.model.IObject obj, UpdateFilter filter, org.hibernate.Session session)
protected ome.model.IObject
internalMerge(ome.model.IObject obj, UpdateFilter filter, org.hibernate.Session session)
Note if we use anything other than merge here, functionality fromMergeEventListener
needs to be moved toUpdateFilter
or to another event listener.protected java.lang.Long
internalSave(ome.model.IObject obj, ReloadFilter filter, org.hibernate.Session session)
Note if we use anything other than merge here, functionality fromMergeEventListener
needs to be moved toUpdateFilter
or to another event listener.ome.model.IObject[]
saveAndReturnArray(ome.model.IObject[] graph)
java.util.List<java.lang.Long>
saveAndReturnIds(ome.model.IObject[] graph)
ome.model.IObject
saveAndReturnObject(ome.model.IObject graph)
void
saveArray(ome.model.IObject[] graph)
void
saveCollection(java.util.Collection graph)
void
saveObject(ome.model.IObject graph)
void
setAdminService(LocalAdmin admin)
void
setExecutor(Executor executor)
void
setFullTextBridge(FullTextBridge fullTextBridge)
void
setIndexWatcher(IndexWatcher indexWatcher)
void
setQueryService(LocalQuery query)
void
setSessionManager(SessionManager sessionManager)
-
Methods inherited from class ome.logic.AbstractLevel1Service
getBeanHelper, getQueryFactory, getSessionFactory, selfConfigure, setQueryFactory, setSessionFactory
-
-
-
-
Field Detail
-
localAdmin
protected transient LocalAdmin localAdmin
-
localQuery
protected transient LocalQuery localQuery
-
executor
protected transient Executor executor
-
sessionManager
protected transient SessionManager sessionManager
-
fullTextBridge
protected transient FullTextBridge fullTextBridge
-
indexWatcher
protected transient IndexWatcher indexWatcher
-
-
Method Detail
-
setAdminService
public final void setAdminService(LocalAdmin admin)
-
setQueryService
public final void setQueryService(LocalQuery query)
-
setExecutor
public void setExecutor(Executor executor)
-
setSessionManager
public void setSessionManager(SessionManager sessionManager)
-
setFullTextBridge
public void setFullTextBridge(FullTextBridge fullTextBridge)
-
setIndexWatcher
public void setIndexWatcher(IndexWatcher indexWatcher)
-
getServiceInterface
public java.lang.Class<? extends ome.api.ServiceInterface> getServiceInterface()
- Specified by:
getServiceInterface
in interfaceome.system.SelfConfigurableService
-
flush
public void flush()
- Specified by:
flush
in interfaceLocalUpdate
-
saveObject
public void saveObject(ome.model.IObject graph)
- Specified by:
saveObject
in interfaceome.api.IUpdate
-
saveAndReturnObject
public ome.model.IObject saveAndReturnObject(ome.model.IObject graph)
- Specified by:
saveAndReturnObject
in interfaceome.api.IUpdate
-
saveCollection
public void saveCollection(java.util.Collection graph)
- Specified by:
saveCollection
in interfaceome.api.IUpdate
-
saveAndReturnArray
public ome.model.IObject[] saveAndReturnArray(ome.model.IObject[] graph)
- Specified by:
saveAndReturnArray
in interfaceome.api.IUpdate
-
saveAndReturnIds
public java.util.List<java.lang.Long> saveAndReturnIds(ome.model.IObject[] graph)
- Specified by:
saveAndReturnIds
in interfaceome.api.IUpdate
-
saveArray
public void saveArray(ome.model.IObject[] graph)
- Specified by:
saveArray
in interfaceome.api.IUpdate
-
deleteObject
public void deleteObject(ome.model.IObject row)
- Specified by:
deleteObject
in interfaceome.api.IUpdate
-
indexObject
public void indexObject(ome.model.IObject row)
- Specified by:
indexObject
in interfaceome.api.IUpdate
-
internalSave
protected java.lang.Long internalSave(ome.model.IObject obj, ReloadFilter filter, org.hibernate.Session session)
Note if we use anything other than merge here, functionality fromMergeEventListener
needs to be moved toUpdateFilter
or to another event listener.
-
internalMerge
protected ome.model.IObject internalMerge(ome.model.IObject obj, UpdateFilter filter, org.hibernate.Session session)
Note if we use anything other than merge here, functionality fromMergeEventListener
needs to be moved toUpdateFilter
or to another event listener.
-
internalDelete
protected void internalDelete(ome.model.IObject obj, UpdateFilter filter, org.hibernate.Session session)
-
-