Skip to content

Package: JOPAPersistenceProperties

JOPAPersistenceProperties

Coverage

1: /**
2: * Copyright (C) 2016 Czech Technical University in Prague
3: *
4: * This program is free software: you can redistribute it and/or modify it under
5: * the terms of the GNU General Public License as published by the Free Software
6: * Foundation, either version 3 of the License, or (at your option) any
7: * later version.
8: *
9: * This program is distributed in the hope that it will be useful, but WITHOUT
10: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11: * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
12: * details. You should have received a copy of the GNU General Public License
13: * along with this program. If not, see <http://www.gnu.org/licenses/>.
14: */
15: package cz.cvut.kbss.jopa.model;
16:
17: public interface JOPAPersistenceProperties extends PersistenceProperties {
18:
19: /**
20: * Logical URI of the underlying ontology.
21: */
22: String ONTOLOGY_URI_KEY = "cz.cvut.jopa.ontology.logicalUri";
23:
24: /**
25: * Physical location of the underlying ontology storage.
26: */
27: String ONTOLOGY_PHYSICAL_URI_KEY = "cz.cvut.jopa.ontology.physicalURI";
28:
29: /**
30: * Class name of the OntoDriver implementation.
31: */
32: String DATA_SOURCE_CLASS = "cz.cvut.jopa.dataSource.class";
33:
34: /**
35: * Username to be used when accessing data source.
36: */
37: String DATA_SOURCE_USERNAME = "cz.cvut.jopa.dataSource.username";
38:
39: /**
40: * Password to be used when accessing data source.
41: */
42: String DATA_SOURCE_PASSWORD = "cz.cvut.jopa.dataSource.password";
43:
44: /**
45: * Factory class for OWLAPI-based reasoner.
46: */
47: String REASONER_FACTORY_CLASS = "cz.cvut.jopa.reasonerFactoryClass";
48:
49: /**
50: * Ontology language.
51: */
52: String LANG = "cz.cvut.jopa.lang";
53:
54: /**
55: * Whether a second level cache should be used.
56: */
57: String CACHE_ENABLED = "cz.cvut.jopa.cache.enable";
58:
59: /**
60: * Where the entity classes are located.
61: */
62: String SCAN_PACKAGE = "cz.cvut.jopa.scanPackage";
63:
64: /**
65: * Cached entity time to live. In seconds.
66: */
67: String CACHE_TTL = "cz.cvut.jopa.cache.ttl";
68:
69: /**
70: * How often should the cache be swept for dead entities. In seconds.
71: */
72: String CACHE_SWEEP_RATE = "cz.cvut.jopa.cache.sweepRate";
73:
74: /**
75: * Type of the second level cache. Currently supported are {@literal ttl} and {@literal lru}.
76: */
77: String CACHE_TYPE = "cz.cvut.jopa.cache.type";
78:
79: /**
80: * Capacity of the LRU second level cache.
81: */
82: String LRU_CACHE_CAPACITY = "cz.cvut.jopa.cache.lru.capacity";
83:
84: /**
85: * Disable integrity constraints validation on entity/field load.
86: */
87: String DISABLE_IC_VALIDATION_ON_LOAD = "cz.cvut.jopa.ic.validation.disableOnLoad";
88: }