org.jooq.util
Enum GeneratorStrategy.Mode

java.lang.Object
  extended by java.lang.Enum<GeneratorStrategy.Mode>
      extended by org.jooq.util.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


Enum Constant Summary
DEFAULT
          The default mode.
ENUM
          The enum mode.
FACTORY
          The factory mode.
POJO
          The pojo mode.
RECORD
          The record mode.
 
Method Summary
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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

DEFAULT

public static final GeneratorStrategy.Mode DEFAULT
The default mode. This is used when any Definition's meta type is being rendered.


RECORD

public static final GeneratorStrategy.Mode RECORD
The record mode. This is used when a TableDefinition or a UDTDefinition's record class is being rendered.


POJO

public static final GeneratorStrategy.Mode POJO
The pojo mode. This is used when a TableDefinition's pojo class is being rendered


ENUM

public static final GeneratorStrategy.Mode ENUM
The enum mode. This is used when a EnumDefinition's class is being rendered


FACTORY

public static final GeneratorStrategy.Mode FACTORY
The factory mode. This is used when a SchemaDefinition's factory 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 name
NullPointerException - if the argument is null


Copyright © 2012. All Rights Reserved.