- java.lang.Object
-
- java.lang.Enum<GeneratorStrategy.Mode>
-
- org.jooq.codegen.GeneratorStrategy.Mode
-
- All Implemented Interfaces:
Serializable
,Comparable<GeneratorStrategy.Mode>
- Enclosing interface:
- GeneratorStrategy
public static enum GeneratorStrategy.Mode extends Enum<GeneratorStrategy.Mode>
The "mode" by which an artefact should be named
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GeneratorStrategy.Mode
valueOf(String name)
Returns the enum constant of this type with the specified name.static GeneratorStrategy.Mode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DEFAULT
public static final GeneratorStrategy.Mode DEFAULT
The default mode. This is used when anyDefinition
's meta type is being rendered.
-
RECORD
public static final GeneratorStrategy.Mode RECORD
The record mode. This is used when aTableDefinition
or aUDTDefinition
's record class is being rendered.
-
POJO
public static final GeneratorStrategy.Mode POJO
The pojo mode. This is used when aTableDefinition
's pojo class is being rendered
-
INTERFACE
public static final GeneratorStrategy.Mode INTERFACE
the interface mode. This is used when aTableDefinition
's interface is being rendered
-
DAO
public static final GeneratorStrategy.Mode DAO
The dao mode. This is used when aTableDefinition
's dao class is being rendered
-
ENUM
public static final GeneratorStrategy.Mode ENUM
The enum mode. This is used when aEnumDefinition
's class is being rendered
-
DOMAIN
public static final GeneratorStrategy.Mode DOMAIN
The domain mode. This is used when aDomainDefinition
's class is being rendered
-
-
Method Detail
-
values
public static GeneratorStrategy.Mode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (GeneratorStrategy.Mode c : GeneratorStrategy.Mode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GeneratorStrategy.Mode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-