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

src.main.java.com.vincomobile.fw.basic.JSONColumn Maven / Gradle / Ivy

There is a newer version: 5.1.0-RELEASE
Show newest version
package com.vincomobile.fw.basic;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by yokiro on 09/11/2015.
 */
public class JSONColumn{

    private String tableName;
    private List columns;

    public JSONColumn(){
        this.columns = new ArrayList<>();
    }

    public JSONColumn(String tableName){
        this.tableName = tableName;
        this.columns = new ArrayList<>();
    }

    public String getTableName() {
        return tableName;
    }

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

    public List getColumns() {
        return columns;
    }

    public void setColumns(List columns) {
        this.columns = columns;
    }

    public void addColumnStructure(JSONColumnStructure columnStructure){
        this.columns.add(columnStructure);
    }

    public JSONColumnStructure getColumn(String name) {
        for (JSONColumnStructure column : columns) {
            if (column.getName().equals(name));
            return column;
        }
        return null;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy