1 27 package org.objectweb.speedo.api; 28 29 import java.util.List ; 30 import java.util.Arrays ; 31 import java.util.Collections ; 32 33 37 public interface SpeedoProperties { 38 39 String SPEEDO = "org.objectweb.speedo"; 40 41 String LOGGER_NAME = SPEEDO; 42 43 String DEBUG = SPEEDO + ".debug"; 44 45 47 51 String NO_LIMIT = "nolimit"; 52 53 57 String CACHE_SIZE = SPEEDO + ".cache.size"; 58 59 String CACHE_AUTO_CLEAN_SIZE = SPEEDO + ".cache.autoCleanSize"; 60 String CACHE_AUTO_CLEAN_THRESHOLD = SPEEDO + ".cache.autoCleanThreshold"; 61 62 String CACHE_REPLCAEMENT = SPEEDO + ".cache.policy"; 63 String CACHE_REPLCAEMENT_FIFO = "FIFO"; 64 String CACHE_REPLCAEMENT_LRU = "LRU"; 65 String CACHE_REPLCAEMENT_MRU = "MRU"; 66 67 String CACHE_CLASS_POLICY = SPEEDO + ".cache.classPolicy"; 68 String CACHE_CLASS_POLICY_NOCACHE = "nocache"; 69 String CACHE_CLASS_POLICY_CACHED = "cache"; 70 String CACHE_CLASS_POLICY_FIXED = "fixed"; 71 String CACHE_CLASS_POLICY_ALL = "all"; 72 73 String USER_CACHE = "user-cache"; 74 String USER_CACHE_CLASS_POLICY = SPEEDO + ".user-cache.classPolicy"; 75 76 80 String MANAGED = "org.objectweb.perseus.connector.ra.jdo.managed"; 81 82 String TM_NAME = SPEEDO + ".jca.TMName"; 83 86 String TM_NAME_old = "org.objectweb.perseus.connector.ra.jdo.TMName"; 87 91 String PM_POOL_MIN = SPEEDO + ".persistencemanager.pool.min"; 92 93 97 String PM_POOL_MAX = SPEEDO + ".persistencemanager.pool.max"; 98 String PM_POOL_TTL = SPEEDO + ".persistencemanager.pool.ttl"; 99 String PM_POOL_INACTIVETTL = SPEEDO + ".persistencemanager.pool.inactivettl"; 100 String PM_POOL_TIMEOUT = SPEEDO + ".persistencemanager.pool.timeout"; 101 102 106 String COMPILED_QUERY_CACHE_SIZE = SPEEDO + ".compiledquery.cache.size"; 107 String COMPILED_QUERY_CACHE_AUTO_CLEAN_SIZE = SPEEDO + ".compiledquery.cache.autoCleanSize"; 108 String COMPILED_QUERY_CACHE_AUTO_CLEAN_THRESHOLD = SPEEDO + ".compiledquery.cache.autoCleanThreshold"; 109 String COMPILED_QUERY_CACHE_POLICY = SPEEDO + ".compiledquery.cache.policy"; 110 111 115 String PREFETCH = SPEEDO + ".query.prefetch"; 116 String PREFETCH_ON_QUERY = SPEEDO + ".query.prefetch.query"; 117 String PREFETCH_ON_EXTENT = SPEEDO + ".query.prefetch.extent"; 118 String PREFETCH_ON_GENCLASS = SPEEDO + ".genclass.prefetch"; 119 120 127 String MAPPING_STRUCTURE = SPEEDO + ".mappingStructure"; 128 String MAPPING_STRUCTURE_DN = "DO_NOTHING"; 129 String MAPPING_STRUCTURE_CIR = "CREATE_IF_REQUIRED"; 130 String MAPPING_STRUCTURE_FC = "FORCE_CREATE"; 131 String MAPPING_STRUCTURE_DD = "DELETE_DATA"; 132 133 137 String TX_LISTENER = SPEEDO + ".txListener"; 138 String CONNECTION_POOL_MIN = SPEEDO + ".connection.pool.min"; 139 String CONNECTION_POOL_MAX = SPEEDO + ".connection.pool.max"; 140 String CONNECTION_POOL_TTL = SPEEDO + ".connection.pool.ttl"; 141 String CONNECTION_POOL_INACTIVETTL = SPEEDO + ".connection.pool.inactivettl"; 142 String CONNECTION_POOL_TIMEOUT = SPEEDO + ".connection.pool.timeout"; 143 144 145 147 String VENDOR_NAME = "speedo"; 148 149 String ID = "id"; 150 String ID_SEQUENCE = "sequence"; 151 String ID_POLYMORPH_2L = "polymorph2l"; 152 String ID_LONG = "long"; 153 String ID_OLONG = "java.lang.Long"; 154 155 159 String SQL_NAME = "sql-name"; 160 161 165 String INHERITANCE_MAPPING = "inheritance-mapping"; 166 String INHERITANCE_FILTERED_MAPPING = "filtered"; 167 String INHERITANCE_HORIZONTAL_MAPPING = "horizontal"; 168 String INHERITANCE_VERTICAL_MAPPING = "vertical"; 169 170 String INHERITANCE_FILTER = "inheritance-filter"; 171 String INHERITANCE_KEY = "inheritance-key"; 172 173 177 String SQL_SEQ_NAME = "sql-seq-name"; 178 String SQL_SEQ_START = "sql-seq-start"; 179 String SQL_SEQ_INC = "sql-seq-increment"; 180 String SQL_SEQ_CACHE = "sql-seq-cache"; 181 String SQL_SEQ_ALLOCATOR = "sql-seq-allocator"; 182 183 187 String SQL_TYPE = "sql-type"; 188 189 193 String SIZE = "size"; 194 195 199 String SCALE = "scale"; 200 201 205 String SOURCE_FK = "source-foreign-keys"; 206 207 211 String TARGET_FK = "target-foreign-keys"; 212 213 217 String REVERSE_FIELD = "reverse-field"; 218 219 224 String CASCADE_DELETE = "cascade-delete"; 225 226 231 String JOIN_TABLE = "join-table"; 232 233 238 String FIELD_CONVERTER = "field-converter"; 239 240 244 String INDEX = "index-sql-name"; 245 246 String INDEX_TYPE = "index-sql-type"; 247 248 253 String ELEMENT = "element-sql-name"; 254 255 String ELEMENT_TYPE = "element-sql-type"; 256 257 String KEY_FIELD = "key-field"; 258 259 262 String JDO_OPTION_TRANSIENT_TRANSACTIONAL = "javax.jdo.option.TransientTransactional"; 263 String JDO_OPTION_NON_TRANSACTIONAL_READ = "javax.jdo.option.NontransactionalRead"; 264 String JDO_OPTION_NON_TRANSACTIONAL_WRITE = "javax.jdo.option.NontransactionalWrite"; 265 String JDO_OPTION_RETAIN_VALUES = "javax.jdo.option.RetainValues"; 266 String JDO_OPTION_OPTIMISTIC = "javax.jdo.option.Optimistic"; 267 String JDO_OPTION_APPLICATION_IDENTITY = "javax.jdo.option.ApplicationIdentity"; 268 String JDO_OPTION_DATASTORE_IDENTITY = "javax.jdo.option.DatastoreIdentity"; 269 String JDO_OPTION_NON_DURABLE_IDENTITY = "javax.jdo.option.NonDurableIdentity"; 270 String JDO_OPTION_ARRAY_LIST = "javax.jdo.option.ArrayList"; 271 String JDO_OPTION_HASH_MAP = "javax.jdo.option.HashMap"; 272 String JDO_OPTION_HASH_TABLE = "javax.jdo.option.Hashtable"; 273 String JDO_OPTION_LINKED_LIST = "javax.jdo.option.LinkedList"; 274 String JDO_OPTION_TREE_MAP = "javax.jdo.option.TreeMap"; 275 String JDO_OPTION_TREE_SET = "javax.jdo.option.TreeSet"; 276 String JDO_OPTION_VECTOR = "javax.jdo.option.Vector"; 277 String JDO_OPTION_MAP = "javax.jdo.option.Map"; 278 String JDO_OPTION_LIST= "javax.jdo.option.List"; 279 String JDO_OPTION_ARRAY = "javax.jdo.option.Array"; 280 String JDO_OPTION_NULL_COLLECTION = "javax.jdo.option.NullCollection"; 281 String JDO_OPTION_CHANGE_APPLICATION_IDENTITY = "javax.jdo.option.ChangeApplicationIdentity"; 282 String JDO_QUERY_JDOQL = "javax.jdo.query.JDOQL"; 283 284 285 288 String JDO_PERSISTENCE_MANAGER_FACTORY_CLASS = "javax.jdo.PersistenceManagerFactoryClass"; 289 String JDO_OPTION_RESTORE_VALUES = "javax.jdo.option.RestoreValues"; 290 String JDO_OPTION_IGNORE_CACHE = "javax.jdo.option.IgnoreCache"; 291 String JDO_OPTION_MULTITREADED = "javax.jdo.option.Multithreaded"; 292 String JDO_OPTION_CONNECTION_DRIVER_NAME_old = "javax.jdo.option.DriverClassName"; 293 String JDO_OPTION_CONNECTION_DRIVER_NAME_old2 = "javax.jdo.option.DriverName"; 294 String JDO_OPTION_CONNECTION_DRIVER_NAME = "javax.jdo.option.ConnectionDriverName"; 295 String JDO_OPTION_CONNECTION_USER_NAME = "javax.jdo.option.ConnectionUserName"; 296 String JDO_OPTION_CONNECTION_PASSWORD = "javax.jdo.option.ConnectionPassword"; 297 String JDO_OPTION_CONNECTION_URL = "javax.jdo.option.ConnectionURL"; 298 String JDO_OPTION_CONNECTION_FACTORY_NAME = "javax.jdo.option.ConnectionFactoryName"; 299 String JDO_OPTION_CONNECTION_FACTORY2_NAME = "javax.jdo.option.ConnectionFactor2yName"; 300 String JDO_OPTION_MAPPING = "javax.jdo.option.ConnectionUserName"; 301 302 303 String MAPPER_NAME = SPEEDO + ".mapperName"; 304 String TRANSACTION_LOCKING = SPEEDO + ".transaction.locking"; 305 String SPEEDO_TRANSACTION_LOCKING = "speedo"; 306 String DB_TRANSACTION_LOCKING = "database"; 307 308 String TRANSACTION_LOCKING_PESSIMISTIC_POLICY = SPEEDO + ".transaction.locking.pessimistic.policy"; 309 String TRANSACTION_LOCKING_PESSIMISTIC_POLICY_MUTEX = "mutex"; 310 String TRANSACTION_LOCKING_PESSIMISTIC_POLICY_RW_FIFO = "rw"; 311 312 String TRANSACTION_LOCKING_LEVEL_ENABLETHIN = SPEEDO + ".transaction.locking.level.enablethin"; 313 String TRANSACTION_LOCKING_LEVEL = SPEEDO + ".transaction.locking.level"; 314 String TRANSACTION_LOCKING_LEVEL_INSTANCE = "instance"; 315 String TRANSACTION_LOCKING_LEVEL_FIELD = "field"; 316 String TRANSACTION_MODE = SPEEDO + ".transaction.mode"; 317 String TRANSACTION_MODE_NORMAL = "NORMAL"; 318 String TRANSACTION_MODE_REQUIRED = "REQUIRED"; 319 String TRANSACTION_MODE_UT = "USER_TRANSACTION"; 320 byte TRANSACTION_BMODE_NORMAL = 0x1; 321 byte TRANSACTION_BMODE_REQUIRED= 0x2; 322 byte TRANSACTION_BMODE_UT = 0x3; 323 324 325 String IMRICATED_PM_ALLOWED = SPEEDO + ".imbricated-persistence-manager"; 326 String CONNECTION_CHECK = SPEEDO + ".connection.check"; 327 328 String JMX = SPEEDO + ".jmx"; 329 String JMX_HTTP_PORT = SPEEDO + ".jmx.http.port"; 330 331 public final static int EXTENSION_JDO_IDX = 0; 332 public final static int EXTENSION_PACKAGE_IDX = 1; 333 public final static int EXTENSION_CLASS_IDX = 2; 334 public final static int EXTENSION_FIELD_IDX = 3; 335 public final static int EXTENSION_COLLECTION_IDX = 4; 336 public final static int EXTENSION_MAP_IDX = 5; 337 338 341 public final static List SUPPORTED_EXTENSION = Arrays.asList(new List []{ 342 Collections.EMPTY_LIST, Collections.EMPTY_LIST, Arrays.asList(new String []{SQL_NAME, 345 SQL_SEQ_CACHE, 346 SQL_SEQ_INC, 347 SQL_SEQ_NAME, 348 SQL_SEQ_START, 349 SQL_SEQ_ALLOCATOR, 350 ID, 351 INHERITANCE_MAPPING, 352 INHERITANCE_KEY, 353 INHERITANCE_FILTER}), Arrays.asList(new String []{SQL_NAME, 355 SQL_TYPE, 356 SIZE, 357 SOURCE_FK, 358 TARGET_FK, 359 JOIN_TABLE, 360 REVERSE_FIELD, 361 ELEMENT, 362 ELEMENT_TYPE, 363 INDEX, 364 INDEX_TYPE, 365 FIELD_CONVERTER, 366 CASCADE_DELETE, 367 KEY_FIELD, 368 USER_CACHE}), Arrays.asList(new String []{ELEMENT, 370 ELEMENT_TYPE, 371 INDEX, 372 INDEX_TYPE}), Arrays.asList(new String []{ELEMENT, 374 ELEMENT_TYPE, 375 INDEX, 376 INDEX_TYPE, 377 KEY_FIELD}), }); 379 } 380 | Popular Tags |