1 20 package org.enhydra.dods.cache; 21 22 32 public interface CacheConstants { 33 38 public static final int DATA_CACHE = 0; 39 40 44 public static final int SIMPLE_QUERY_CACHE = 1; 45 46 50 public static final int COMPLEX_QUERY_CACHE = 2; 51 52 56 public static final int MULTI_JOIN_QUERY_CACHE = 3; 57 58 62 public static final int DATA_CACHING = 1; 63 64 68 public static final int QUERY_CACHING = 2; 69 70 76 public static final int DEFAULT_MAX_CACHE_SIZE = 0; 77 78 83 public final int DEFAULT_MAX_SIMPLE_QUERY_CACHE_SIZE = 0; 84 85 90 public final int DEFAULT_MAX_COMPLEX_QUERY_CACHE_SIZE = 0; 91 92 97 public final int DEFAULT_MAX_MULTI_JOIN_QUERY_CACHE_SIZE = 0; 98 99 110 public final double DEFAULT_RESERVE_FACTOR = 0; 111 112 public final boolean DEFAULT_TRANSACTION_CHECK = false; 113 114 public final boolean DEFAULT_DELETE_CHECK_VERSION = false; 115 116 public final boolean DEFAULT_AUTO_WRITE = false; 117 118 public final boolean DEFAULT_TRANSACTION_CACHES = false; 119 120 public final boolean DEFAULT_AUTO_SAVE = false; 121 122 public final boolean DEFAULT_AUTO_SAVE_CREATE_VIRGIN = false; 123 124 public final int DEFAULT_DEFAULT_FETCH_SIZE = -1; 125 126 public final int DEFAULT_DEADLOCK_READ_TIME = 0; 127 128 public final int DEFAULT_DEADLOCK_RETRY_NUMBER = 0; 129 130 public final int DEFAULT_QUERY_TIMEOUT = 0; 131 132 public final boolean DEFAULT_LAZY_LOADING = false; 133 134 public final int DEFAULT_MAX_EXECUTE_TIME = 0; 135 136 public final boolean DEFAULT_INITIAL_ALL_CACHES = false; 137 138 public final String DEFAULT_INITIAL_CONDITION = null; 139 140 public final boolean DEFAULT_All_READONLY = false; 141 142 public final boolean DEFAULT_READONLY = false; 143 144 public final double DEFAULT_CACHE_PERCENTAGE = -1.0; 145 146 public final boolean DEFAULT_CASE_SENSITIVE = false; 147 148 public final String DEFAULT_APP_NAME = null; 149 150 public final int DEFAULT_INITIAL_CACHE_FETCH_SIZE = 0; 151 152 public final int DEFAULT_INITIAL_DS_CACHE_SIZE = -1; 153 154 157 public final boolean DEFAULT_SELECT_OIDS = false; 158 159 162 public final boolean DEFAULT_INCREMENT_VERSIONS = true; 163 public final int DEFAULT_FULL_CACHE_COUNT_LIMIT = -1; 164 165 168 public final String PARAMNAME_TRANSACTION_CHECK = "TransactionCheck"; 169 170 public final String PARAMNAME_DELETE_CHECK_VERSION = "DeleteCheckVersion"; 171 172 public final String PARAMNAME_AUTO_WRITE = "AutoWrite"; 173 174 public final String PARAMNAME_TRANSACTION_CACHES = "TransactionCaches"; 175 176 public final String PARAMNAME_AUTO_SAVE = "AutoSave"; 177 178 public final String PARAMNAME_AUTO_SAVE_CREATE_VIRGIN = "AutoSaveCreateVirgin"; 179 180 public final String PARAMNAME_DEFAULT_FETCH_SIZE = "DefaultFetchSize"; 181 182 public final String PARAMNAME_DEADLOCK_READ_TIME = "CacheLockTimeout"; 183 184 public final String PARAMNAME_DEADLOCK_RETRY_NUMBER = "CacheLockRetryCount"; 185 186 public final String PARAMNAME_QUERY_TIMEOUT = "QueryTimeout"; 187 188 public final String PARAMNAME_ALL_READ_ONLY = "AllReadOnly"; 189 190 public static final String PARAMNAME_LAZY_LOADING = "lazyLoading"; 191 192 public final String PARAMNAME_MAX_EXECUTE_TIME = "maxExecuteTime"; 193 194 public final String PARAMNAME_MAX_CACHE_SIZE = "maxCacheSize"; 195 196 public final String PARAMNAME_MAX_SIMPLE_CACHE_SIZE = "maxSimpleCacheSize"; 197 198 public final String PARAMNAME_MAX_COMPLEX_CACHE_SIZE = "maxComplexCacheSize"; 199 200 public final String PARAMNAME_MAX_MULTI_JOIN_CACHE_SIZE = "maxMultiJoinCacheSize"; 201 202 public final String PARAMNAME_RESERVE_FACTOR = "reserveFactor"; 203 204 public final String PARAMNAME_INITIAL_ALL_CACHES = "initAllCaches"; 205 206 public final String PARAMNAME_INITIAL_CONDITION = "initialCondition"; 207 208 public final String PARAMNAME_READ_ONLY = "readOnly"; 209 210 public final String PARAMNAME_CACHE_PERCENTAGE = "CachePercentage"; 211 212 public final String PARAMNAME_CASE_SENSITIVE = "CaseSensitive"; 213 214 public final String PARAMNAME_APP_NAME = "AppName"; 215 216 public final String PARAMNAME_INITIAL_CACHE_FETCH_SIZE = "InitialCacheFetchSize"; 217 218 public final String PARAMNAME_INITIAL_DS_CACHE_SIZE = "InitialDSCacheSize"; 219 220 223 public final String PARAMNAME_SELECT_OIDS = "SelectOids"; 224 225 228 public final String PARAMNAME_INCREMENT_VERSIONS = "IncrementVersions"; 229 public final String FULL_CACHE_COUNT_LIMIT = "FullCacheCountLimit"; 230 231 232 public final String PARAMNAME_DODS_CACHE_FACTORY="DODSCacheFactory"; 233 public final String DEFAULT_DODS_CACHE_FACTORY="org.enhydra.dods.cache.lru.DODSLRUCacheFactory"; 234 } 235 236 | Popular Tags |