Enum Entity2DDL
- java.lang.Object
-
- java.lang.Enum<Entity2DDL>
-
- org.socialsignin.spring.data.dynamodb.repository.util.Entity2DDL
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Entity2DDL>
public enum Entity2DDL extends java.lang.Enum<Entity2DDL>
Configuration key isspring.data.dynamodb.entity2ddl.autoInspired by Hibernate's hbm2ddl- See Also:
- Hibernate User Guide
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CREATEDatabase dropping will be generated followed by database creation on ApplicationContext startup.CREATE_DROPDrop the schema and recreate it on ApplicationContext startup.CREATE_ONLYDatabase creation will be generated on ApplicationContext startup.DROPDatabase dropping will be generated on ApplicationContext shutdown.NONENo action will be performed.VALIDATEValidate the database schema
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Entity2DDLfromValue(java.lang.String value)Use this in place of valueOf.java.lang.StringgetConfigurationValue()static Entity2DDLvalueOf(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.
-
-
-
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 namejava.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.
-
-