View Javadoc

1   /*
2    * DefaultQuery.java
3    *
4    * Created on 20 Декабрь 2005 г., 11:57
5    *
6    * To change this template, choose Tools | Options and locate the template under
7    * the Source Creation and Management node. Right-click the template and choose
8    * Open. You can then make changes to the template in the Source Editor.
9    */
10  
11  package org.weda.store.impl;
12  
13  import org.weda.store.Query;
14  
15  /**
16   *
17   * @author tim
18   */
19  public class QueryImpl implements Query, java.io.Serializable {
20      private int timeout = 60;
21      private String query = null;
22      private int maxRows = 500;
23      private int fetchSize = 40;
24      
25      public int getTimeout() {        
26          return timeout;
27      }
28  
29      public String getQuery() {
30          return query;
31      }
32  
33      public int getMaxRows() {
34          return maxRows;
35      }
36  
37      public int getFetchSize() {
38          return fetchSize;
39      }
40  
41      public void setTimeout(int timeout) {
42          this.timeout = timeout;
43      }
44  
45      public void setQuery(String query) {
46          this.query = query;
47      }
48  
49      public void setMaxRows(int maxRows) {
50          this.maxRows = maxRows;
51      }
52  
53      public void setFetchSize(int fetchSize) {
54          this.fetchSize = fetchSize;
55      }
56      
57  }