liquibase.statement.core.InsertStatement Maven / Gradle / Ivy
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