Exemple #1
0
        public ProjectListDataSource(ProjectQueryExecuter queryExecuter, bool useFieldDescription, int pageSize) : base(queryExecuter, useFieldDescription, false)
        {
            this.pageSize = pageSize;

            pageCount = 0;
            fetchPage();
        }
Exemple #2
0
        /// <summary>
        /// Creates a Hibernate data source.
        /// </summary>
        /// <param name="queryExecuter"> the query executer </param>
        /// <param name="useFieldDescription"> whether to use field descriptions for fields to results mapping </param>
        /// <param name="useIndexOnSingleReturn"> whether to use indexed addressing even when the query has only one return column </param>
        protected internal ProjectDataSource(ProjectQueryExecuter queryExecuter, bool useFieldDescription, bool useIndexOnSingleReturn)
        {
            this.useFieldDescription = useFieldDescription;

            this.queryExecuter = queryExecuter;

            fieldReaders = assignReaders(useIndexOnSingleReturn);
        }
Exemple #3
0
 public ProjectScrollDataSource(ProjectQueryExecuter queryExecuter, bool useFieldDescription) : base(queryExecuter, useFieldDescription, true)
 {
     scrollableResults = queryExecuter.scroll();
 }
Exemple #4
0
 public ProjectIterateDataSource(ProjectQueryExecuter queryExecuter, bool useFieldDescription) : base(queryExecuter, useFieldDescription, false)
 {
     moveFirst();
 }