IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

com.ibm.websphere.objectgrid.em
Class FlushModeType

java.lang.Object
  extended by com.ibm.websphere.objectgrid.em.FlushModeType
All Implemented Interfaces:
Serializable

public final class FlushModeType
extends Object
implements Serializable

Used to specify when the flush behavior of an EntityManager query when running within a transaction.

Since:
WAS XD 6.1
See Also:
Query.setFlushMode(FlushModeType), EntityManager.setFlushMode(FlushModeType), Serialized Form

Field Summary
static FlushModeType AUTO
          The persistent context is automatically flushed prior to running the query.
static FlushModeType COMMIT
          The EntityManager's context is not automatically flushed prior to running the query.
 
Method Summary
 boolean equals(Object obj)
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

COMMIT

public static final FlushModeType COMMIT
The EntityManager's context is not automatically flushed prior to running the query.

Updates to the state of the entities in the current persistent context are not visible to the processing of the query.


AUTO

public static final FlushModeType AUTO
The persistent context is automatically flushed prior to running the query.

All updates to the state of all entities in the current persistent context which could potentially affect result of a query are made visible to the processing of the query.

Method Detail

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

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