org.mvnsearch.boot.xtermjs.commands.sql.QueryResult Maven / Gradle / Ivy
package org.mvnsearch.boot.xtermjs.commands.sql;
import org.apache.commons.lang3.StringUtils;
import java.util.ArrayList;
import java.util.List;
/**
* SQL query result
*
* @author linux_china
*/
public class QueryResult {
private String SQL;
private long elapsed;
private List columns = new ArrayList();
private List columnTypes = new ArrayList();
private List> rows = new ArrayList>();
public String getSQL() {
return SQL;
}
public void setSQL(String SQL) {
this.SQL = SQL;
}
public long getElapsed() {
return elapsed;
}
public void setElapsed(long elapsed) {
this.elapsed = elapsed;
}
public List getColumns() {
return columns;
}
public void setColumns(List columns) {
this.columns = columns;
}
public void addColumn(String name) {
this.columns.add(name);
}
public List getColumnTypes() {
return columnTypes;
}
public void setColumnTypes(List columnTypes) {
this.columnTypes = columnTypes;
}
public void addColumnType(String columnType) {
this.columnTypes.add(columnType);
}
public List> getRows() {
return rows;
}
public void setRows(List> rows) {
this.rows = rows;
}
public void addRow(List