Class CmsSqlConsoleResults
- java.lang.Object
-
- org.opencms.ui.apps.dbmanager.sqlconsole.CmsSqlConsoleResults
-
public class CmsSqlConsoleResults extends java.lang.Object
Class for storing query results.
-
-
Constructor Summary
Constructors Constructor Description CmsSqlConsoleResults(java.util.List<java.lang.String> columns, java.util.List<java.util.List<java.lang.Object>> data)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>
getColumns()
Gets the column names.java.lang.Class<?>
getColumnType(int c)
Gets the type to use for the Vaadin table column corresponding to the c-th column in this result.java.lang.String
getCsv()
Converts the results to CSV data.java.util.List<java.util.List<java.lang.Object>>
getData()
Gets the row data
-
-
-
Constructor Detail
-
CmsSqlConsoleResults
public CmsSqlConsoleResults(java.util.List<java.lang.String> columns, java.util.List<java.util.List<java.lang.Object>> data)
Creates a new instance.- Parameters:
columns
- the column namesdata
- the row data
-
-
Method Detail
-
getColumns
public java.util.List<java.lang.String> getColumns()
Gets the column names.- Returns:
- the list of column names
-
getColumnType
public java.lang.Class<?> getColumnType(int c)
Gets the type to use for the Vaadin table column corresponding to the c-th column in this result.- Parameters:
c
- the column index- Returns:
- the class to use for the c-th Vaadin table column
-
getCsv
public java.lang.String getCsv()
Converts the results to CSV data.- Returns:
- the CSV data
-
getData
public java.util.List<java.util.List<java.lang.Object>> getData()
Gets the row data- Returns:
- the row data
-
-