public class ModelCopier extends Object
| Constructor and Description |
|---|
ModelCopier(ILogSink sink,
QDataContext sds,
QDataContext dds) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
copy(T src,
Object... except)
This tries to make a copy of the object, by recursively implementing the search rules for each of
it's relation instances.
|
<T> T |
dbfind(InstanceKey<T> key)
Locate the direct target in the dest db, only create key instances.
|
<T> EntityDef<T> |
define(Class<T> eclass) |
<T> T |
destCreate(InstanceKey<T> key)
This either locates or creates the specified instance in dest.
|
<T> T |
destLocate(InstanceKey<T> key) |
<T> EntityDef<T> |
findDefinition(Class<T> eclass) |
<T> EntityDef<T> |
getDefinition(Class<T> eclass) |
ModelCopier |
ignorePath(String path) |
boolean |
isIgnoredPath() |
boolean |
isUpdateExisting() |
ModelCopier |
updateExisting() |
public ModelCopier(@Nullable ILogSink sink, @Nonnull QDataContext sds, @Nonnull QDataContext dds) throws Exception
Exception@Nonnull public ModelCopier ignorePath(String path)
public ModelCopier updateExisting()
public boolean isUpdateExisting()
@Nullable public <T> T copy(@Nonnull T src, Object... except) throws Exception
src - except - Exceptionpublic <T> T destLocate(InstanceKey<T> key) throws Exception
Exceptionpublic <T> T destCreate(@Nonnull InstanceKey<T> key) throws Exception
key - Exception@Nullable public <T> T dbfind(InstanceKey<T> key) throws Exception
key - Exceptionpublic boolean isIgnoredPath()
Copyright © 2017 etc.to. All rights reserved.