IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

com.ibm.websphere.projector.md
Class FetchType

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

public final class FetchType
extends Object
implements Serializable

Defines strategies for fetching data from the TupleStore.

The EAGER strategy instructs the projector to eagerly fetch the data. The LAZY strategy is a hint to the projector to lazily fetch the data when it is first accessed.

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

Field Summary
static FetchType EAGER
          Fetch the data eagerly.
static FetchType LAZY
          Fetch the data lazily.
static FetchType UNDEFINED
          The method in which the data is fetched is undefined.
 
Method Summary
 boolean equals(Object obj)
          Returns true if the input object is equivalent to this FetchType.
 FetchType getFetchType()
          Retreive the value of this FetchType.
 int hashCode()
          Retrieves the hash code of this FetchType object.
 String toString()
          Returns a string representation of the FetchType.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

LAZY

public static final FetchType LAZY
Fetch the data lazily.


EAGER

public static final FetchType EAGER
Fetch the data eagerly.


UNDEFINED

public static final FetchType UNDEFINED
The method in which the data is fetched is undefined.

Method Detail

toString

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

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

getFetchType

public FetchType getFetchType()
Retreive the value of this FetchType. Can be useful when using with a switch statement.

Returns:
the int value of this FetchType.

hashCode

public int hashCode()
Retrieves the hash code of this FetchType 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 FetchType.

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

IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

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