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

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

There is a newer version: 1.6.4
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy