Enum Class Target

java.lang.Object
java.lang.Enum<Target>
org.hibernate.tool.hbm2ddl.Target
All Implemented Interfaces:
Serializable, Comparable<Target>, Constable

public enum Target extends Enum<Target>
Describes the types of targets for create, drop and update actions
  • Enum Constant Details

    • EXPORT

      public static final Target EXPORT
      Export to the database.
    • SCRIPT

      public static final Target SCRIPT
      Write to a script file.
    • NONE

      public static final Target NONE
      export nowhere
    • BOTH

      public static final Target BOTH
      Do both EXPORT and SCRIPT
  • Method Details

    • values

      public static Target[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Target valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • doExport

      public boolean doExport()
    • doScript

      public boolean doScript()
    • interpret

      public static Target interpret(boolean script, boolean export)