IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

com.ibm.websphere.projector.md
Class AccessType

java.lang.Object
  extended by com.ibm.websphere.projector.md.AccessType
All Implemented Interfaces:
Serializable

public final class AccessType
extends Object
implements Serializable

The method in which the persistent state of an entity is accessed.

Since:
WAS XD 6.1
See Also:
EntityMetadata, Serialized Form

Field Summary
static AccessType FIELD
          The persistent state of the entity object is accessed using fields.
static AccessType PROPERTY
          The persistent state of the entity object is accessed using methods.
static AccessType UNDEFINED
          The method in which the persistent state of an entity is accessed is not defined.
 
Method Summary
 boolean equals(Object obj)
          Returns true if the input object is equivalent to this AccessType.
 int getAccessType()
          Retreive the value of this AccessType.
 int hashCode()
          Retrieves the hash code of this AccessType object.
 String toString()
          Returns a string representation of the AccessType.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field 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.


UNDEFINED

public static final AccessType UNDEFINED
The method in which the persistent state of an entity is accessed is not defined.

Method Detail

toString

public String toString()
Returns a string representation of the AccessType.

Overrides:
toString in class Object
Returns:
a string representation of the AccessType.

getAccessType

public int getAccessType()
Retreive the value of this AccessType. Can be useful when using with a switch statement.

Returns:
the int value of this AccessType.

hashCode

public int hashCode()
Retrieves the hash code of this AccessType object.

Overrides:
hashCode in class Object
Returns:
the hash code value of this object.

equals

public boolean equals(Object obj)
Returns true if the input object is equivalent to this AccessType.

Overrides:
equals in class Object
Parameters:
obj - the object with which to compare.
Returns:
true if the input Object is equivalent to this AccessType

IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

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