Enum Class DbObjType

java.lang.Object
java.lang.Enum<DbObjType>
org.pgcodekeeper.core.database.api.schema.DbObjType
All Implemented Interfaces:
Serializable, Comparable<DbObjType>, Constable

public enum DbObjType extends Enum<DbObjType>
Enumeration of database object types. The order defined here is used when building the list of objects for deployment. Covers all major database object types.
  • Enum Constant Details

    • DATABASE

      public static final DbObjType DATABASE
    • CAST

      public static final DbObjType CAST
    • USER

      public static final DbObjType USER
    • ROLE

      public static final DbObjType ROLE
    • ASSEMBLY

      public static final DbObjType ASSEMBLY
    • SCHEMA

      public static final DbObjType SCHEMA
    • EXTENSION

      public static final DbObjType EXTENSION
    • EVENT_TRIGGER

      public static final DbObjType EVENT_TRIGGER
    • FOREIGN_DATA_WRAPPER

      public static final DbObjType FOREIGN_DATA_WRAPPER
    • SERVER

      public static final DbObjType SERVER
    • USER_MAPPING

      public static final DbObjType USER_MAPPING
    • COLLATION

      public static final DbObjType COLLATION
    • TYPE

      public static final DbObjType TYPE
    • DOMAIN

      public static final DbObjType DOMAIN
    • SEQUENCE

      public static final DbObjType SEQUENCE
    • OPERATOR

      public static final DbObjType OPERATOR
    • FTS_PARSER

      public static final DbObjType FTS_PARSER
    • FTS_TEMPLATE

      public static final DbObjType FTS_TEMPLATE
    • FTS_DICTIONARY

      public static final DbObjType FTS_DICTIONARY
    • FTS_CONFIGURATION

      public static final DbObjType FTS_CONFIGURATION
    • TABLE

      public static final DbObjType TABLE
    • DICTIONARY

      public static final DbObjType DICTIONARY
    • COLUMN

      public static final DbObjType COLUMN
    • FUNCTION

      public static final DbObjType FUNCTION
    • PROCEDURE

      public static final DbObjType PROCEDURE
    • AGGREGATE

      public static final DbObjType AGGREGATE
    • INDEX

      public static final DbObjType INDEX
    • CONSTRAINT

      public static final DbObjType CONSTRAINT
    • VIEW

      public static final DbObjType VIEW
    • STATISTICS

      public static final DbObjType STATISTICS
    • TRIGGER

      public static final DbObjType TRIGGER
    • RULE

      public static final DbObjType RULE
    • POLICY

      public static final DbObjType POLICY
  • Method Details

    • values

      public static DbObjType[] 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 DbObjType 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
    • getTypeName

      public String getTypeName()
      Gets the display name for this database object type.
      Returns:
      the type name as used in SQL statements
    • in

      public boolean in(DbObjType... types)
      Checks if this database object type is one of the specified types.
      Parameters:
      types - the types to check against
      Returns:
      true if this type matches any of the specified types, false otherwise