Class CmsSqlConsoleResults

    • 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 names
        data - 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