Class TableUtil


  • @VelocityCallable("singleton")
    public final class TableUtil
    extends de.uplanet.lucy.server.auxiliaries.util.ValueUtil
    • Constructor Detail

      • TableUtil

        public TableUtil()
    • Method Detail

      • getTable

        public ITableData getTable​(IRenderingContext p_renderingCtx,
                                   de.uplanet.lucy.server.engine.http.IWebProcessingContext p_ctx,
                                   String p_strGuid)
                            throws Exception
        Parameters:
        p_renderingCtx - The rendering context
        p_ctx - The processing context
        p_strGuid - The datarange GUID
        Returns:
        The table data
        Throws:
        Exception
      • getTable

        public ITableData getTable​(IRenderingContext p_renderingCtx,
                                   de.uplanet.lucy.server.engine.http.IWebProcessingContext p_ctx,
                                   String p_strGuid,
                                   int p_iPage,
                                   int p_iPageSize)
                            throws Exception
        Parameters:
        p_renderingCtx - The rendering context
        p_ctx - The processing context
        p_strGuid - The data range GUID
        p_iPage - The page
        p_iPageSize - The page size (-1 all records will be returned and the parameter p_iPage will be ignored, -2: page and pageSize will be ignored and the table default or the request state will be used).
        Returns:
        The table data
        Throws:
        Exception
      • getDynamicTable

        public ITableData getDynamicTable​(IRenderingContext p_renderingCtx,
                                          de.uplanet.lucy.server.engine.http.IWebProcessingContext p_ctx,
                                          String p_strDataGroupGuid,
                                          Object... p_columns)
                                   throws Exception
        Parameters:
        p_renderingCtx - The rendering context
        p_ctx - The processing context
        p_strDataGroupGuid - The data group GUID.
        Returns:
        The table data
        Throws:
        Exception
      • getDynamicTable

        public ITableData getDynamicTable​(IRenderingContext p_renderingCtx,
                                          de.uplanet.lucy.server.engine.http.IWebProcessingContext p_ctx,
                                          String p_strDataGroupGuid,
                                          int p_iPage,
                                          int p_iPageSize,
                                          Object... p_columns)
                                   throws Exception
        Parameters:
        p_renderingCtx - The rendering context
        p_ctx - The processing context
        p_strDataGroupGuid - The data group GUID.
        p_iPage - The page
        p_iPageSize - The page size (-1 all records will be returned and the parameter p_iPage will be ignored)
        Returns:
        The table data
        Throws:
        Exception
      • getGenericTable

        public ITableData getGenericTable​(IRenderingContext p_renderingCtx,
                                          de.uplanet.lucy.server.engine.http.IWebProcessingContext p_ctx,
                                          String p_strGuid)
                                   throws Exception
        Parameters:
        p_renderingCtx - The rendering context
        p_ctx - The processing context
        p_strGuid - The data range GUID
        Returns:
        The table data
        Throws:
        Exception
      • getGenericTable

        public ITableData getGenericTable​(IRenderingContext p_renderingCtx,
                                          de.uplanet.lucy.server.engine.http.IWebProcessingContext p_ctx,
                                          String p_strGuid,
                                          int p_iPage,
                                          int p_iPageSize)
                                   throws Exception
        Parameters:
        p_renderingCtx - The rendering context
        p_ctx - The processing context
        p_strGuid - The data range GUID.
        p_iPage - The page
        p_iPageSize - The page size (-1 all records will be returned and the parameter p_iPage will be ignored, -2: page and pageSize will be ignored and the table default or the request state will be used).
        Returns:
        The table data
        Throws:
        Exception
      • getGenericTable

        public ITableData getGenericTable​(IRenderingContext p_renderingCtx,
                                          de.uplanet.lucy.server.engine.http.IWebProcessingContext p_ctx,
                                          String p_strGuid,
                                          int p_iPage,
                                          int p_iPageSize,
                                          boolean p_bExport)
                                   throws Exception
        Parameters:
        p_renderingCtx - The rendering context
        p_ctx - The processing context
        p_strGuid - The data range GUID.
        p_iPage - The page
        p_iPageSize - The page size (-1 all records will be returned and the parameter p_iPage will be ignored, -2: page and pageSize will be ignored and the table default or the request state will be used).
        Returns:
        The table data
        Throws:
        Exception
      • getDefaultSortByInfo

        public List<de.uplanet.lucy.server.businesslogic.util.SortByInfo> getDefaultSortByInfo​(de.uplanet.lucy.server.rtcache.DataRangeControlInfo p_drInfo)
        Parameters:
        p_drInfo - The datarange info object
        Returns:
        A list of sortByInfo objects (not null, could be empty).
      • sortColumn

        public de.uplanet.lucy.server.auxiliaries.util.ISortColumn sortColumn​(String p_strSortFieldGuid,
                                                                              boolean p_bAsc)