JavaDoc


OperationDelete

org.dbreplicator.replication.synchronize
Class OperationDelete

java.lang.Object
  extended by org.dbreplicator.replication.synchronize.AbstractSynchronize
      extended by org.dbreplicator.replication.synchronize.OperationDelete

public class OperationDelete
extends AbstractSynchronize

This is the main class which handles the synchronization operations on main table when merge handler finds delete operation from the XML file.


Field Summary
 
Fields inherited from class org.dbreplicator.replication.synchronize.AbstractSynchronize
deleteCount, insertCount, updateCount
 
Constructor Summary
OperationDelete(RepTable repTable0, java.sql.Connection connection0, java.util.TreeMap columnObjectTreeMap0, java.lang.Object conisderedId0, java.lang.String remoteServerName0, AbstractDataBaseHandler dbHandler0, java.io.BufferedWriter bw0, java.lang.String replicationType0, java.lang.String transactionLogType0, MetaDataInfo mdi0, boolean isFirstPass0, boolean isCurrentTableCyclic0)
          OperationDelete handles the case related to delete operation i.e.
 
Method Summary
 void closeAllStatments()
           
 void execute(XMLElement currentElement)
          Searches the record for deletion corresponding to the elements Pk_key and deletes the record in the corresponding table.
 
Methods inherited from class org.dbreplicator.replication.synchronize.AbstractSynchronize
checkAutocommit, setAutocomitTrueAndCommitRecord, writeDateInTransactionLogFile, writeOperationInTransactionLogFile, writeUnsuccessfullOperationInTransaction
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OperationDelete

public OperationDelete(RepTable repTable0,
                       java.sql.Connection connection0,
                       java.util.TreeMap columnObjectTreeMap0,
                       java.lang.Object conisderedId0,
                       java.lang.String remoteServerName0,
                       AbstractDataBaseHandler dbHandler0,
                       java.io.BufferedWriter bw0,
                       java.lang.String replicationType0,
                       java.lang.String transactionLogType0,
                       MetaDataInfo mdi0,
                       boolean isFirstPass0,
                       boolean isCurrentTableCyclic0)
                throws java.sql.SQLException
OperationDelete handles the case related to delete operation i.e. when a record with delete operation is found in XML File

Parameters:
repTable0 - RepTable
connection0 - Connection
columnObjectTreeMap0 - TreeMap
conisderedId0 - Object
remoteServerName0 - String
dbHandler0 - AbstractDatabaseHandler
bw0 - BufferedWriter
replicationType0 - String
transactionLogType0 - String
mdi0 - MetaDataInfo
isFirstPass0 - boolean
isCurrentTableCyclic0 - boolean
Throws:
java.sql.SQLException
Method Detail

execute

public void execute(XMLElement currentElement)
             throws RepException,
                    java.sql.SQLException
Searches the record for deletion corresponding to the elements Pk_key and deletes the record in the corresponding table.

Parameters:
currentElement -
Throws:
RepException
java.sql.SQLException

closeAllStatments

public void closeAllStatments()



Powered by Drupal - Theme by Danger4k