liquibase.ext.mssql.statement.InsertStatementMSSQL 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 java.util.Map;
import liquibase.statement.core.InsertStatement;
public class InsertStatementMSSQL extends InsertStatement {
private Boolean identityInsertEnabled;
public InsertStatementMSSQL(InsertStatement statement, Boolean identityInsertEnable) {
super(statement.getCatalogName(), statement.getSchemaName(), statement.getTableName());
Map values = statement.getColumnValues();
for (String key : values.keySet()) {
addColumnValue(key, values.get(key));
}
this.identityInsertEnabled = identityInsertEnable;
}
public Boolean getIdentityInsertEnabled() {
return identityInsertEnabled;
}
public void setIdentityInsertEnabled(Boolean identityInsertEnabled) {
this.identityInsertEnabled = identityInsertEnabled;
}
}