SQLDialect#MARIADB, this can be a column-scope enum typeSQLDialect#MYSQL, this can be a column-scope enum typeSQLDialect#POSTGRES, this can be a schema-scope enum type
Client code should not assume that the actual enum reference is a Java
Enum. In Scala, for instance, enums are not idiomatic, and jOOQ
implements them differently. In any case, this EnumType API is
implemented by generated database enums.
| Modifier and Type | Method and Description |
|---|---|
| public default @Nullable Catalog | |
| public @NotNull String | |
| public @Nullable String | getName()
The type name as registered in the database, if applicable (Postgres schema-scope enum type only). |
| public default @Nullable Schema | |
| public static <E extends Enum | lookupLiteral(Class<E> enumType, String literal)
Look up an |
| getCatalog | back to summary |
|---|---|
| public default @Nullable Catalog getCatalog() The catalog of the enum type, if applicable. Otherwise, this returns
| |
| getLiteral | back to summary |
|---|---|
| public @NotNull String getLiteral() The literal as defined in the database
| |
| getName | back to summary |
|---|---|
| public @Nullable String getName() The type name as registered in the database, if applicable (Postgres
schema-scope enum type only). Otherwise, this returns
| |
| getSchema | back to summary |
|---|---|
| public default @Nullable Schema getSchema() The schema of the enum type, if applicable (Postgres schema-scope enum
type only). Otherwise, this returns
| |
| lookupLiteral | back to summary |
|---|---|
| public static <E extends Enum Look up an
This is similar to
| |