JavaDoc


SyncXMLCreator

org.dbreplicator.replication.xml
Class SyncXMLCreator

java.lang.Object
  extended by org.dbreplicator.replication.xml.SyncXMLCreator

public class SyncXMLCreator
extends java.lang.Object

This class was implemented for handling all the issues that will occure at the time of creating XML file for synchronization purpose.


Field Summary
 java.net.ServerSocket serverSocket
           
 
Constructor Summary
SyncXMLCreator(java.lang.String pub_sub_name0, ConnectionPool connectionPool0, AbstractDataBaseHandler dbDataTypeHandler0)
          Creates an XML file for synchronizing data between server and client i.e.
 
Method Summary
 java.lang.Object[] createXMLFile(java.lang.String xmlFileURL, java.lang.String zipFileURL, java.lang.String xmlFileName, java.lang.String remote_Pub_Sub_Name, java.util.ArrayList pubRepTables, java.lang.String clientServerName, int noOfTables, boolean DeleteXML, java.lang.String local_pub_subName, boolean isSchemaSupported, _FileUpload fileUpload, java.lang.String localMachineAddress, java.lang.String remoteMachineAddress)
          if operation is I , insert the record if operation is U check for its last record and also make extra tag for primary key of the initial record and also make attribute for columns which are updated.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serverSocket

public java.net.ServerSocket serverSocket
Constructor Detail

SyncXMLCreator

public SyncXMLCreator(java.lang.String pub_sub_name0,
                      ConnectionPool connectionPool0,
                      AbstractDataBaseHandler dbDataTypeHandler0)
Creates an XML file for synchronizing data between server and client i.e. Subscriber and publisher.

Parameters:
pub_sub_name0 -
connectionPool0 -
dbDataTypeHandler0 -
Method Detail

createXMLFile

public java.lang.Object[] createXMLFile(java.lang.String xmlFileURL,
                                        java.lang.String zipFileURL,
                                        java.lang.String xmlFileName,
                                        java.lang.String remote_Pub_Sub_Name,
                                        java.util.ArrayList pubRepTables,
                                        java.lang.String clientServerName,
                                        int noOfTables,
                                        boolean DeleteXML,
                                        java.lang.String local_pub_subName,
                                        boolean isSchemaSupported,
                                        _FileUpload fileUpload,
                                        java.lang.String localMachineAddress,
                                        java.lang.String remoteMachineAddress)
                                 throws RepException
if operation is I , insert the record if operation is U check for its last record and also make extra tag for primary key of the initial record and also make attribute for columns which are updated. if operation id D then mark it for deletion. case1. ===== If a user isnert a new record then to delete it. It does not considered and we do not write it in XML file. If a new record is inserted and after that it is updated in that case it considered as a new inserted record not a updated record

Throws:
RepException



Powered by Drupal - Theme by Danger4k