Java Doc for GenericReplicator.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

All known Subclasses:   com.sourcetap.sfa.replication.EntityReplicator,
GenericReplicator
public class GenericReplicator (Code)
This class is used for data replication.
author:
   John Nutting


Field Summary
final public static  intACTION_DELETE
    
final public static  intACTION_ERROR
    
final public static  intACTION_INSERT
    
final public static  intACTION_SKIP
    
final public static  intACTION_UPDATE
    
final public static  intSTATUS_CANCELED
    
final public static  intSTATUS_CONTINUE
    
final public static  intSTATUS_ERROR
    
protected  GenericDelegatorlocalDelegator
     Local delegator.
protected  GenericDelegatormasterDelegator
     Master delegator.
final public static  Stringmodule
    

Constructor Summary
public  GenericReplicator()
     Constructor with no args.
public  GenericReplicator(GenericDelegator localDelegator_, GenericDelegator masterDelegator_)
     Constructor with delegators.

Method Summary
public static  booleangetIsRegistered(GenericDelegator delegator)
    
public  GenericDelegatorgetLocalDelegator()
     Gets the local delegator attribute.
public  GenericDelegatorgetMasterDelegator()
     Gets the master delegator attribute.
public static  StringgetNextSeqId(String seqName, GenericDelegator delegator)
     Gets the next guaranteed unique seq id from the sequence with the given sequence name. if the named sequence doesn't exist, it will be created.
public  GenericValuegetReplNodeGenericValue(String replNodeId)
     Gets the ReplNode record for the current machine from the master data base.
public static  StringgetReplNodeId(GenericDelegator localDelegator)
     Gets the node ID under which the current machine is registered for replication
author:
   John Nutting
Parameters:
  localDelegator - Generic delegator pointing to the local data base.
public  StringgetReplNodeId()
    
public  intmarkNodeReplicated(String replNodeId, String userPartyId)
     This method updates the node record in the master data base to indicate that a successful replication has been completed.
author:
   John Nutting
Parameters:
  masterDelegator - Delegator to connect to the master data base
Parameters:
  replNodeId - Replication Node ID
Parameters:
  userPartyId - The Party ID of the current user The status of the replication.
public  Stringregister(String replNodeName, String ownerId, boolean isActive, String userPartyId)
     Registers the local computer for replication.
public  voidsetLocalDelegator(GenericDelegator delegator)
     Sets the local delegator attribute.
public  voidsetMasterDelegator(GenericDelegator delegator)
     Sets the master delegator attribute.
public  StringvalidateMasterLogin(String enteredUserLoginId, String enteredPassword, UserInfo masterUserInfo)
     Looks in the master data base for the given login ID and password Requires that the masterDelegator argument passed to the constructor is valid. Alternatively, requires the setMasterDelegator method to have been called.
author:
   John Nutting Status.

Field Detail
ACTION_DELETE
final public static int ACTION_DELETE(Code)
Action - Delete



ACTION_ERROR
final public static int ACTION_ERROR(Code)
Action - Error



ACTION_INSERT
final public static int ACTION_INSERT(Code)
Action - Insert



ACTION_SKIP
final public static int ACTION_SKIP(Code)
Action - Skip



ACTION_UPDATE
final public static int ACTION_UPDATE(Code)
Action - Update



STATUS_CANCELED
final public static int STATUS_CANCELED(Code)
Status - Canceled



STATUS_CONTINUE
final public static int STATUS_CONTINUE(Code)
Status - Continue (success)



STATUS_ERROR
final public static int STATUS_ERROR(Code)
Status - Error



localDelegator
protected GenericDelegator localDelegator(Code)
Local delegator. This is used to connect to the local data base.



masterDelegator
protected GenericDelegator masterDelegator(Code)
Master delegator. This is used to connect to the master data base.



module
final public static String module(Code)
Debug switch




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



GenericReplicator
public GenericReplicator(GenericDelegator localDelegator_, GenericDelegator masterDelegator_)(Code)
Constructor with delegators.




Method Detail
getIsRegistered
public static boolean getIsRegistered(GenericDelegator delegator)(Code)
Determines whether the local computer is registered for replication
author:
   John Nutting True if local node is registered for replication, false otherwise



getLocalDelegator
public GenericDelegator getLocalDelegator()(Code)
Gets the local delegator attribute.
author:
   John Nutting
Parameters:
  delegator - Reference to the OFBIZ delegator being used to connect to the data base Reference to the local delegator



getMasterDelegator
public GenericDelegator getMasterDelegator()(Code)
Gets the master delegator attribute.
author:
   John Nutting
Parameters:
  delegator - Reference to the OFBIZ delegator being used to connect to the data base Reference to the master delegator



getNextSeqId
public static String getNextSeqId(String seqName, GenericDelegator delegator)(Code)
Gets the next guaranteed unique seq id from the sequence with the given sequence name. if the named sequence doesn't exist, it will be created. If the local computer is registered as a replicated node, its node ID will be prepended onto the sequence to ensure uniqueness across all nodes.
author:
   John Nutting
Parameters:
  seqName - The name of the sequence to get the next seq id from The next sequence id for the given sequence name, with the replication node IDprepended if it exists.



getReplNodeGenericValue
public GenericValue getReplNodeGenericValue(String replNodeId)(Code)
Gets the ReplNode record for the current machine from the master data base. Requires that the masterDelegator argument passed to the constructor is valid. Alternatively, requires the setMasterDelegator method to have been called.
author:
   John Nutting GenericValue holding the replication node record for the local computerretrieved from the master data base.



getReplNodeId
public static String getReplNodeId(GenericDelegator localDelegator)(Code)
Gets the node ID under which the current machine is registered for replication
author:
   John Nutting
Parameters:
  localDelegator - Generic delegator pointing to the local data base. Replication node ID of the local computer



getReplNodeId
public String getReplNodeId()(Code)
Gets the node ID under which the current machine is registered for replication
author:
   John Nutting Replication node ID of the local computer



markNodeReplicated
public int markNodeReplicated(String replNodeId, String userPartyId)(Code)
This method updates the node record in the master data base to indicate that a successful replication has been completed.
author:
   John Nutting
Parameters:
  masterDelegator - Delegator to connect to the master data base
Parameters:
  replNodeId - Replication Node ID
Parameters:
  userPartyId - The Party ID of the current user The status of the replication. Possible values: STATUS_CONTINUE, STATUS_ERROR,STATUS_CANCEL



register
public String register(String replNodeName, String ownerId, boolean isActive, String userPartyId)(Code)
Registers the local computer for replication. Assigns the next available node ID to this computer, saves it in the system parameters in the local data base, and creates a new record in the ReplNode table in the master data base. Requires that the localDelegator and masterDelegator arguments passed to the constructor are valid. Alternatively, requires the setLocalDelegator and setMasterDelegator methods to have been called.
author:
   John Nutting
Parameters:
  replNodeName - Name to be assigned to the new replication node
Parameters:
  ownerId - The Contact ID of the user who will own the new replication node
Parameters:
  isActive - Flag indicating whether the new replication node will participate in replication The new replication node ID assigned to this computer



setLocalDelegator
public void setLocalDelegator(GenericDelegator delegator)(Code)
Sets the local delegator attribute.
author:
   John Nutting
Parameters:
  delegator - Reference to the OFBIZ delegator being used to connect to the data base



setMasterDelegator
public void setMasterDelegator(GenericDelegator delegator)(Code)
Sets the master delegator attribute.
author:
   John Nutting
Parameters:
  delegator - Reference to the OFBIZ delegator being used to connect to the data base



validateMasterLogin
public String validateMasterLogin(String enteredUserLoginId, String enteredPassword, UserInfo masterUserInfo)(Code)
Looks in the master data base for the given login ID and password Requires that the masterDelegator argument passed to the constructor is valid. Alternatively, requires the setMasterDelegator method to have been called.
author:
   John Nutting Status. Possible values: STATUS_CONTINUE (Login ID and password are valid),STATUS_CANCEL (ID or password is not correct), or STATUS_ERROR.



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.