public class DatastoreHelper extends Object
| Constructor and Description |
|---|
DatastoreHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
bufferItems(Set<IDaoElement> items) |
static void |
clear(RRContext.DatastoreType target,
Set<Class<?>> objects) |
static Set<IDaoElement> |
getItems(RRContext.DatastoreType target,
Class<?> obj) |
static Set<IDaoElement> |
getItems(RRContext.DatastoreType target,
Class<?> obj,
boolean overridePrefetched) |
static Set<IDaoElement> |
getItems(RRContext.DatastoreType target,
Class<?> obj,
boolean overridePrefetched,
boolean detach) |
static void |
persistItems(Set<IDaoElement> items) |
static void |
replicate(RRContext.DatastoreType source,
RRContext.DatastoreType target,
Set<Class<?>> objects) |
static void |
resolveUpdateConflicts(RRContext.DatastoreType source,
RRContext.DatastoreType target,
Set<Class<?>> objects)
Resolves conflicts originating from items being updated in the local datastore during the time an incoming bridging iteration is ongoing
The conflict is resolved by keeping the version in the local datastore so as to avoid having stale data in the local store and missing write-behind updates
|
static Set<IDaoElement> |
retrieveAll(RRContext.DatastoreType target,
Class<?> object) |
public static void replicate(RRContext.DatastoreType source, RRContext.DatastoreType target, Set<Class<?>> objects) throws ResourceRegistryException
ResourceRegistryExceptionpublic static void resolveUpdateConflicts(RRContext.DatastoreType source, RRContext.DatastoreType target, Set<Class<?>> objects) throws ResourceRegistryException
source - The datastore used to buffer incoming itemstarget - The local datastoreobjects - ResourceRegistryExceptionpublic static Set<IDaoElement> getItems(RRContext.DatastoreType target, Class<?> obj) throws Exception
Exceptionpublic static Set<IDaoElement> getItems(RRContext.DatastoreType target, Class<?> obj, boolean overridePrefetched) throws Exception
Exceptionpublic static Set<IDaoElement> getItems(RRContext.DatastoreType target, Class<?> obj, boolean overridePrefetched, boolean detach) throws Exception
Exceptionpublic static void clear(RRContext.DatastoreType target, Set<Class<?>> objects) throws ResourceRegistryException
ResourceRegistryExceptionpublic static Set<IDaoElement> retrieveAll(RRContext.DatastoreType target, Class<?> object) throws ResourceRegistryException
ResourceRegistryExceptionpublic static void bufferItems(Set<IDaoElement> items) throws ResourceRegistryException
ResourceRegistryExceptionpublic static void persistItems(Set<IDaoElement> items) throws ResourceRegistryException
ResourceRegistryExceptionCopyright © 2014. All Rights Reserved.