gr.uoa.di.madgik.rr.utils
Class DatastoreHelper
java.lang.Object
gr.uoa.di.madgik.rr.utils.DatastoreHelper
public class DatastoreHelper
- extends Object
|
Method Summary |
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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DatastoreHelper
public DatastoreHelper()
replicate
public static void replicate(RRContext.DatastoreType source,
RRContext.DatastoreType target,
Set<Class<?>> objects)
throws ResourceRegistryException
- Throws:
ResourceRegistryException
resolveUpdateConflicts
public static void resolveUpdateConflicts(RRContext.DatastoreType source,
RRContext.DatastoreType target,
Set<Class<?>> objects)
throws ResourceRegistryException
- 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
- Parameters:
source - The datastore used to buffer incoming itemstarget - The local datastoreobjects -
- Throws:
ResourceRegistryException
getItems
public static Set<IDaoElement> getItems(RRContext.DatastoreType target,
Class<?> obj)
throws Exception
- Throws:
Exception
getItems
public static Set<IDaoElement> getItems(RRContext.DatastoreType target,
Class<?> obj,
boolean overridePrefetched)
throws Exception
- Throws:
Exception
getItems
public static Set<IDaoElement> getItems(RRContext.DatastoreType target,
Class<?> obj,
boolean overridePrefetched,
boolean detach)
throws Exception
- Throws:
Exception
clear
public static void clear(RRContext.DatastoreType target,
Set<Class<?>> objects)
throws ResourceRegistryException
- Throws:
ResourceRegistryException
retrieveAll
public static Set<IDaoElement> retrieveAll(RRContext.DatastoreType target,
Class<?> object)
throws ResourceRegistryException
- Throws:
ResourceRegistryException
bufferItems
public static void bufferItems(Set<IDaoElement> items)
throws ResourceRegistryException
- Throws:
ResourceRegistryException
persistItems
public static void persistItems(Set<IDaoElement> items)
throws ResourceRegistryException
- Throws:
ResourceRegistryException
Copyright © 2012. All Rights Reserved.