public interface DataService
Implementation delegates to DataManager
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
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) |
static final java.lang.String NAME
java.util.Set<Entity> commit(CommitContext context)
context
- CommitContext
object, containing committing entities and other information@Nullable <E extends Entity> E load(LoadContext<E> context)
The depth of object graphs, starting from loaded instances, defined by View
object passed in LoadContext
.
context
- LoadContext
object, defining what and how to load<E extends Entity> java.util.List<E> loadList(LoadContext<E> context)
The depth of object graphs, starting from loaded instances, defined by View
object passed in LoadContext
.
context
- LoadContext
object, defining what and how to loadlong getCount(LoadContext<? extends Entity> context)
LoadContext
.context
- defines the queryjava.util.List<KeyValueEntity> loadValues(ValueLoadContext context)