public interface TopiaReplicationSupport
| Modifier and Type | Method and Description |
|---|---|
void |
replicate(TopiaContext destinationContext,
Object... entityAndCondition)
Makes a replication of some entities from this context to the given
context without any entity modification.
|
<T extends TopiaEntity> |
replicateEntities(TopiaContext destinationContext,
List<T> entities)
Makes a replication of some entities from this context to the given
context without any entity modification.
|
<T extends TopiaEntity> |
replicateEntity(TopiaContext destinationContext,
T entity)
Replicate a given entity from this context to the given context.
|
void replicate(TopiaContext destinationContext, Object... entityAndCondition) throws IllegalArgumentException
entityAndCondition parameter is empty,
all the database will be replicated
Note 2: The simple replication may not be sufficent. You may want
to replicate only a part of some entities : use the method replicateEntities(TopiaContext, java.util.List).destinationContext - the destination contextentityAndCondition - [key;value;...] parameter which key is the
entity class to replicate, and value the
"where" condition to use when querying entitiesIllegalArgumentException - if one of the context is closed or if
trying to replicate within the same
database<T extends TopiaEntity> void replicateEntity(TopiaContext destinationContext, T entity) throws IllegalArgumentException
destinationContext - the destination contextentity - the entity instance to replicateIllegalArgumentException - if one of the context is closed or if
trying to replicate within the same
database<T extends TopiaEntity> void replicateEntities(TopiaContext destinationContext, List<T> entities) throws IllegalArgumentException
destinationContext - the destination contextentities - the list of entities instance to replicateIllegalArgumentException - if one of the context is closed or if
trying to replicate within the same
databaseCopyright © 2004–2013 CodeLutin. All rights reserved.