Enum Class DbObjType
- All Implemented Interfaces:
Serializable,Comparable<DbObjType>,Constable
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 across PostgreSQL, Microsoft SQL, and ClickHouse.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionGets the display name for this database object type.booleanChecks if this database object type is one of the specified types.static DbObjTypeReturns the enum constant of this class with the specified name.static DbObjType[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
DATABASE
-
CAST
-
USER
-
ROLE
-
ASSEMBLY
-
SCHEMA
-
EXTENSION
-
EVENT_TRIGGER
-
FOREIGN_DATA_WRAPPER
-
SERVER
-
USER_MAPPING
-
COLLATION
-
TYPE
-
DOMAIN
-
SEQUENCE
-
OPERATOR
-
FTS_PARSER
-
FTS_TEMPLATE
-
FTS_DICTIONARY
-
FTS_CONFIGURATION
-
TABLE
-
DICTIONARY
-
COLUMN
-
FUNCTION
-
PROCEDURE
-
AGGREGATE
-
INDEX
-
CONSTRAINT
-
VIEW
-
STATISTICS
-
TRIGGER
-
RULE
-
POLICY
-
-
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
-
getTypeName
Gets the display name for this database object type.- Returns:
- the type name as used in SQL statements
-
in
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
-