ObjectDB ObjectDB

javax.persistence.DiscriminatorType - JPA enum

javax.persistence
Enum DiscriminatorType

java.lang.Object
    java.lang.Enum<javax.persistence.DiscriminatorType>
        javax.persistence.DiscriminatorType
Implemented Interfaces:
Serializable, Comparable<DiscriminatorType>
Defines supported types of the discriminator column.
Since:
JPA 1.0
Single character as the discriminator type.
Single character as the discriminator type.
Since:
JPA 1.0
Integer as the discriminator type.
Integer as the discriminator type.
Since:
JPA 1.0
String as the discriminator type.
String as the discriminator type.
Since:
JPA 1.0
DiscriminatorType valueOf(String name)

Returns the enum constant of this type with the specified 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.

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

Returns an array containing the constants of this enum type.

Returns an array containing the constants of this enum type.

This method may be used to iterate over the constants as follows:

for (DiscriminatorType c : DiscriminatorType.values())
    System.out.println(c)
Returns:
an array containing the constants of this enum type, in the order they are declared