diff 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
line wrap: on
line diff
--- a/src/main/java/org/monetdb/mcl/net/Parameter.java
+++ b/src/main/java/org/monetdb/mcl/net/Parameter.java
@@ -222,6 +222,24 @@ public enum Parameter {
 		for (Parameter parm: Parameter.values()) {
 			if (!includeTls && parm.isTlsRelated)
 				continue;
+			switch (parm) {
+				case TABLESCHEMA:
+				case TABLE:
+				case SOCK:
+				case SOCKDIR:
+				case BINARY:
+				case CLOB_AS_VARCHAR:
+				case BLOB_AS_BINARY:
+					// hide, not supported in Java
+					continue;
+				case FETCHSIZE:
+					// hide, alias of REPLYSIZE
+					continue;
+				case LANGUAGE:
+				case HASH:
+					// hide, we don't want users to mess with this
+					continue;
+			}
 			if (parm == Parameter.FETCHSIZE)    // alias of REPLYSIZE
 				continue;
 			String value = info == null ? null : info.getProperty(parm.name);