Module org.postgresql.pljava
Package org.postgresql.pljava.annotation
Enum Class BaseUDT.PredefinedCategory
java.lang.Object
java.lang.Enum<BaseUDT.PredefinedCategory>
org.postgresql.pljava.annotation.BaseUDT.PredefinedCategory
- All Implemented Interfaces:
Serializable
,Comparable<BaseUDT.PredefinedCategory>
,Constable
- Enclosing class:
BaseUDT
The type categories that are predefined in PostgreSQL.
This enumeration is not used as the type of the
category
element below, because PostgreSQL allows use
of other single-ASCII-character category codes for custom purposes.
Therefore, the annotation can be any such character. PostgreSQL reserves
all of the upper-case ASCII letters to represent current or future
predefined categories, and this enumeration allows mapping between those
and their more readable names.
When one of the predefined categories is wanted for the
category
element, the corresponding character constant
in PredefinedCategory.Code
can be used in the annotation as
a more readable alternative to the one-character code.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Character constants corresponding to the predefined categories, for use in theBaseUDT.category()
annotation element.Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionchar
code()
Return this category's single-character code.static BaseUDT.PredefinedCategory
valueOf
(char code) Return thePredefinedCategory
corresponding to a single-character code as found in the system catalogs, or null if the character represents a custom category (or a predefined one in a PostgreSQL version newer than this class).static BaseUDT.PredefinedCategory
Returns the enum constant of this class with the specified name.static BaseUDT.PredefinedCategory[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ARRAY
-
BOOLEAN
-
COMPOSITE
-
DATETIME
-
ENUM
-
GEOMETRIC
-
NETWORK
-
NUMERIC
-
PSEUDOTYPE
-
RANGE
-
STRING
-
TIMESPAN
-
USER
-
BITSTRING
-
UNKNOWN
-
INTERNAL
-
-
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
-
code
public char code()Return this category's single-character code. -
valueOf
Return thePredefinedCategory
corresponding to a single-character code as found in the system catalogs, or null if the character represents a custom category (or a predefined one in a PostgreSQL version newer than this class).
-