IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

com.ibm.websphere.projector.annotations
Enum AccessType

java.lang.Object
  extended by java.lang.Enum<AccessType>
      extended by com.ibm.websphere.projector.annotations.AccessType
All Implemented Interfaces:
Serializable, Comparable<AccessType>

public enum AccessType
extends Enum<AccessType>

Overrides or explicitly defines the the method in which the persistence layer accesses the entity's persistent state.

Since:
WAS XD 6.1

Enum Constant Summary
DEFAULT
          The persistent state of the entity object is determined by the placement of the entity's annotations.
FIELD
          The persistent state of the entity object is accessed using fields.
PROPERTY
          The persistent state of the entity object is accessed using methods.
 
Method Summary
static AccessType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static AccessType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

FIELD

public static final AccessType FIELD
The persistent state of the entity object is accessed using fields.


PROPERTY

public static final AccessType PROPERTY
The persistent state of the entity object is accessed using methods.


DEFAULT

public static final AccessType DEFAULT
The persistent state of the entity object is determined by the placement of the entity's annotations.

Method Detail

values

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

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

valueOf

public static AccessType valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

© Copyright International Business Machines Corp 2005,2012. All rights reserved.