1 56 package org.objectstyle.cayenne.query; 57 58 import java.util.Collection ; 59 60 67 public interface GenericSelectQuery extends Query { 68 69 74 public static final String NO_CACHE = "nocache"; 75 76 82 public static final String LOCAL_CACHE = "localcache"; 83 84 90 public static final String SHARED_CACHE = "sharedcache"; 91 92 97 public static final String FETCH_LIMIT_PROPERTY = "cayenne.GenericSelectQuery.fetchLimit"; 98 99 105 public static final int FETCH_LIMIT_DEFAULT = 0; 106 107 112 public static final String PAGE_SIZE_PROPERTY = "cayenne.GenericSelectQuery.pageSize"; 113 114 119 public static final int PAGE_SIZE_DEFAULT = 0; 120 121 124 public static final String FETCHING_DATA_ROWS_PROPERTY = "cayenne.GenericSelectQuery.fetchingDataRows"; 125 126 129 public static final boolean FETCHING_DATA_ROWS_DEFAULT = false; 130 131 134 public static final String REFRESHING_OBJECTS_PROPERTY = "cayenne.GenericSelectQuery.refreshingObjects"; 135 136 139 public static final boolean REFRESHING_OBJECTS_DEFAULT = true; 140 141 144 public static final String RESOLVING_INHERITED_PROPERTY = "cayenne.GenericSelectQuery.resolvingInherited"; 145 146 149 public static final boolean RESOLVING_INHERITED_DEFAULT = true; 150 151 154 public static final String CACHE_POLICY_PROPERTY = "cayenne.GenericSelectQuery.cachePolicy"; 155 156 159 public static final String CACHE_POLICY_DEFAULT = NO_CACHE; 160 161 168 public String getCachePolicy(); 169 170 175 public boolean isFetchingDataRows(); 176 177 185 public boolean isRefreshingObjects(); 186 187 193 public boolean isResolvingInherited(); 194 195 200 public int getPageSize(); 201 202 212 public int getFetchLimit(); 213 214 220 public Collection getJointPrefetches(); 221 } | Popular Tags |