All Downloads are FREE. Search and download functionalities are using the official Maven repository.

liquibase.ext.mssql.statement.InsertSetStatementMSSQL Maven / Gradle / Ivy

There is a newer version: 1.6.4
Show newest version
package liquibase.ext.mssql.statement;

import liquibase.statement.core.InsertSetStatement;
import liquibase.statement.core.InsertStatement;

public class InsertSetStatementMSSQL extends InsertSetStatement {

    private Boolean identityInsertEnabled;

    public InsertSetStatementMSSQL(InsertSetStatement statement, Boolean identityInsertEnable) {
        super(statement.getCatalogName(), statement.getSchemaName(), statement.getTableName());
        for (InsertStatement insertStatement : statement.getStatements()) {
            addInsertStatement(insertStatement);
        }
        this.identityInsertEnabled = identityInsertEnable;
    }

    public InsertSetStatementMSSQL(InsertSetStatement statement, Boolean identityInsertEnable, int batchSize) {
        super(statement.getCatalogName(), statement.getSchemaName(), statement.getTableName(), batchSize);
        this.identityInsertEnabled = identityInsertEnable;
    }

    public Boolean getIdentityInsertEnabled() {
        return identityInsertEnabled;
    }

    public void setIdentityInsertEnabled(Boolean identityInsertEnabled) {
        this.identityInsertEnabled = identityInsertEnabled;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy