src.main.java.com.vincomobile.fw.basic.JSONColumn Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vincofw-basic Show documentation
Show all versions of vincofw-basic Show documentation
Vincomobile framework (Basic components)
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