Ignore:
Timestamp:
09/20/10 09:15:44 (14 years ago)
Author:
gaba
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • MDService2/trunk/MDService2/src/eu/clarin/cmdi/mdservice/model/Query.java

    r704 r706  
    2929        public static String COLLECTIONS = "collections";
    3030        public static String COLUMNS = "columns";
     31        public static String startRecord = null;
     32        public static String maximumRecords = null;
    3133        public static String MODEL = "model";
    3234        public static String RECORDSET = "recordset";
     
    161163        }
    162164
     165        public String getStartRecord() {
     166                return startRecord;
     167        }
     168       
     169        public void setStartRecord(String startRecord) {
     170                if (startRecord!=null) {
     171                        this.startRecord = startRecord;
     172                }
     173        }
     174       
     175        public String getMaximumRecords() {
     176                return maximumRecords;
     177        }
     178       
     179        public void setMaximumRecords(String maximumRecords) {
     180                if (maximumRecords!=null) {
     181                        this.maximumRecords = maximumRecords;
     182                }
     183        }
    163184        public void setMaxdepth(int maxdepth) {
    164185                if (maxdepth > 0) {
     
    249270                } else {
    250271                        targetRequest = toXPath() + "&collection=" + getCollection();
     272                        if ((startRecord != null) && (maximumRecords != null)) {
     273                                targetRequest = targetRequest +  "&startRecord=" + getStartRecord() + "&iend=" + getMaximumRecords();
     274                        }
    251275                }
    252276               
Note: See TracChangeset for help on using the changeset viewer.