org.eclipse.jpt.core.resource.orm
Enum GenerationType

java.lang.Object
  extended by java.lang.Enum<GenerationType>
      extended by org.eclipse.jpt.core.resource.orm.GenerationType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<GenerationType>, org.eclipse.emf.common.util.Enumerator

public enum GenerationType
extends java.lang.Enum<GenerationType>
implements org.eclipse.emf.common.util.Enumerator

A representation of the literals of the enumeration 'Generation Type', and utility methods for working with them. Provisional API: This interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.

See Also:
OrmPackage.getGenerationType()

Enum Constant Summary
AUTO
          The 'AUTO' literal object.
IDENTITY
          The 'IDENTITY' literal object.
SEQUENCE
          The 'SEQUENCE' literal object.
TABLE
          The 'TABLE' literal object.
 
Field Summary
static int AUTO_VALUE
          The 'AUTO' literal value.
static int IDENTITY_VALUE
          The 'IDENTITY' literal value.
static int SEQUENCE_VALUE
          The 'SEQUENCE' literal value.
static int TABLE_VALUE
          The 'TABLE' literal value.
static java.util.List<GenerationType> VALUES
          A public read-only list of all the 'Generation Type' enumerators.
 
Method Summary
static GenerationType get(int value)
          Returns the 'Generation Type' literal with the specified integer value.
static GenerationType get(java.lang.String literal)
          Returns the 'Generation Type' literal with the specified literal value.
static GenerationType getByName(java.lang.String name)
          Returns the 'Generation Type' literal with the specified name.
 java.lang.String getLiteral()
           
 java.lang.String getName()
           
 int getValue()
           
 java.lang.String toString()
          Returns the literal value of the enumerator, which is its string representation.
static GenerationType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static GenerationType[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

TABLE

public static final GenerationType TABLE
The 'TABLE' literal object.

See Also:
TABLE_VALUE

SEQUENCE

public static final GenerationType SEQUENCE
The 'SEQUENCE' literal object.

See Also:
SEQUENCE_VALUE

IDENTITY

public static final GenerationType IDENTITY
The 'IDENTITY' literal object.

See Also:
IDENTITY_VALUE

AUTO

public static final GenerationType AUTO
The 'AUTO' literal object.

See Also:
AUTO_VALUE
Field Detail

TABLE_VALUE

public static final int TABLE_VALUE
The 'TABLE' literal value.

If the meaning of 'TABLE' literal object isn't clear, there really should be more of a description here...

See Also:
TABLE, Constant Field Values

SEQUENCE_VALUE

public static final int SEQUENCE_VALUE
The 'SEQUENCE' literal value.

If the meaning of 'SEQUENCE' literal object isn't clear, there really should be more of a description here...

See Also:
SEQUENCE, Constant Field Values

IDENTITY_VALUE

public static final int IDENTITY_VALUE
The 'IDENTITY' literal value.

If the meaning of 'IDENTITY' literal object isn't clear, there really should be more of a description here...

See Also:
IDENTITY, Constant Field Values

AUTO_VALUE

public static final int AUTO_VALUE
The 'AUTO' literal value.

If the meaning of 'AUTO' literal object isn't clear, there really should be more of a description here...

See Also:
AUTO, Constant Field Values

VALUES

public static final java.util.List<GenerationType> VALUES
A public read-only list of all the 'Generation Type' enumerators.

Method Detail

values

public static final GenerationType[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(GenerationType c : GenerationType.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static GenerationType 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 name

get

public static GenerationType get(java.lang.String literal)
Returns the 'Generation Type' literal with the specified literal value.


getByName

public static GenerationType getByName(java.lang.String name)
Returns the 'Generation Type' literal with the specified name.


get

public static GenerationType get(int value)
Returns the 'Generation Type' literal with the specified integer value.


getValue

public int getValue()

Specified by:
getValue in interface org.eclipse.emf.common.util.Enumerator

getName

public java.lang.String getName()

Specified by:
getName in interface org.eclipse.emf.common.util.Enumerator

getLiteral

public java.lang.String getLiteral()

Specified by:
getLiteral in interface org.eclipse.emf.common.util.Enumerator

toString

public java.lang.String toString()
Returns the literal value of the enumerator, which is its string representation.

Overrides:
toString in class java.lang.Enum<GenerationType>