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)
DataService
commit
in interface DataService
context
- CommitContext
object, containing committing entities and other information@Nullable public <E extends Entity> E load(LoadContext<E> context)
DataService
The depth of object graphs, starting from loaded instances, defined by View
object passed in LoadContext
.
load
in interface DataService
context
- LoadContext
object, defining what and how to loadpublic <E extends Entity> java.util.List<E> loadList(LoadContext<E> context)
DataService
The depth of object graphs, starting from loaded instances, defined by View
object passed in LoadContext
.
loadList
in interface DataService
context
- LoadContext
object, defining what and how to loadpublic long getCount(LoadContext<? extends Entity> context)
DataService
LoadContext
.getCount
in interface DataService
context
- defines the querypublic java.util.List<KeyValueEntity> loadValues(ValueLoadContext context)
loadValues
in interface DataService