com.agfa.hap.sdo
Class DataAccessService
java.lang.Object
com.agfa.hap.sdo.DataAccessService
public class DataAccessService
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataAccessService
public DataAccessService()
createSnapShot
public static Snapshot createSnapShot(SnapshotDefinition def,
PartialDataObject root)
createSnapShot
public static <T> Snapshot createSnapShot(DataMapper<T> mapper,
SnapshotDefinition def,
T root)
createMultiSnapShot
public static <T> Snapshot createMultiSnapShot(SnapshotDefinition def,
java.util.Collection<? extends T> root)
createMultiSnapShot
public static <T> Snapshot createMultiSnapShot(DataMapper<T> mapper,
SnapshotDefinition def,
java.util.Collection<? extends T> root)
getRootObject
public static PartialDataObject getRootObject(Snapshot s)
getRootObject
public static <T> T getRootObject(DataMapper<T> mapper,
Snapshot s)
- Returns:
- The first and only root object of the snapshot. This is always a different
instance than the object that was used to create the snapshot.
- Throws:
java.lang.RuntimeException
- if there are no root objects or if there is more than one root object
getRootObjects
public static java.util.List<PartialDataObject> getRootObjects(Snapshot s)
getRootObjects
public static <T> java.util.List<T> getRootObjects(DataMapper<T> mapper,
Snapshot s)
rootObjectsIterator
public static <T> java.util.Iterator<T> rootObjectsIterator(DataMapper<T> mapper,
Snapshot s)
Copyright © 2007. All Rights Reserved.