Generated domains
Supported by ✅ Open Source Edition ✅ Express Edition ✅ Professional Edition ✅ Enterprise Edition
Every DOMAIN type in your database will generate an org.jooq.Domain reference in a single Domains class that looks like this:
public class Domains {
/**
* The domain <code>PUBLIC.EMAIL</code>.
*/
public static final Domain<String> EMAIL = Internal.createDomain(
schema()
, DSL.name("EMAIL")
, org.jooq.impl.CLOB.nullable(false)
, Internal.createCheck(null, null, "(\"VALUE\" LIKE '%@%')")
);
/**
* The domain <code>PUBLIC.YEAR</code>.
*/
public static final Domain<Integer> YEAR = Internal.createDomain(
schema()
, DSL.name("YEAR")
, org.jooq.impl.INTEGER.nullable(false)
, Internal.createCheck(null, null, "((\"VALUE\" >= 1900) AND (\"VALUE\" <= 2050))")
);
}
These domain specifications are referenced from all columns that use the respective domain type.
Feedback
Do you have any feedback about this page? We'd love to hear it!