Class CachableTableModel

    • Constructor Detail

      • CachableTableModel

        public CachableTableModel​(TableModel model)
    • Method Detail

      • initFromMetaModel

        protected void initFromMetaModel​(MetaTableModel metaTableModel)
      • initData

        protected void initData​(TableModel model)
      • initDefaultMetaData

        protected void initDefaultMetaData​(TableModel model)
      • getCellDataAttributes

        public DataAttributes getCellDataAttributes​(int row,
                                                    int column)
        Description copied from interface: MetaTableModel
        Returns the meta-attribute as Java-Object. The object type that is expected by the caller is defined in the TableMetaData property set. It is the responsibility of the implementor to map the native meta-data model into a model suitable for reporting.

        Be aware that cell-level attributes do not make it into the designtime dataschema, as this dataschema only looks at the structural metadata available and does not contain any data references.

        Specified by:
        getCellDataAttributes in interface MetaTableModel
        row - the row of the cell for which the meta-data is queried.
        column - the index of the column for which the meta-data is queried.
        the meta-data object.
      • isCellDataAttributesSupported

        public boolean isCellDataAttributesSupported()
        Description copied from interface: MetaTableModel
        Checks, whether cell-data attributes are supported by this tablemodel implementation.
        Specified by:
        isCellDataAttributesSupported in interface MetaTableModel
        true, if the model supports cell-level attributes, false otherwise.
      • getColumnAttributes

        public DataAttributes getColumnAttributes​(int column)
        Description copied from interface: MetaTableModel
        Returns the column-level attributes for the given column.
        Specified by:
        getColumnAttributes in interface MetaTableModel
        column - the column.
        data-attributes, never null.
      • getTableAttributes

        public DataAttributes getTableAttributes()
        Description copied from interface: MetaTableModel
        Returns table-wide attributes. This usually contain hints about the data-source used to query the data as well as hints on the sort-order of the data.
        Specified by:
        getTableAttributes in interface MetaTableModel
        the table-attributes, never null.
      • isSafeToCache

        public static boolean isSafeToCache​(TableModel model)