org.eclipse.jpt.jpa.eclipselink.core.resource.orm
Enum CacheType

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

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

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.

Since:
2.1
Version:
2.1
See Also:
EclipseLinkOrmPackage.getCacheType()

Enum Constant Summary
CACHE
          The 'CACHE' literal object.
FULL
          The 'FULL' literal object.
HARD_WEAK
          The 'HARD WEAK' literal object.
NONE
          The 'NONE' literal object.
SOFT
          The 'SOFT' literal object.
SOFT_WEAK
          The 'SOFT WEAK' literal object.
WEAK
          The 'WEAK' literal object.
 
Field Summary
static int CACHE_VALUE
          The 'CACHE' literal value.
static int FULL_VALUE
          The 'FULL' literal value.
static int HARD_WEAK_VALUE
          The 'HARD WEAK' literal value.
static int NONE_VALUE
          The 'NONE' literal value.
static int SOFT_VALUE
          The 'SOFT' literal value.
static int SOFT_WEAK_VALUE
          The 'SOFT WEAK' literal value.
static java.util.List<CacheType> VALUES
          A public read-only list of all the 'Cache Type' enumerators.
static int WEAK_VALUE
          The 'WEAK' literal value.
 
Method Summary
static CacheType get(int value)
          Returns the 'Cache Type' literal with the specified integer value.
static CacheType get(java.lang.String literal)
          Returns the 'Cache Type' literal with the specified literal value.
static CacheType getByName(java.lang.String name)
          Returns the 'Cache 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 CacheType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static CacheType[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

FULL

public static final CacheType FULL
The 'FULL' literal object.

See Also:
FULL_VALUE

WEAK

public static final CacheType WEAK
The 'WEAK' literal object.

See Also:
WEAK_VALUE

SOFT

public static final CacheType SOFT
The 'SOFT' literal object.

See Also:
SOFT_VALUE

SOFT_WEAK

public static final CacheType SOFT_WEAK
The 'SOFT WEAK' literal object.

See Also:
SOFT_WEAK_VALUE

HARD_WEAK

public static final CacheType HARD_WEAK
The 'HARD WEAK' literal object.

See Also:
HARD_WEAK_VALUE

CACHE

public static final CacheType CACHE
The 'CACHE' literal object.

See Also:
CACHE_VALUE

NONE

public static final CacheType NONE
The 'NONE' literal object.

See Also:
NONE_VALUE
Field Detail

FULL_VALUE

public static final int FULL_VALUE
The 'FULL' literal value.

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

See Also:
FULL, Constant Field Values

WEAK_VALUE

public static final int WEAK_VALUE
The 'WEAK' literal value.

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

See Also:
WEAK, Constant Field Values

SOFT_VALUE

public static final int SOFT_VALUE
The 'SOFT' literal value.

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

See Also:
SOFT, Constant Field Values

SOFT_WEAK_VALUE

public static final int SOFT_WEAK_VALUE
The 'SOFT WEAK' literal value.

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

See Also:
SOFT_WEAK, Constant Field Values

HARD_WEAK_VALUE

public static final int HARD_WEAK_VALUE
The 'HARD WEAK' literal value.

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

See Also:
HARD_WEAK, Constant Field Values

CACHE_VALUE

public static final int CACHE_VALUE
The 'CACHE' literal value.

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

See Also:
CACHE, Constant Field Values

NONE_VALUE

public static final int NONE_VALUE
The 'NONE' literal value.

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

See Also:
NONE, Constant Field Values

VALUES

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

Method Detail

values

public static CacheType[] 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 (CacheType c : CacheType.values())
    System.out.println(c);

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

valueOf

public static CacheType 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
java.lang.NullPointerException - if the argument is null

get

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


getByName

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


get

public static CacheType get(int value)
Returns the 'Cache 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<CacheType>