liquibase.ext.mssql.statement.InsertSetStatementMSSQL Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of liquibase-mssql Show documentation
Show all versions of liquibase-mssql Show documentation
Liquibase extensions for MS SQL Server.
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;
}
}