Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
erilong committed Dec 21, 2018
1 parent d416665 commit 4a350c3
Showing 1 changed file with 5 additions and 6 deletions.
Expand Up @@ -26,7 +26,6 @@
import org.jumpmind.db.model.Table;
import org.jumpmind.db.sql.ISqlTransaction;
import org.jumpmind.symmetric.io.data.writer.DefaultDatabaseWriter;
import org.jumpmind.symmetric.io.data.writer.DynamicDefaultDatabaseWriter;
import org.jumpmind.symmetric.io.data.writer.NestedDataWriter;
import org.jumpmind.util.Context;

Expand All @@ -48,11 +47,11 @@ public class DataContext extends Context {

protected Table lastParsedTable = null;

public DataContext(Batch batch) {
this.batch = batch;
public DataContext() {
}

public DataContext() {
public DataContext(Batch batch) {
this.batch = batch;
}

public DataContext(IDataReader reader) {
Expand Down Expand Up @@ -135,12 +134,12 @@ public ISqlTransaction findTransaction() {
public ISqlTransaction findSymmetricTransaction(String tablePrefix) {
ISqlTransaction transaction = null;
if (writer instanceof NestedDataWriter) {
DefaultDatabaseWriter dbWriter = ((NestedDataWriter)writer).getNestedWriterOfType(DefaultDatabaseWriter.class);
DefaultDatabaseWriter dbWriter = ((NestedDataWriter) writer).getNestedWriterOfType(DefaultDatabaseWriter.class);
if (dbWriter != null) {
transaction = dbWriter.getTransaction(tablePrefix);
}
} else if (writer instanceof DefaultDatabaseWriter) {
transaction = ((DefaultDatabaseWriter) writer).getTransaction(tablePrefix);
transaction = ((DefaultDatabaseWriter) writer).getTransaction(tablePrefix);
}
return transaction;
}
Expand Down

0 comments on commit 4a350c3

Please sign in to comment.