Minor code formating.

This commit is contained in:
trifonnt 2009-10-20 11:04:43 +00:00
parent f4413ff0d1
commit d2740a76b7
1 changed files with 6 additions and 6 deletions

View File

@ -178,20 +178,20 @@ public class ImportHelper {
boolean resultSave=false;
if(ReplicationEvent == ModelValidator.TYPE_BEFORE_DELETE ||
ReplicationEvent == ModelValidator.TYPE_BEFORE_DELETE_REPLICATION ||
ReplicationEvent == ModelValidator.TYPE_DELETE)
resultSave=po.delete(true);
else
ReplicationEvent == ModelValidator.TYPE_DELETE)
{
resultSave=po.delete(true);
} else {
//TODO: Create a Replication Type "BROADCAST" now we are using MERGE
if(ReplicationType.equals(X_AD_ReplicationTable.REPLICATIONTYPE_Merge))
{
resultSave = po.saveReplica(true);
MReplicationStrategy rplStrategy = new MReplicationStrategy(client.getCtx(), client.getAD_ReplicationStrategy_ID(), null);
ExportHelper expHelper = new ExportHelper(client, rplStrategy);
expHelper.exportRecord( po, MReplicationStrategy.REPLICATION_TABLE,X_AD_ReplicationTable.REPLICATIONTYPE_Reference,ModelValidator.TYPE_AFTER_CHANGE);
}
else
expHelper.exportRecord( po, MReplicationStrategy.REPLICATION_TABLE, X_AD_ReplicationTable.REPLICATIONTYPE_Reference, ModelValidator.TYPE_AFTER_CHANGE);
} else {
resultSave = po.saveReplica(true);
}
}
result.append("ResultSave=").append(resultSave).append("; ");