|
1 | | -package com.clickhouse.jdbc.internal; |
2 | | - |
3 | | -import java.util.Collections; |
4 | | -import java.util.List; |
5 | | - |
6 | | -/** |
7 | | - * JDBC driver specific properties. Should not include any of ClientConfigProperties. |
8 | | - * Processing logic should be the follows |
9 | | - * 1. If property is among DriverProperties then Driver handles it specially and will not pass to a client |
10 | | - * 2. If property is not among DriverProperties then it is passed to a client |
11 | | - */ |
12 | | -public enum DriverProperties { |
13 | | - |
14 | | - IGNORE_UNSUPPORTED_VALUES("jdbc_ignore_unsupported_values", ""), |
15 | | - SCHEMA_TERM("jdbc_schema_term", ""), |
16 | | - /** |
17 | | - * Indicates if driver should create a secure connection over SSL/TLS |
18 | | - */ |
19 | | - SECURE_CONNECTION("ssl", "false"), |
20 | | - |
21 | | - /** |
22 | | - * query settings to be passed along with query operation. |
23 | | - * {@see com.clickhouse.client.api.query.QuerySettings} |
24 | | - */ |
25 | | - DEFAULT_QUERY_SETTINGS("default_query_settings", null); |
26 | | - private final String key; |
27 | | - |
28 | | - private final String defaultValue; |
29 | | - |
30 | | - private final List<String> choices; |
31 | | - |
32 | | - DriverProperties(String key, String defaultValue) { |
33 | | - this(key, defaultValue, Collections.emptyList()); |
34 | | - } |
35 | | - |
36 | | - DriverProperties(String key, String defaultValue, List<String> choices) { |
37 | | - this.key = key; |
38 | | - this.defaultValue = defaultValue; |
39 | | - this.choices = choices; |
40 | | - } |
41 | | - |
42 | | - public String getKey() { |
43 | | - return key; |
44 | | - } |
45 | | - |
46 | | - public String getDefaultValue() { |
47 | | - return defaultValue; |
48 | | - } |
49 | | - |
50 | | - public List<String> getChoices() { |
51 | | - return choices; |
52 | | - } |
53 | | -} |
| 1 | +package com.clickhouse.jdbc.internal; |
| 2 | + |
| 3 | +import java.util.Collections; |
| 4 | +import java.util.List; |
| 5 | + |
| 6 | +/** |
| 7 | + * JDBC driver specific properties. Should not include any of ClientConfigProperties. |
| 8 | + * Processing logic should be the follows |
| 9 | + * 1. If property is among DriverProperties then Driver handles it specially and will not pass to a client |
| 10 | + * 2. If property is not among DriverProperties then it is passed to a client |
| 11 | + */ |
| 12 | +public enum DriverProperties { |
| 13 | + |
| 14 | + IGNORE_UNSUPPORTED_VALUES("jdbc_ignore_unsupported_values", ""), |
| 15 | + SCHEMA_TERM("jdbc_schema_term", ""), |
| 16 | + /** |
| 17 | + * Indicates if driver should create a secure connection over SSL/TLS |
| 18 | + */ |
| 19 | + SECURE_CONNECTION("ssl", "false"), |
| 20 | + |
| 21 | + /** |
| 22 | + * query settings to be passed along with query operation. |
| 23 | + * {@see com.clickhouse.client.api.query.QuerySettings} |
| 24 | + */ |
| 25 | + DEFAULT_QUERY_SETTINGS("default_query_settings", null); |
| 26 | + private final String key; |
| 27 | + |
| 28 | + private final String defaultValue; |
| 29 | + |
| 30 | + private final List<String> choices; |
| 31 | + |
| 32 | + DriverProperties(String key, String defaultValue) { |
| 33 | + this(key, defaultValue, Collections.emptyList()); |
| 34 | + } |
| 35 | + |
| 36 | + DriverProperties(String key, String defaultValue, List<String> choices) { |
| 37 | + this.key = key; |
| 38 | + this.defaultValue = defaultValue; |
| 39 | + this.choices = choices; |
| 40 | + } |
| 41 | + |
| 42 | + public String getKey() { |
| 43 | + return key; |
| 44 | + } |
| 45 | + |
| 46 | + public String getDefaultValue() { |
| 47 | + return defaultValue; |
| 48 | + } |
| 49 | + |
| 50 | + public List<String> getChoices() { |
| 51 | + return choices; |
| 52 | + } |
| 53 | +} |
0 commit comments