1 19 20 package org.apache.cayenne.query; 21 22 import org.apache.cayenne.map.DataMap; 23 import org.apache.cayenne.map.DbEntity; 24 import org.apache.cayenne.map.ObjEntity; 25 import org.apache.cayenne.map.Procedure; 26 import org.apache.cayenne.reflect.ClassDescriptor; 27 28 34 public interface QueryMetadata { 35 36 39 public static final String NO_CACHE = "nocache"; 40 41 45 public static final String LOCAL_CACHE = "localcache"; 46 47 50 public static final String LOCAL_CACHE_REFRESH = "localcache_refresh"; 51 52 56 public static final String SHARED_CACHE = "sharedcache"; 57 58 61 public static final String SHARED_CACHE_REFRESH = "sharedcache_refresh"; 62 63 66 public static final String FETCH_LIMIT_PROPERTY = "cayenne.GenericSelectQuery.fetchLimit"; 67 68 72 public static final int FETCH_LIMIT_DEFAULT = 0; 73 74 77 public static final String PAGE_SIZE_PROPERTY = "cayenne.GenericSelectQuery.pageSize"; 78 79 82 public static final int PAGE_SIZE_DEFAULT = 0; 83 84 public static final String FETCHING_DATA_ROWS_PROPERTY = "cayenne.GenericSelectQuery.fetchingDataRows"; 85 86 public static final boolean FETCHING_DATA_ROWS_DEFAULT = false; 87 88 public static final String REFRESHING_OBJECTS_PROPERTY = "cayenne.GenericSelectQuery.refreshingObjects"; 89 90 public static final boolean REFRESHING_OBJECTS_DEFAULT = true; 91 92 public static final String RESOLVING_INHERITED_PROPERTY = "cayenne.GenericSelectQuery.resolvingInherited"; 93 94 public static final boolean RESOLVING_INHERITED_DEFAULT = true; 95 96 public static final String CACHE_POLICY_PROPERTY = "cayenne.GenericSelectQuery.cachePolicy"; 97 98 101 public static final String CACHE_GROUPS_PROPERTY = "cayenne.GenericSelectQuery.cacheGroups"; 102 103 public static final String CACHE_POLICY_DEFAULT = NO_CACHE; 104 105 108 ClassDescriptor getClassDescriptor(); 109 110 113 ObjEntity getObjEntity(); 114 115 118 DbEntity getDbEntity(); 119 120 123 Procedure getProcedure(); 124 125 128 DataMap getDataMap(); 129 130 135 String getCachePolicy(); 136 137 141 String getCacheKey(); 142 143 151 String [] getCacheGroups(); 152 153 158 boolean isFetchingDataRows(); 159 160 166 boolean isRefreshingObjects(); 167 168 172 boolean isResolvingInherited(); 173 174 179 int getPageSize(); 180 181 185 int getFetchStartIndex(); 186 187 197 int getFetchLimit(); 198 199 203 PrefetchTreeNode getPrefetchTree(); 204 205 211 SQLResultSetMapping getResultSetMapping(); 212 } 213 | Popular Tags |