public class MockCdmEntitySession extends java.lang.Object implements ICdmEntitySession
Constructor and Description |
---|
MockCdmEntitySession() |
Modifier and Type | Method and Description |
---|---|
void |
addNewCdmEntity(eu.etaxonomy.cdm.model.common.CdmBase newEntity) |
void |
bind() |
<T extends eu.etaxonomy.cdm.model.common.CdmBase> |
debug() |
<T extends eu.etaxonomy.cdm.model.common.CdmBase> |
debug(java.util.Collection<T> cdmBase) |
<T extends eu.etaxonomy.cdm.model.common.CdmBase> |
debug(T cdmBase) |
void |
dispose() |
net.sf.ehcache.statistics.LiveCacheStatistics |
getCacheStatistics() |
ICdmEntitySessionEnabled |
getOwner() |
java.util.List<java.lang.String> |
getPropertyPaths(java.lang.Object obj) |
<T extends eu.etaxonomy.cdm.model.common.CdmBase> |
getRootEntities() |
boolean |
isActive() |
<T extends eu.etaxonomy.cdm.model.common.CdmBase> |
load(java.util.Collection<T> cdmBaseList,
boolean update) |
<T extends eu.etaxonomy.cdm.model.common.CdmBase> |
load(eu.etaxonomy.cdm.persistence.dto.MergeResult<T> mergeResult,
boolean update) |
<O> O |
load(O obj,
boolean update) |
<T extends eu.etaxonomy.cdm.model.common.CdmBase> |
load(T cdmBase,
boolean update) |
eu.etaxonomy.cdm.api.service.UpdateResult |
load(eu.etaxonomy.cdm.api.service.UpdateResult updateResult,
boolean update) |
<T extends eu.etaxonomy.cdm.model.common.CdmBase> |
remoteLoad(eu.etaxonomy.cdm.api.service.IService<T> service,
java.util.UUID uuid) |
<T extends eu.etaxonomy.cdm.model.common.CdmBase> |
remoteLoad(eu.etaxonomy.cdm.api.service.IService<T> service,
java.util.UUID uuid,
java.util.List<java.lang.String> propertyPaths) |
<T extends eu.etaxonomy.cdm.model.common.CdmBase> |
remoteSave(eu.etaxonomy.cdm.api.service.IService<T> service,
T cdmBase) |
<T extends eu.etaxonomy.cdm.model.common.CdmBase> |
remoteUpdate(eu.etaxonomy.cdm.api.service.IService<T> service,
T cdmBase) |
void |
setEntitiesAsLatest() |
<T extends eu.etaxonomy.cdm.model.common.CdmBase> |
update() |
public <O> O load(O obj, boolean update)
load
in interface ICdmEntitySession
public <T extends eu.etaxonomy.cdm.model.common.CdmBase> T load(T cdmBase, boolean update)
load
in interface ICdmEntitySession
public <T extends eu.etaxonomy.cdm.model.common.CdmBase> java.util.Collection<T> load(java.util.Collection<T> cdmBaseList, boolean update)
load
in interface ICdmEntitySession
public void setEntitiesAsLatest()
setEntitiesAsLatest
in interface ICdmEntitySession
public void dispose()
dispose
in interface ICdmEntitySession
public void bind()
bind
in interface ICdmEntitySession
public <T extends eu.etaxonomy.cdm.model.common.CdmBase> eu.etaxonomy.cdm.cache.EntityCacherDebugResult debug(T cdmBase)
debug
in interface ICdmEntitySession
public <T extends eu.etaxonomy.cdm.model.common.CdmBase> T remoteLoad(eu.etaxonomy.cdm.api.service.IService<T> service, java.util.UUID uuid)
remoteLoad
in interface ICdmEntitySession
public <T extends eu.etaxonomy.cdm.model.common.CdmBase> T remoteLoad(eu.etaxonomy.cdm.api.service.IService<T> service, java.util.UUID uuid, java.util.List<java.lang.String> propertyPaths)
remoteLoad
in interface ICdmEntitySession
public <T extends eu.etaxonomy.cdm.model.common.CdmBase> java.util.UUID remoteSave(eu.etaxonomy.cdm.api.service.IService<T> service, T cdmBase)
remoteSave
in interface ICdmEntitySession
public <T extends eu.etaxonomy.cdm.model.common.CdmBase> T remoteUpdate(eu.etaxonomy.cdm.api.service.IService<T> service, T cdmBase)
remoteUpdate
in interface ICdmEntitySession
public ICdmEntitySessionEnabled getOwner()
getOwner
in interface ICdmEntitySession
public net.sf.ehcache.statistics.LiveCacheStatistics getCacheStatistics()
getCacheStatistics
in interface ICdmEntitySession
public boolean isActive()
isActive
in interface ICdmEntitySession
public <T extends eu.etaxonomy.cdm.model.common.CdmBase> java.util.List<T> getRootEntities()
getRootEntities
in interface ICdmEntitySession
public <T extends eu.etaxonomy.cdm.model.common.CdmBase> eu.etaxonomy.cdm.cache.EntityCacherDebugResult debug(java.util.Collection<T> cdmBase)
debug
in interface ICdmEntitySession
public <T extends eu.etaxonomy.cdm.model.common.CdmBase> eu.etaxonomy.cdm.cache.EntityCacherDebugResult debug()
debug
in interface ICdmEntitySession
public <T extends eu.etaxonomy.cdm.model.common.CdmBase> void update()
update
in interface ICdmEntitySession
public eu.etaxonomy.cdm.api.service.UpdateResult load(eu.etaxonomy.cdm.api.service.UpdateResult updateResult, boolean update)
load
in interface ICdmEntitySession
public java.util.List<java.lang.String> getPropertyPaths(java.lang.Object obj)
getPropertyPaths
in interface ICdmEntitySession
public void addNewCdmEntity(eu.etaxonomy.cdm.model.common.CdmBase newEntity)
addNewCdmEntity
in interface ICdmEntitySession
public <T extends eu.etaxonomy.cdm.model.common.CdmBase> eu.etaxonomy.cdm.persistence.dto.MergeResult<T> load(eu.etaxonomy.cdm.persistence.dto.MergeResult<T> mergeResult, boolean update)
load
in interface ICdmEntitySession
Copyright © 2007-2018. All Rights Reserved.