java.lang.Object
java.lang.Enum<DatabasePrefix>
io.github.astrapi69.data.enumeration.DatabasePrefix
All Implemented Interfaces:
Serializable, Comparable<DatabasePrefix>, Constable

public enum DatabasePrefix extends Enum<DatabasePrefix>
The enum DatabasePrefix holds prefixes for sequences, sequence generators, unique constraints, foreign keys and index names
  • Enum Constant Details

    • FOREIGN_KEY_NAME

      public static final DatabasePrefix FOREIGN_KEY_NAME
      The prefix for the foreign key name
    • INDEX_NAME

      public static final DatabasePrefix INDEX_NAME
      The prefix for the index
    • SEQUENCE_GENERATOR_NAME

      public static final DatabasePrefix SEQUENCE_GENERATOR_NAME
      The prefix for the sequence generator name
    • SEQUENCE_NAME

      public static final DatabasePrefix SEQUENCE_NAME
      The prefix for the sequence name
    • UNDERLINE

      public static final DatabasePrefix UNDERLINE
      The underscore for concat prefixes with names
    • UNIQUE_CONSTRAINT_NAME

      public static final DatabasePrefix UNIQUE_CONSTRAINT_NAME
      The prefix for the unique constraint name
    • UNIQUE_CONSTRAINT_PG_NAME

      public static final DatabasePrefix UNIQUE_CONSTRAINT_PG_NAME
      The prefix for the postgres unique constraint name
  • Field Details

    • DEFAULT_COLUMN_NAME_PRIMARY_KEY

      public static final String DEFAULT_COLUMN_NAME_PRIMARY_KEY
      The constant for the default column name for the primary key
      See Also:
    • DEFAULT_REFERENCED_COLUMN_NAME_VALUE

      public static final String DEFAULT_REFERENCED_COLUMN_NAME_VALUE
      The constant for the default referenced column name value
      See Also:
    • FOREIGN_KEY_PREFIX

      public static final String FOREIGN_KEY_PREFIX
      The constant for the foreign key prefix
      See Also:
    • INDEX_PREFIX

      public static final String INDEX_PREFIX
      The constant for the index prefix
      See Also:
    • SEQUENCE_GENERATOR_PREFIX

      public static final String SEQUENCE_GENERATOR_PREFIX
      The constant for the sequence generator prefix
      See Also:
    • SEQUENCE_PREFIX

      public static final String SEQUENCE_PREFIX
      The constant for the sequence prefix
      See Also:
    • UNDERSCORE

      public static final String UNDERSCORE
      The constant for the underscore
      See Also:
    • UNIQUE_CONSTRAINT_PG_PREFIX

      public static final String UNIQUE_CONSTRAINT_PG_PREFIX
      The constant for the unique constraint for postgres prefix
      See Also:
    • UNIQUE_CONSTRAINT_PREFIX

      public static final String UNIQUE_CONSTRAINT_PREFIX
      The constant for the unique constraint prefix
      See Also:
  • Method Details

    • values

      public static DatabasePrefix[] 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 DatabasePrefix 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
    • getName

      public String getName()
      Gets the specific name
      Returns:
      the specific name