Enum Class DatabasePrefix
- All Implemented Interfaces:
Serializable
,Comparable<DatabasePrefix>
,Constable
The enum
DatabasePrefix
holds prefixes for sequences, sequence generators, unique
constraints, foreign keys and index names-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe prefix for the foreign key nameThe prefix for the indexThe prefix for the sequence generator nameThe prefix for the sequence nameThe underscore for concat prefixes with namesThe prefix for the unique constraint nameThe prefix for the postgres unique constraint name -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The constant for the default column name for the primary keystatic final String
The constant for the default referenced column name valuestatic final String
The constant for the foreign key prefixstatic final String
The constant for the index prefixstatic final String
The constant for the sequence generator prefixstatic final String
The constant for the sequence prefixstatic final String
The constant for the underscorestatic final String
The constant for the unique constraint for postgres prefixstatic final String
The constant for the unique constraint prefix -
Method Summary
Modifier and TypeMethodDescriptiongetName()
Gets the specific namestatic DatabasePrefix
Returns the enum constant of this class with the specified name.static DatabasePrefix[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FOREIGN_KEY_NAME
The prefix for the foreign key name -
INDEX_NAME
The prefix for the index -
SEQUENCE_GENERATOR_NAME
The prefix for the sequence generator name -
SEQUENCE_NAME
The prefix for the sequence name -
UNDERLINE
The underscore for concat prefixes with names -
UNIQUE_CONSTRAINT_NAME
The prefix for the unique constraint name -
UNIQUE_CONSTRAINT_PG_NAME
The prefix for the postgres unique constraint name
-
-
Field Details
-
DEFAULT_COLUMN_NAME_PRIMARY_KEY
The constant for the default column name for the primary key- See Also:
-
DEFAULT_REFERENCED_COLUMN_NAME_VALUE
The constant for the default referenced column name value- See Also:
-
FOREIGN_KEY_PREFIX
The constant for the foreign key prefix- See Also:
-
INDEX_PREFIX
The constant for the index prefix- See Also:
-
SEQUENCE_GENERATOR_PREFIX
The constant for the sequence generator prefix- See Also:
-
SEQUENCE_PREFIX
The constant for the sequence prefix- See Also:
-
UNDERSCORE
The constant for the underscore- See Also:
-
UNIQUE_CONSTRAINT_PG_PREFIX
The constant for the unique constraint for postgres prefix- See Also:
-
UNIQUE_CONSTRAINT_PREFIX
The constant for the unique constraint prefix- See Also:
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
getName
Gets the specific name- Returns:
- the specific name
-