public interface IDomainAccess
| Modifier and Type | Interface and Description |
|---|---|
static class |
IDomainAccess.DomainLabelUse |
| Modifier and Type | Method and Description |
|---|---|
ITransaction |
beginTX()
create a transaction
|
DomainQuery |
createQuery()
create a new domain query
|
IGenericDomainAccess |
getGenericDomainAccess()
Answer a domain access object which works with a generic domain model.
|
SyncInfo |
getSyncInfo(Object domainObject)
For every domain object stored in the graph database a SyncInfo object can be retrieved.
|
List<SyncInfo> |
getSyncInfos(List<Object> domainObjects)
For every domain object stored in the graph database a SyncInfo object can be retrieved.
|
<T> T |
loadById(Class<T> domainObjectClass,
int resolutionDepth,
long id)
Load a domain object from the graph database.
|
<T> List<T> |
loadByIds(Class<T> domainObjectClass,
int resolutionDepth,
long... ids)
Load a list of domain objects from the graph database.
|
<T> List<T> |
loadByType(Class<T> domainObjectClass,
int resolutionDepth,
int offset,
int count)
All objects of the specified type or any subtype of it
will be loaded from the domain graph and returned in a list.
|
long |
numberOfInstancesOf(Class<?> type)
answer the number of instances of a certain type and of all of that type's subtypes stored in the domain graph
|
List<Long> |
numberOfInstancesOf(List<Class<?>> types)
answer the numbers of instances of the specified types and of all of these type's subtypes stored in the domain graph
|
IDomainAccess |
setLockingStrategy(Locking locking)
Set the locking strategy (e.g.
|
List<JcError> |
store(List<?> domainObjects)
Store a list of domain objects.
|
List<JcError> |
store(Object domainObject)
Store a domain object.
|
List<SyncInfo> getSyncInfos(List<Object> domainObjects)
domainObjects - a list of domain objects that have been stored in the domain graph.SyncInfo getSyncInfo(Object domainObject)
domainObject - a domain object that has been stored in the domain graph.<T> List<T> loadByIds(Class<T> domainObjectClass, int resolutionDepth, long... ids)
domainObjectClass - resolutionDepth - ids - a list of object ids (i.e. the ids of the nodes in the graph to which the objects were mapped).<T> T loadById(Class<T> domainObjectClass, int resolutionDepth, long id)
domainObjectClass - resolutionDepth - id - an object id (i.e. the id of the node in the graph to which the object was mapped).<T> List<T> loadByType(Class<T> domainObjectClass, int resolutionDepth, int offset, int count)
domainObjectClass - specifies the type of objects that should be loaded.resolutionDepth - offset - count - List<JcError> store(List<?> domainObjects)
domainObjects - List<JcError> store(Object domainObject)
domainObject - long numberOfInstancesOf(Class<?> type)
type - List<Long> numberOfInstancesOf(List<Class<?>> types)
types - a list of typesDomainQuery createQuery()
ITransaction beginTX()
IDomainAccess setLockingStrategy(Locking locking)
locking - IGenericDomainAccess getGenericDomainAccess()
Copyright © 2016. All rights reserved.