%s.[[before= ][%s]]", column.getQualifiedOutputName(), list(escapeEntities(comment(column))));
diff --git a/jOOQ-meta/src/main/java/org/jooq/meta/AbstractDatabase.java b/jOOQ-meta/src/main/java/org/jooq/meta/AbstractDatabase.java
index 3250dab59b..5a3d0714a8 100644
--- a/jOOQ-meta/src/main/java/org/jooq/meta/AbstractDatabase.java
+++ b/jOOQ-meta/src/main/java/org/jooq/meta/AbstractDatabase.java
@@ -329,6 +329,18 @@ public abstract class AbstractDatabase implements Database {
return connection;
}
+ public boolean commercial() {
+ return create().configuration().commercial();
+ }
+
+ public boolean commercial(Supplier+ * This has no effect on matched objects that are not columns. + *
+ * This feature is available in the commercial distribution only. + * + */ + public VisibilityModifier getVisibilityModifier() { + return visibilityModifier; + } + + /** + * The visibility modifier to be used in generated code for the column that is matched by this forced type, if applicable. + *
+ * This has no effect on matched objects that are not columns. + *
+ * This feature is available in the commercial distribution only. + * + */ + public void setVisibilityModifier(VisibilityModifier value) { + this.visibilityModifier = value; + } + /** * A {@link org.jooq.Generator} implementation used for client-side computed columns. *
+ * This has no effect on matched objects that are not columns. + *
* This feature is available in the commercial distribution only. * */ @@ -134,6 +162,8 @@ public class ForcedType implements Serializable, XMLAppendable /** * A {@link org.jooq.Generator} implementation used for client-side computed columns. *
+ * This has no effect on matched objects that are not columns. + *
* This feature is available in the commercial distribution only. * */ @@ -417,9 +447,24 @@ public class ForcedType implements Serializable, XMLAppendable return this; } + /** + * The visibility modifier to be used in generated code for the column that is matched by this forced type, if applicable. + *
+ * This has no effect on matched objects that are not columns. + *
+ * This feature is available in the commercial distribution only. + * + */ + public ForcedType withVisibilityModifier(VisibilityModifier value) { + setVisibilityModifier(value); + return this; + } + /** * A {@link org.jooq.Generator} implementation used for client-side computed columns. *
+ * This has no effect on matched objects that are not columns. + *
* This feature is available in the commercial distribution only.
*
*/
@@ -562,6 +607,7 @@ public class ForcedType implements Serializable, XMLAppendable
builder.append("priority", priority);
builder.append("name", name);
builder.append("userType", userType);
+ builder.append("visibilityModifier", visibilityModifier);
builder.append("generator", generator);
builder.append("converter", converter);
builder.append("enumConverter", enumConverter);
@@ -625,6 +671,15 @@ public class ForcedType implements Serializable, XMLAppendable
return false;
}
}
+ if (visibilityModifier == null) {
+ if (other.visibilityModifier!= null) {
+ return false;
+ }
+ } else {
+ if (!visibilityModifier.equals(other.visibilityModifier)) {
+ return false;
+ }
+ }
if (generator == null) {
if (other.generator!= null) {
return false;
@@ -770,6 +825,7 @@ public class ForcedType implements Serializable, XMLAppendable
result = ((prime*result)+((priority == null)? 0 :priority.hashCode()));
result = ((prime*result)+((name == null)? 0 :name.hashCode()));
result = ((prime*result)+((userType == null)? 0 :userType.hashCode()));
+ result = ((prime*result)+((visibilityModifier == null)? 0 :visibilityModifier.hashCode()));
result = ((prime*result)+((generator == null)? 0 :generator.hashCode()));
result = ((prime*result)+((converter == null)? 0 :converter.hashCode()));
result = ((prime*result)+((enumConverter == null)? 0 :enumConverter.hashCode()));
diff --git a/jOOQ-meta/src/main/java/org/jooq/meta/jaxb/VisibilityModifier.java b/jOOQ-meta/src/main/java/org/jooq/meta/jaxb/VisibilityModifier.java
index 7ea7c549b3..0fcd65a3e9 100644
--- a/jOOQ-meta/src/main/java/org/jooq/meta/jaxb/VisibilityModifier.java
+++ b/jOOQ-meta/src/main/java/org/jooq/meta/jaxb/VisibilityModifier.java
@@ -16,6 +16,7 @@ import jakarta.xml.bind.annotation.XmlType;
* <enumeration value="NONE"/>
* <enumeration value="PUBLIC"/>
* <enumeration value="INTERNAL"/>
+ * <enumeration value="PRIVATE"/>
* </restriction>
* </simpleType>
*
@@ -28,7 +29,8 @@ public enum VisibilityModifier {
DEFAULT,
NONE,
PUBLIC,
- INTERNAL;
+ INTERNAL,
+ PRIVATE;
public String value() {
return name();
diff --git a/jOOQ-meta/src/main/resources/org/jooq/meta/xsd/jooq-codegen-3.17.0.xsd b/jOOQ-meta/src/main/resources/org/jooq/meta/xsd/jooq-codegen-3.17.0.xsd
index 78ee4f6951..f4f35a4440 100644
--- a/jOOQ-meta/src/main/resources/org/jooq/meta/xsd/jooq-codegen-3.17.0.xsd
+++ b/jOOQ-meta/src/main/resources/org/jooq/meta/xsd/jooq-codegen-3.17.0.xsd
@@ -1339,6 +1339,18 @@ This feature is available in the commercial distribution only.]]><
+
+This feature is available in the commercial distribution only.]]>
This feature is available in the commercial distribution only.]]>