org.neogroup.warp.data.query.InsertQuery Maven / Gradle / Ivy
package org.neogroup.warp.data.query;
import org.neogroup.warp.data.query.traits.HasFields;
import org.neogroup.warp.data.query.traits.HasTable;
import java.util.HashMap;
import java.util.Map;
public class InsertQuery extends Query implements
HasTable,
HasFields {
private String tableName;
private Map fields;
public InsertQuery() {
this.tableName = null;
this.fields = new HashMap<>();
}
@Override
public String getTableName() {
return tableName;
}
@Override
public InsertQuery setTableName(String tableName) {
this.tableName = tableName;
return this;
}
@Override
public Map getFields() {
return fields;
}
@Override
public InsertQuery setFields(Map fields) {
this.fields = fields;
return this;
}
}