Mercurial > hg > monetdb-java
comparison src/main/java/org/monetdb/mcl/net/Parameter.java @ 940:c5e47b8a509c
Prefer getters of class Target.Validated over class Target
This makes it easier to check that all settings are used.
author | Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com> |
---|---|
date | Wed, 08 Jan 2025 16:30:25 +0100 (3 months ago) |
parents | fd938d0a2b3a |
children | 8dca959599c8 |
comparison
equal
deleted
inserted
replaced
939:fd938d0a2b3a | 940:c5e47b8a509c |
---|---|
220 final ArrayList<DriverPropertyInfo> optional = new ArrayList<>(Parameter.values().length); | 220 final ArrayList<DriverPropertyInfo> optional = new ArrayList<>(Parameter.values().length); |
221 | 221 |
222 for (Parameter parm: Parameter.values()) { | 222 for (Parameter parm: Parameter.values()) { |
223 if (!includeTls && parm.isTlsRelated) | 223 if (!includeTls && parm.isTlsRelated) |
224 continue; | 224 continue; |
225 switch (parm) { | |
226 case TABLESCHEMA: | |
227 case TABLE: | |
228 case SOCK: | |
229 case SOCKDIR: | |
230 case BINARY: | |
231 case CLOB_AS_VARCHAR: | |
232 case BLOB_AS_BINARY: | |
233 // hide, not supported in Java | |
234 continue; | |
235 case FETCHSIZE: | |
236 // hide, alias of REPLYSIZE | |
237 continue; | |
238 case LANGUAGE: | |
239 case HASH: | |
240 // hide, we don't want users to mess with this | |
241 continue; | |
242 } | |
225 if (parm == Parameter.FETCHSIZE) // alias of REPLYSIZE | 243 if (parm == Parameter.FETCHSIZE) // alias of REPLYSIZE |
226 continue; | 244 continue; |
227 String value = info == null ? null : info.getProperty(parm.name); | 245 String value = info == null ? null : info.getProperty(parm.name); |
228 if (value == null) { | 246 if (value == null) { |
229 Object defaultValue = parm.getDefault(); | 247 Object defaultValue = parm.getDefault(); |