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

liquibase.statement.core.InsertStatement Maven / Gradle / Ivy

There is a newer version: 4.30.0
Show newest version
package liquibase.statement.core;

import liquibase.statement.SqlStatement;

import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.SortedMap;
import java.util.TreeMap;

public class InsertStatement implements SqlStatement {
    private String schemaName;
    private String tableName;
    private SortedMap columnValues = new TreeMap();

    public InsertStatement(String schemaName, String tableName) {
        this.schemaName = schemaName;
        this.tableName = tableName;
    }

    public String getSchemaName() {
        return schemaName;
    }

    public String getTableName() {
        return tableName;
    }

    public InsertStatement addColumnValue(String columnName, Object newValue) {
        columnValues.put(columnName, newValue);

        return this;
    }

    public Object getColumnValue(String columnName) {
        return columnValues.get(columnName);
    }

    public Map getColumnValues() {
        return columnValues;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy