public class DomainAccess extends Object implements IDomainAccess, IIntDomainAccess
| Modifier and Type | Class and Description |
|---|---|
class |
DomainAccess.GenericDomainAccess |
class |
DomainAccess.InternalDomainAccess |
static interface |
DomainAccess.IRecursionExit |
IDomainAccess.DomainLabelUse| Constructor and Description |
|---|
DomainAccess(IDBAccess dbAccess,
String domainName,
IDomainAccess.DomainLabelUse 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.
|
DomainAccess.InternalDomainAccess |
getInternalDomainAccess() |
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.
|
public DomainAccess(IDBAccess dbAccess, String domainName, IDomainAccess.DomainLabelUse domainLabelUse)
dbAccess - the graph database connectiondomainName - domainLabelUse - public List<JcError> store(Object domainObject)
IDomainAccessstore in interface IDomainAccesspublic List<JcError> store(List<?> domainObjects)
IDomainAccessstore in interface IDomainAccesspublic <T> T loadById(Class<T> domainObjectClass, int resolutionDepth, long id)
IDomainAccessloadById in interface IDomainAccessid - an object id (i.e. the id of the node in the graph to which the object was mapped).public <T> List<T> loadByIds(Class<T> domainObjectClass, int resolutionDepth, long... ids)
IDomainAccessloadByIds in interface IDomainAccessids - a list of object ids (i.e. the ids of the nodes in the graph to which the objects were mapped).public <T> List<T> loadByType(Class<T> domainObjectClass, int resolutionDepth, int offset, int count)
IDomainAccessloadByType in interface IDomainAccessdomainObjectClass - specifies the type of objects that should be loaded.public SyncInfo getSyncInfo(Object domainObject)
IDomainAccessgetSyncInfo in interface IDomainAccessdomainObject - a domain object that has been stored in the domain graph.public List<SyncInfo> getSyncInfos(List<Object> domainObjects)
IDomainAccessgetSyncInfos in interface IDomainAccessdomainObjects - a list of domain objects that have been stored in the domain graph.public long numberOfInstancesOf(Class<?> type)
IDomainAccessnumberOfInstancesOf in interface IDomainAccesspublic List<Long> numberOfInstancesOf(List<Class<?>> types)
IDomainAccessnumberOfInstancesOf in interface IDomainAccesstypes - a list of typespublic DomainQuery createQuery()
IDomainAccesscreateQuery in interface IDomainAccesspublic DomainAccess.InternalDomainAccess getInternalDomainAccess()
getInternalDomainAccess in interface IIntDomainAccesspublic ITransaction beginTX()
IDomainAccessbeginTX in interface IDomainAccesspublic IDomainAccess setLockingStrategy(Locking locking)
IDomainAccesssetLockingStrategy in interface IDomainAccesspublic IGenericDomainAccess getGenericDomainAccess()
IDomainAccessgetGenericDomainAccess in interface IDomainAccessCopyright © 2016. All rights reserved.