Skip to content

Method: static {...}

1: /*
2: * JOPA
3: * Copyright (C) 2024 Czech Technical University in Prague
4: *
5: * This library is free software; you can redistribute it and/or
6: * modify it under the terms of the GNU Lesser General Public
7: * License as published by the Free Software Foundation; either
8: * version 3.0 of the License, or (at your option) any later version.
9: *
10: * This library is distributed in the hope that it will be useful,
11: * but WITHOUT ANY WARRANTY; without even the implied warranty of
12: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13: * Lesser General Public License for more details.
14: *
15: * You should have received a copy of the GNU Lesser General Public
16: * License along with this library.
17: */
18: package cz.cvut.kbss.ontodriver.rdf4j.config;
19:
20: import cz.cvut.kbss.ontodriver.config.ConfigurationParameter;
21: import cz.cvut.kbss.ontodriver.config.OntoDriverProperties;
22:
23: /**
24: * RDF4J driver configuration parameters.
25: *
26: * @see OntoDriverProperties
27: * @see Rdf4jOntoDriverProperties
28: */
29: public enum Rdf4jConfigParam implements ConfigurationParameter {
30:
31: USE_VOLATILE_STORAGE(Rdf4jOntoDriverProperties.USE_VOLATILE_STORAGE),
32: USE_INFERENCE(Rdf4jOntoDriverProperties.USE_INFERENCE),
33: LOAD_ALL_THRESHOLD(Rdf4jOntoDriverProperties.LOAD_ALL_THRESHOLD),
34: USERNAME(OntoDriverProperties.DATA_SOURCE_USERNAME),
35: PASSWORD(OntoDriverProperties.DATA_SOURCE_PASSWORD),
36: REPOSITORY_CONFIG(Rdf4jOntoDriverProperties.REPOSITORY_CONFIG),
37: RECONNECT_ATTEMPTS(Rdf4jOntoDriverProperties.RECONNECT_ATTEMPTS),
38: INFERENCE_IN_DEFAULT_CONTEXT(Rdf4jOntoDriverProperties.INFERENCE_IN_DEFAULT_CONTEXT),
39: CONNECTION_REQUEST_TIMEOUT(Rdf4jOntoDriverProperties.CONNECTION_REQUEST_TIMEOUT),
40: MAX_CONNECTION_POOL_SIZE(Rdf4jOntoDriverProperties.MAX_CONNECTION_POOL_SIZE),
41: TRANSACTION_ISOLATION_LEVEL(Rdf4jOntoDriverProperties.TRANSACTION_ISOLATION_LEVEL);
42:
43: private final String name;
44:
45: Rdf4jConfigParam(String name) {
46: this.name = name;
47: }
48:
49: @Override
50: public String toString() {
51: return name;
52: }
53: }