public class DataServiceProxy extends java.lang.Object implements DataService
NAME| Constructor and Description |
|---|
DataServiceProxy(TestContainer container) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<Entity> |
commit(CommitContext context)
Commits a collection of new or detached entity instances to the database.
|
long |
getCount(LoadContext<? extends Entity> context)
Returns the number of entity instances for the given query passed in the
LoadContext. |
<E extends Entity> |
load(LoadContext<E> context)
Loads a single entity instance.
|
<E extends Entity> |
loadList(LoadContext<E> context)
Loads collection of entity instances.
|
java.util.List<KeyValueEntity> |
loadValues(ValueLoadContext context) |
public DataServiceProxy(TestContainer container)
public java.util.Set<Entity> commit(CommitContext context)
DataServicecommit in interface DataServicecontext - CommitContext object, containing committing entities and other information@Nullable public <E extends Entity> E load(LoadContext<E> context)
DataServiceThe depth of object graphs, starting from loaded instances, defined by View
object passed in LoadContext.
load in interface DataServicecontext - LoadContext object, defining what and how to loadpublic <E extends Entity> java.util.List<E> loadList(LoadContext<E> context)
DataServiceThe depth of object graphs, starting from loaded instances, defined by View
object passed in LoadContext.
loadList in interface DataServicecontext - LoadContext object, defining what and how to loadpublic long getCount(LoadContext<? extends Entity> context)
DataServiceLoadContext.getCount in interface DataServicecontext - defines the querypublic java.util.List<KeyValueEntity> loadValues(ValueLoadContext context)
loadValues in interface DataService