public interface IGenericDomainAccess
| Modifier and Type | Method and Description |
|---|---|
ITransaction |
beginTX()
create a transaction
|
GDomainQuery |
createQuery()
create a new generic domain query
|
IDomainAccess |
getDomainAccess()
Answer a domain access object.
|
DOType |
getDomainObjectType(String typeName)
Answer a domain object type for the given typeName.
|
SyncInfo |
getSyncInfo(DomainObject domainObject)
For every domain object stored in the graph database a SyncInfo object can be retrieved.
|
List<SyncInfo> |
getSyncInfos(List<DomainObject> domainObjects)
For every domain object stored in the graph database a SyncInfo object can be retrieved.
|
DOTypeBuilderFactory |
getTypeBuilderFactory()
Answer a factory for retrieving type builders.
|
DomainObject |
loadById(String domainObjectClassName,
int resolutionDepth,
long id)
Load a generic domain object from the graph database.
|
List<DomainObject> |
loadByIds(String domainObjectClassName,
int resolutionDepth,
long... ids)
Load a list of generic domain objects from the graph database.
|
List<DomainObject> |
loadByType(String domainObjectClassName,
int resolutionDepth,
int offset,
int count)
All objects of the type specified by domainObjectClassName or of any subtype
will be loaded as generic domain objects from the domain graph and returned in a list.
|
List<Long> |
numberOfInstancesOf(List<String> typeNames)
answer the numbers of instances of the specified types (specified by type names) and of all of these type's subtypes stored in the domain graph
|
long |
numberOfInstancesOf(String typeName)
answer the number of instances of a certain type (specified by type name) and of all of that type's subtypes stored in the domain graph
|
IGenericDomainAccess |
setLockingStrategy(Locking locking)
Set the locking strategy (e.g.
|
List<JcError> |
store(DomainObject domainObject)
Store a domain object.
|
List<JcError> |
store(List<DomainObject> domainObjects)
Store a list of domain objects.
|
List<SyncInfo> getSyncInfos(List<DomainObject> domainObjects)
domainObjects - a list of domain objects that have been stored in the domain graph.SyncInfo getSyncInfo(DomainObject domainObject)
domainObject - a domain object that has been stored in the domain graph.List<JcError> store(DomainObject domainObject)
domainObject - List<JcError> store(List<DomainObject> domainObjects)
domainObjects - List<DomainObject> loadByIds(String domainObjectClassName, int resolutionDepth, long... ids)
domainObjectClassName - resolutionDepth - ids - a list of object ids (i.e. the ids of the nodes in the graph to which the objects were mapped).DomainObject loadById(String domainObjectClassName, int resolutionDepth, long id)
domainObjectClassName - resolutionDepth - id - an object id (i.e. the id of the node in the graph to which the object was mapped).List<DomainObject> loadByType(String domainObjectClassName, int resolutionDepth, int offset, int count)
domainObjectClassName - specifies the type of objects that should be loaded.resolutionDepth - offset - count - long numberOfInstancesOf(String typeName)
typeName - List<Long> numberOfInstancesOf(List<String> typeNames)
types - a list of typeNamesGDomainQuery createQuery()
ITransaction beginTX()
IGenericDomainAccess setLockingStrategy(Locking locking)
locking - DOTypeBuilderFactory getTypeBuilderFactory()
DOType getDomainObjectType(String typeName)
typeName - IDomainAccess getDomainAccess()
Copyright © 2016. All rights reserved.