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

com.taosdata.jdbc.bean.TSDBPreparedParam Maven / Gradle / Ivy

There is a newer version: 3.4.0
Show newest version
package com.taosdata.jdbc.bean;

import java.util.List;

/**
 * tdengine batch insert or import param object
 */
public class TSDBPreparedParam {

    /**
     * tableName, if sTable Name is not null, and this is sub table name.
     */
    private String tableName;

    /**
     * sub middle param list
     */
    private List middleParamList;

    /**
     * value list
     */
    private List valueList;

    public TSDBPreparedParam(String tableName) {
        this.tableName = tableName;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public List getMiddleParamList() {
        return middleParamList;
    }

    public void setMiddleParamList(List middleParamList) {
        this.middleParamList = middleParamList;
    }

    public void setMiddleParam(int parameterIndex, Object x) {
        this.middleParamList.set(parameterIndex, x);
    }

    public List getValueList() {
        return valueList;
    }

    public void setValueList(List valueList) {
        this.valueList = valueList;
    }


    public void setValueParam(int parameterIndex, Object x) {
        this.valueList.set(parameterIndex, x);
    }

}