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

com.axibase.tsd.driver.jdbc.content.json.Column Maven / Gradle / Ivy

There is a newer version: 1.4.11
Show newest version
/*
 * Copyright 2016 Axibase Corporation or its affiliates. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License").
 * You may not use this file except in compliance with the License.
 * A copy of the License is located at
 *
 * https://www.axibase.com/atsd/axibase-apache-2.0.pdf
 *
 * or in the "license" file accompanying this file. This file is distributed
 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
 * express or implied. See the License for the specific language governing
 * permissions and limitations under the License.
 */
package com.axibase.tsd.driver.jdbc.content.json;

import java.util.HashMap;
import java.util.Map;

import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;

@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
    "columnIndex",
    "name",
    "titles",
    "datatype",
    "table",
    "propertyUrl",
    "dc:description"
})
public class Column {

    @JsonProperty("columnIndex")
    private int columnIndex;
    @JsonProperty("name")
    private String name;
    @JsonProperty("titles")
    private String titles;
    @JsonProperty("datatype")
    private String datatype;
    @JsonProperty("table")
    private String table;
    @JsonProperty("propertyUrl")
    private String propertyUrl;
    @JsonProperty("dc:description")
    private String dcDescription;
    @JsonIgnore
    private final Map additionalProperties = new HashMap();

    /**
     * 
     * @return
     *     The columnIndex
     */
    @JsonProperty("columnIndex")
    public int getColumnIndex() {
        return columnIndex;
    }

    /**
     * 
     * @param columnIndex
     *     The columnIndex
     */
    @JsonProperty("columnIndex")
    public void setColumnIndex(int columnIndex) {
        this.columnIndex = columnIndex;
    }

    public Column withColumnIndex(int columnIndex) {
        this.columnIndex = columnIndex;
        return this;
    }

    /**
     * 
     * @return
     *     The name
     */
    @JsonProperty("name")
    public String getName() {
        return name;
    }

    /**
     * 
     * @param name
     *     The name
     */
    @JsonProperty("name")
    public void setName(String name) {
        this.name = name;
    }

    public Column withName(String name) {
        this.name = name;
        return this;
    }

    /**
     * 
     * @return
     *     The titles
     */
    @JsonProperty("titles")
    public String getTitles() {
        return titles;
    }

    /**
     * 
     * @param titles
     *     The titles
     */
    @JsonProperty("titles")
    public void setTitles(String titles) {
        this.titles = titles;
    }

    public Column withTitles(String titles) {
        this.titles = titles;
        return this;
    }

    /**
     * 
     * @return
     *     The datatype
     */
    @JsonProperty("datatype")
    public String getDatatype() {
        return datatype;
    }

    /**
     * 
     * @param datatype
     *     The datatype
     */
    @JsonProperty("datatype")
    public void setDatatype(String datatype) {
        this.datatype = datatype;
    }

    public Column withDatatype(String datatype) {
        this.datatype = datatype;
        return this;
    }

    /**
     * 
     * @return
     *     The table
     */
    @JsonProperty("table")
    public String getTable() {
        return table;
    }

    /**
     * 
     * @param table
     *     The table
     */
    @JsonProperty("table")
    public void setTable(String table) {
        this.table = table;
    }

    public Column withTable(String table) {
        this.table = table;
        return this;
    }

    /**
     * 
     * @return
     *     The propertyUrl
     */
    @JsonProperty("propertyUrl")
    public String getPropertyUrl() {
        return propertyUrl;
    }

    /**
     * 
     * @param propertyUrl
     *     The propertyUrl
     */
    @JsonProperty("propertyUrl")
    public void setPropertyUrl(String propertyUrl) {
        this.propertyUrl = propertyUrl;
    }

    public Column withPropertyUrl(String propertyUrl) {
        this.propertyUrl = propertyUrl;
        return this;
    }

    /**
     * 
     * @return
     *     The dcDescription
     */
    @JsonProperty("dc:description")
    public String getDcDescription() {
        return dcDescription;
    }

    /**
     * 
     * @param dcDescription
     *     The dc:description
     */
    @JsonProperty("dc:description")
    public void setDcDescription(String dcDescription) {
        this.dcDescription = dcDescription;
    }

    public Column withDcDescription(String dcDescription) {
        this.dcDescription = dcDescription;
        return this;
    }

    @JsonAnyGetter
    public Map getAdditionalProperties() {
        return this.additionalProperties;
    }

    @JsonAnySetter
    public void setAdditionalProperty(String name, Object value) {
        this.additionalProperties.put(name, value);
    }

    public Column withAdditionalProperty(String name, Object value) {
        this.additionalProperties.put(name, value);
        return this;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy