示例#1
0
        public virtual TablePage GetTablePage(ITablePageQuery tablePageQuery, int firstResult, int maxResults)
        {
            TablePage          tablePage          = new TablePage();
            TablePageQueryImpl tablePageQueryImpl = tablePageQuery as TablePageQueryImpl;

            IList <Dictionary <string, object> > tableData = DbSqlSession.SelectList <PropertyEntityImpl, Dictionary <string, object> >("selectTableData", null, firstResult, maxResults);

            tablePage.TableName   = tablePageQueryImpl.TableName;
            tablePage.Total       = GetTableCount(tablePageQueryImpl.TableName);
            tablePage.Rows        = (IList <IDictionary <string, object> >)tableData;
            tablePage.FirstResult = firstResult;

            return(tablePage);
        }
示例#2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @SuppressWarnings("unchecked") public org.camunda.bpm.engine.management.TablePage getTablePage(org.camunda.bpm.engine.impl.TablePageQueryImpl tablePageQuery, int firstResult, int maxResults)
        public virtual TablePage getTablePage(TablePageQueryImpl tablePageQuery, int firstResult, int maxResults)
        {
            TablePage tablePage = new TablePage();

//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @SuppressWarnings("rawtypes") List tableData = getDbSqlSession().getSqlSession().selectList("selectTableData", tablePageQuery, new org.apache.ibatis.session.RowBounds(firstResult, maxResults));
            System.Collections.IList tableData = DbSqlSession.SqlSession.selectList("selectTableData", tablePageQuery, new RowBounds(firstResult, maxResults));

            tablePage.TableName   = tablePageQuery.TableName;
            tablePage.Total       = getTableCount(tablePageQuery.TableName);
            tablePage.Rows        = tableData;
            tablePage.FirstResult = firstResult;

            return(tablePage);
        }