package com.ctrip.platform.dal.dao.datasource.log;

import com.ctrip.platform.dal.dao.datasource.ValidationResult;

import java.util.Set;

/**
 * @author c7ch23en
 */
public class NullSqlContext implements SqlContext {

    @Override
    public void populateDbName(String dbName) {}

    @Override
    public void populateDbZone(String dbZone) {}

    @Override
    public void populateCaller() {}

    @Override
    public void populateCaller(String callerClass, String callerMethod) {}

    @Override
    public void populateOperationType(OperationType operation) {}

    @Override
    public void populateTables(Set<String> tables) {}

    @Override
    public void startExecution() {}

    @Override
    public void populateValidationResult(ValidationResult result) {}

    @Override
    public void endExecution() {}

    @Override
    public void endExecution(Throwable errorIfAny) {}

    @Override
    public SqlContext fork() {
        return this;
    }

    @Override
    public void populateReadStrategy(String readStrategy) {

    }

    @Override
    public void populateQueryRows(int rows) {

    }

    @Override
    public void populateDatabase(String database) {

    }

    @Override
    public void populateSql(String sql) {

    }

    @Override
    public void populateSqlTransaction(long millionSeconds) {

    }
}

@@ -45,16 +45,71 @@
 e.log;%0A%0A
+import com.ctrip.platform.dal.dao.StatementParameters;%0A
 import c
@@ -1374,20 +1374,111 @@
 Seconds) %7B%0A%0A
+    %7D%0A%0A    @Override%0A    public void populateParameters(StatementParameters parameters) %7B%0A%0A
     %7D%0A%7D%0A

implement null method