public class DomainAccess.GenericDomainAccess extends Object implements IGenericDomainAccess, IIntDomainAccess
| Constructor and Description |
|---|
DomainAccess.GenericDomainAccess() |
| 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.
|
DomainAccess.InternalDomainAccess |
getInternalDomainAccess() |
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.
|
public List<JcError> store(DomainObject domainObject)
IGenericDomainAccessstore in interface IGenericDomainAccesspublic List<JcError> store(List<DomainObject> domainObjects)
IGenericDomainAccessstore in interface IGenericDomainAccesspublic List<DomainObject> loadByIds(String domainObjectClassName, int resolutionDepth, long... ids)
IGenericDomainAccessloadByIds in interface IGenericDomainAccessids - a list of object ids (i.e. the ids of the nodes in the graph to which the objects were mapped).public DomainObject loadById(String domainObjectClassName, int resolutionDepth, long id)
IGenericDomainAccessloadById in interface IGenericDomainAccessid - an object id (i.e. the id of the node in the graph to which the object was mapped).public List<DomainObject> loadByType(String domainObjectClassName, int resolutionDepth, int offset, int count)
IGenericDomainAccessloadByType in interface IGenericDomainAccessdomainObjectClassName - specifies the type of objects that should be loaded.public IDomainAccess getDomainAccess()
IGenericDomainAccessgetDomainAccess in interface IGenericDomainAccesspublic DOTypeBuilderFactory getTypeBuilderFactory()
IGenericDomainAccessgetTypeBuilderFactory in interface IGenericDomainAccesspublic DOType getDomainObjectType(String typeName)
IGenericDomainAccessgetDomainObjectType in interface IGenericDomainAccesspublic List<SyncInfo> getSyncInfos(List<DomainObject> domainObjects)
IGenericDomainAccessgetSyncInfos in interface IGenericDomainAccessdomainObjects - a list of domain objects that have been stored in the domain graph.public SyncInfo getSyncInfo(DomainObject domainObject)
IGenericDomainAccessgetSyncInfo in interface IGenericDomainAccessdomainObject - a domain object that has been stored in the domain graph.public long numberOfInstancesOf(String typeName)
IGenericDomainAccessnumberOfInstancesOf in interface IGenericDomainAccesspublic List<Long> numberOfInstancesOf(List<String> typeNames)
IGenericDomainAccessnumberOfInstancesOf in interface IGenericDomainAccesspublic GDomainQuery createQuery()
IGenericDomainAccesscreateQuery in interface IGenericDomainAccesspublic ITransaction beginTX()
IGenericDomainAccessbeginTX in interface IGenericDomainAccesspublic IGenericDomainAccess setLockingStrategy(Locking locking)
IGenericDomainAccesssetLockingStrategy in interface IGenericDomainAccesspublic DomainAccess.InternalDomainAccess getInternalDomainAccess()
getInternalDomainAccess in interface IIntDomainAccessCopyright © 2016. All rights reserved.