Enum DatabasePrefix

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

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

      • 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 Detail

      • DEFAULT_COLUMN_NAME_PRIMARY_KEY

        public static final java.lang.String DEFAULT_COLUMN_NAME_PRIMARY_KEY
        The constant for the default column name for the primary key
        See Also:
        Constant Field Values
      • DEFAULT_REFERENCED_COLUMN_NAME_VALUE

        public static final java.lang.String DEFAULT_REFERENCED_COLUMN_NAME_VALUE
        The constant for the default referenced column name value
        See Also:
        Constant Field Values
      • FOREIGN_KEY_PREFIX

        public static final java.lang.String FOREIGN_KEY_PREFIX
        The constant for the foreign key prefix
        See Also:
        Constant Field Values
      • INDEX_PREFIX

        public static final java.lang.String INDEX_PREFIX
        The constant for the index prefix
        See Also:
        Constant Field Values
      • SEQUENCE_GENERATOR_PREFIX

        public static final java.lang.String SEQUENCE_GENERATOR_PREFIX
        The constant for the sequence generator prefix
        See Also:
        Constant Field Values
      • SEQUENCE_PREFIX

        public static final java.lang.String SEQUENCE_PREFIX
        The constant for the sequence prefix
        See Also:
        Constant Field Values
      • UNDERSCORE

        public static final java.lang.String UNDERSCORE
        The constant for the underscore
        See Also:
        Constant Field Values
      • UNIQUE_CONSTRAINT_PG_PREFIX

        public static final java.lang.String UNIQUE_CONSTRAINT_PG_PREFIX
        The constant for the unique constraint for postgres prefix
        See Also:
        Constant Field Values
      • UNIQUE_CONSTRAINT_PREFIX

        public static final java.lang.String UNIQUE_CONSTRAINT_PREFIX
        The constant for the unique constraint prefix
        See Also:
        Constant Field Values
    • Method Detail

      • values

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

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

        public java.lang.String getName()
        Gets the specific name
        Returns:
        the specific name