Enum Entity2DDL

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Entity2DDL>

    public enum Entity2DDL
    extends java.lang.Enum<Entity2DDL>
    Configuration key is spring.data.dynamodb.entity2ddl.auto Inspired by Hibernate's hbm2ddl
    See Also:
    Hibernate User Guide
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      CREATE
      Database dropping will be generated followed by database creation on ApplicationContext startup.
      CREATE_DROP
      Drop the schema and recreate it on ApplicationContext startup.
      CREATE_ONLY
      Database creation will be generated on ApplicationContext startup.
      DROP
      Database dropping will be generated on ApplicationContext shutdown.
      NONE
      No action will be performed.
      VALIDATE
      Validate the database schema
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static Entity2DDL fromValue​(java.lang.String value)
      Use this in place of valueOf.
      java.lang.String getConfigurationValue()  
      static Entity2DDL valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static Entity2DDL[] 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

      • NONE

        public static final Entity2DDL NONE
        No action will be performed.
      • CREATE_ONLY

        public static final Entity2DDL CREATE_ONLY
        Database creation will be generated on ApplicationContext startup.
      • DROP

        public static final Entity2DDL DROP
        Database dropping will be generated on ApplicationContext shutdown.
      • CREATE

        public static final Entity2DDL CREATE
        Database dropping will be generated followed by database creation on ApplicationContext startup.
      • CREATE_DROP

        public static final Entity2DDL CREATE_DROP
        Drop the schema and recreate it on ApplicationContext startup. Additionally, drop the schema on ApplicationContext shutdown.
      • VALIDATE

        public static final Entity2DDL VALIDATE
        Validate the database schema
    • Method Detail

      • values

        public static Entity2DDL[] 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 (Entity2DDL c : Entity2DDL.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Entity2DDL valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getConfigurationValue

        public java.lang.String getConfigurationValue()
      • fromValue

        public static Entity2DDL fromValue​(java.lang.String value)
        Use this in place of valueOf.
        Parameters:
        value - real value
        Returns:
        Entity2DDL corresponding to the value
        Throws:
        java.lang.IllegalArgumentException - If the specified value does not map to one of the known values in this enum.