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