Java Doc for SFAFullReplicator.java in  » ERP-CRM-Financial » SourceTap-CRM » com » sourcetap » sfa » replication » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » ERP CRM Financial » SourceTap CRM » com.sourcetap.sfa.replication 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sourcetap.sfa.replication.GenericReplicator
      com.sourcetap.sfa.replication.EntityReplicator
         com.sourcetap.sfa.replication.FullReplicator
            com.sourcetap.sfa.replication.SFAFullReplicator

SFAFullReplicator
public class SFAFullReplicator extends FullReplicator (Code)
This class is used for full data replication for the Sales Force Automation application.

Full replication is required to populate a newly registered replication node, or to re-populate an inactive replication node.

This class calls the populateRelatedEntityMapVector() method to specify what entities are to be replicated. To perform full replication, instantiate this class, and call the replicateFull() method.
author:
   John Nutting



Field Summary
final public static  Stringmodule
    

Constructor Summary
public  SFAFullReplicator()
     Constructor with no args.
public  SFAFullReplicator(GenericDelegator localDelegator, GenericDelegator masterDelegator, String entityName, UserInfo userInfo)
     Constructor with args.

Method Summary
protected  ListfindAccounts(GenericDelegator delegator)
     This method finds all Accounts for replication.
protected  ListfindCodes(GenericDelegator delegator)
     This method finds all instances of the Code entity for replication.
protected  ListfindOneRelated(GenericDelegator delegator, GenericValue mainInstance, String relationTitle, String relatedEntityName, HashMap filterMap, boolean findAll)
     This method finds all instances of an entity related to the main entity.
public  voidpopulateRelatedEntityMapVector()
     Populate the related entity map vector.

Field Detail
module
final public static String module(Code)




Constructor Detail
SFAFullReplicator
public SFAFullReplicator()(Code)
Constructor with no args.



SFAFullReplicator
public SFAFullReplicator(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




Method Detail
findAccounts
protected List findAccounts(GenericDelegator delegator)(Code)
This method finds all Accounts for replication. Filtering is applied according to the company's security settings. Accounts will be limited to the current user's company regardless of security settings, even if the mode is ALL. Team or territory filtering will be applied if specified in the company's security settings.
author:
   John Nutting List of Account generic values



findCodes
protected List findCodes(GenericDelegator delegator)(Code)
This method finds all instances of the Code entity for replication. The code holding the system parameter for the replication node ID is excluded.
author:
   John Nutting List of Code generic values



findOneRelated
protected List findOneRelated(GenericDelegator delegator, GenericValue mainInstance, String relationTitle, String relatedEntityName, HashMap filterMap, boolean findAll)(Code)
This method finds all instances of an entity related to the main entity. This method overrides the ancestor to filter out instances for the SFA application.
author:
   John Nutting
Parameters:
  mainInstance - Main entity instance for which related entities will be replicated
Parameters:
  relationTitle - Relation title to be used by the entity engine to find relatedentity instances
Parameters:
  relatedEntityName - Name of the related entity to be replicated
Parameters:
  filterMap - HashMap containing additional filter values to be used by the entityengine when finding related entity instances List of generic values related to the main entity instance



populateRelatedEntityMapVector
public void populateRelatedEntityMapVector()(Code)
Populate the related entity map vector. This method is called from the constructors to allow the related entities to be specified before replication begins.
author:
   John Nutting



Fields inherited from com.sourcetap.sfa.replication.FullReplicator
final public static String module(Code)(Java Doc)

Methods inherited from com.sourcetap.sfa.replication.FullReplicator
protected int removeAll()(Code)(Java Doc)
protected int replicateAll()(Code)(Java Doc)
public int replicateFull()(Code)(Java Doc)

Fields inherited from com.sourcetap.sfa.replication.EntityReplicator
protected String entityName(Code)(Java Doc)
final public static String module(Code)(Java Doc)
protected Vector relatedEntityMapVector(Code)(Java Doc)
protected UserInfo userInfo(Code)(Java Doc)

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)

Fields inherited from com.sourcetap.sfa.replication.GenericReplicator
final public static int ACTION_DELETE(Code)(Java Doc)
final public static int ACTION_ERROR(Code)(Java Doc)
final public static int ACTION_INSERT(Code)(Java Doc)
final public static int ACTION_SKIP(Code)(Java Doc)
final public static int ACTION_UPDATE(Code)(Java Doc)
final public static int STATUS_CANCELED(Code)(Java Doc)
final public static int STATUS_CONTINUE(Code)(Java Doc)
final public static int STATUS_ERROR(Code)(Java Doc)
protected GenericDelegator localDelegator(Code)(Java Doc)
protected GenericDelegator masterDelegator(Code)(Java Doc)
final public static String module(Code)(Java Doc)

Methods inherited from com.sourcetap.sfa.replication.GenericReplicator
public static boolean getIsRegistered(GenericDelegator delegator)(Code)(Java Doc)
public GenericDelegator getLocalDelegator()(Code)(Java Doc)
public GenericDelegator getMasterDelegator()(Code)(Java Doc)
public static String getNextSeqId(String seqName, GenericDelegator delegator)(Code)(Java Doc)
public GenericValue getReplNodeGenericValue(String replNodeId)(Code)(Java Doc)
public static String getReplNodeId(GenericDelegator localDelegator)(Code)(Java Doc)
public String getReplNodeId()(Code)(Java Doc)
public int markNodeReplicated(String replNodeId, String userPartyId)(Code)(Java Doc)
public String register(String replNodeName, String ownerId, boolean isActive, String userPartyId)(Code)(Java Doc)
public void setLocalDelegator(GenericDelegator delegator)(Code)(Java Doc)
public void setMasterDelegator(GenericDelegator delegator)(Code)(Java Doc)
public String validateMasterLogin(String enteredUserLoginId, String enteredPassword, UserInfo masterUserInfo)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.