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

org.neogroup.warp.data.query.InsertQuery Maven / Gradle / Ivy

There is a newer version: 1.4.3
Show newest version

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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy