Class CmsSqlConsoleResults

java.lang.Object
org.opencms.ui.apps.dbmanager.sqlconsole.CmsSqlConsoleResults

public class CmsSqlConsoleResults extends Object
Class for storing query results.

  • Constructor Details

  • Method Details

    • getColumns

      public List<String> getColumns()
      Gets the column names.

      Returns:
      the list of column names
    • getColumnType

      public 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 String getCsv()
      Converts the results to CSV data.
      Returns:
      the CSV data
    • getData

      public List<List<Object>> getData()
      Gets the row data
      Returns:
      the row data