1 package org.apache.ojb.broker.query; 2 3 17 18 import java.util.List ; 19 20 45 public interface Query extends java.io.Serializable 46 { 47 static final long serialVersionUID = 7616997212439931319L; 48 49 public static final int NO_START_AT_INDEX = 0; 50 public static final int NO_END_AT_INDEX = 0; 51 public static final boolean SCROLLABLE = true; 52 public static final boolean NOT_SCROLLABLE = false; 53 54 57 public abstract Criteria getCriteria(); 58 59 62 public abstract Criteria getHavingCriteria(); 63 64 67 public abstract Object getExampleObject(); 68 69 72 public abstract Class getSearchClass(); 73 74 77 public abstract Class getBaseClass(); 78 79 82 public boolean isDistinct(); 83 84 89 public List getOrderBy(); 90 91 96 public List getGroupBy(); 97 98 103 int getStartAtIndex(); 104 105 110 void setStartAtIndex(int startAtIndex); 111 112 117 int getEndAtIndex(); 118 119 124 void setEndAtIndex(int endAtIndex); 125 126 130 public List getPrefetchedRelationships(); 131 132 136 void fullSize(int size); 137 141 int fullSize(); 142 143 void setWithExtents(boolean withExtents); 144 boolean getWithExtents(); 145 146 150 public boolean usePaging(); 151 152 158 void setFetchSize(int fetchSize); 159 160 165 int getFetchSize(); 166 167 } 168 | Popular Tags |