|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.dbreplicator.replication.synchronize
Class OperationDelete
java.lang.Objectorg.dbreplicator.replication.synchronize.AbstractSynchronize
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- RepTableconnection0- ConnectioncolumnObjectTreeMap0- TreeMapconisderedId0- ObjectremoteServerName0- StringdbHandler0- AbstractDatabaseHandlerbw0- BufferedWriterreplicationType0- StringtransactionLogType0- Stringmdi0- MetaDataInfoisFirstPass0- booleanisCurrentTableCyclic0- 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:
RepExceptionjava.sql.SQLException
closeAllStatments
public void closeAllStatments()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||


