| java.lang.Object com.sourcetap.sfa.replication.GenericReplicator com.sourcetap.sfa.replication.EntityReplicator com.sourcetap.sfa.replication.FullReplicator
All known Subclasses: com.sourcetap.sfa.replication.SFAFullReplicator,
FullReplicator | abstract public class FullReplicator extends EntityReplicator (Code) | | This abstract class is used for full data replication.
Full replication is required to populate a newly registered replication node, or
to re-populate an inactive replication node.
This class should be extended, and the populateRelatedEntityMapVector() method should be
called in the descendant class tospecify what entities are to be
replicated.
To perform full replication, instantiate the descendant class, and call the replicateFull()
method.
author: John Nutting |
Method Summary | |
protected int | removeAll() This method removes all instances of all entities named
in the relatedEntityMapVector.
author: John Nutting Status. | protected int | replicateAll() This method replicates all instances of all entities in the related entity
map vector. | public int | replicateFull() This method removes and replicates all entities in the related entity map vector.
It should be called from the appplication to do a full replication.
author: John Nutting Status. |
FullReplicator | public FullReplicator()(Code) | | Constructor with no args.
|
FullReplicator | public FullReplicator(GenericDelegator localDelegator, GenericDelegator masterDelegator, String entityName, UserInfo userInfo)(Code) | | Constructor with args.
Parameters: mainInstance - Main entity instance for which related entities will be replicated Parameters: localDelegator - Delegator to attach to local data base Parameters: masterDelegator - Delegator to attach to master data base Parameters: entityName - Name of the entity to be replicated Parameters: userInfo - UserInfo object containing user information |
removeAll | protected int removeAll()(Code) | | This method removes all instances of all entities named
in the relatedEntityMapVector.
author: John Nutting Status. Possible values: STATUS_CONTINUE, STATUS_ERROR, STATUS_CANCELED |
replicateAll | protected int replicateAll()(Code) | | This method replicates all instances of all entities in the related entity
map vector. It should be used to start full replication after the removeAll method is called.
author: John Nutting Status. Possible values: STATUS_CONTINUE, STATUS_ERROR, STATUS_CANCELED |
replicateFull | public int replicateFull()(Code) | | This method removes and replicates all entities in the related entity map vector.
It should be called from the appplication to do a full replication.
author: John Nutting Status. Possible values: STATUS_CONTINUE, STATUS_ERROR, STATUS_CANCELED |
Methods inherited from com.sourcetap.sfa.replication.EntityReplicator | public void addRelatedEntityMap(HashMap relatedEntityMap)(Code)(Java Doc) public void addRelatedEntityMap(String relationTitle, String relatedEntityName, HashMap filterMap, boolean replicateAll, boolean removeAll, String replicatorClassName)(Code)(Java Doc) protected List findOneRelated(GenericDelegator delegator, GenericValue mainInstance, String relationTitle, String relatedEntityName, HashMap filterMap, boolean findAll)(Code)(Java Doc) public String getEntityName()(Code)(Java Doc) public static EntityReplicator getEntityReplicator(String className, GenericDelegator localDelegator, GenericDelegator masterDelegator, String entityName, UserInfo userInfo)(Code)(Java Doc) public Vector getRelatedEntityMapVector()(Code)(Java Doc) public UserInfo getUserInfo()(Code)(Java Doc) public int insertLocalInstance(GenericValue masterInstance)(Code)(Java Doc) public void populateRelatedEntityMapVector()(Code)(Java Doc) public int removeAllRelated(GenericValue localInstance)(Code)(Java Doc) public int removeInstance(GenericValue mainInstance)(Code)(Java Doc) public int removeLocalInstance(GenericValue localInstance)(Code)(Java Doc) protected int removeOneRelated(GenericValue mainInstance, String relationTitle, String relatedEntityName, HashMap filterMap, boolean removeAll, String replicatorClassName)(Code)(Java Doc) public int replicateAllRelated(GenericValue mainInstance)(Code)(Java Doc) public int replicateInstance(GenericValue mainInstance)(Code)(Java Doc) protected int replicateOneRelated(GenericValue mainInstance, String relationTitle, String relatedEntityName, HashMap filterMap, boolean replicateAll, String replicatorClassName)(Code)(Java Doc) public void setEntityName(String entityName_)(Code)(Java Doc) public void setUserInfo(UserInfo userInfo_)(Code)(Java Doc)
|
|
|