Package oracle.pgx.api.keys
Enum DefaultKeyColumnDescriptors
- java.lang.Object
-
- java.lang.Enum<DefaultKeyColumnDescriptors>
-
- oracle.pgx.api.keys.DefaultKeyColumnDescriptors
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<DefaultKeyColumnDescriptors>,KeyColumnDescriptor
@BetaApi public enum DefaultKeyColumnDescriptors extends java.lang.Enum<DefaultKeyColumnDescriptors> implements KeyColumnDescriptor
Provides implementations ofkey descriptorsfor eachID type. These implementations should only be used for backwards compatibility and only in cases where the key column name is not relevant.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static KeyColumnDescriptorforIdType(IdType idType)java.lang.StringgetName()Get the name of the key column.IdTypegetType()Get the type of the key column.static DefaultKeyColumnDescriptorsvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static DefaultKeyColumnDescriptors[]values()Returns an array containing the constants of this enum type, in the order they are declared.-
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface oracle.pgx.api.keys.KeyColumnDescriptor
asKeyColumnDescriptor
-
-
-
-
Enum Constant Detail
-
INTEGER
public static final DefaultKeyColumnDescriptors INTEGER
-
LONG
public static final DefaultKeyColumnDescriptors LONG
-
STRING
public static final DefaultKeyColumnDescriptors STRING
-
-
Method Detail
-
values
public static DefaultKeyColumnDescriptors[] 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 (DefaultKeyColumnDescriptors c : DefaultKeyColumnDescriptors.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DefaultKeyColumnDescriptors 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 namejava.lang.NullPointerException- if the argument is null
-
getName
public java.lang.String getName()
Description copied from interface:KeyColumnDescriptorGet the name of the key column.- Specified by:
getNamein interfaceKeyColumnDescriptor- Returns:
- Name of the key column.
-
getType
public IdType getType()
Description copied from interface:KeyColumnDescriptorGet the type of the key column.- Specified by:
getTypein interfaceKeyColumnDescriptor- Returns:
- Type of the key column.
-
forIdType
public static KeyColumnDescriptor forIdType(IdType idType)
-
-