com.ibm.websphere.appprofile.accessintent
Interface AccessIntent
- public interface AccessIntent
This interface defines the essential access intents available at runtime. The intents are specified in a named component profile and selected by the EJB container at runtime by mapping an application profile task name to the set of available component policies.
Field Summary static int ACCESS_TYPE_READ
static int ACCESS_TYPE_UPDATE
static int COLLECTION_SCOPE_ACTIVITYSESSION
static int COLLECTION_SCOPE_TRANSACTION
static int CONCURRENCY_CONTROL_OPTIMISTIC
static int CONCURRENCY_CONTROL_PESSIMISTIC
static int PESSIMISTIC_UPDATE_LOCK_HINT_EXCLUSIVE
static int PESSIMISTIC_UPDATE_LOCK_HINT_NOCOLLISION
static int PESSIMISTIC_UPDATE_LOCK_HINT_NONE
static int PESSIMISTIC_UPDATE_LOCK_HINT_WEAKEST_LOCK_AT_LOAD
Method Summary int getAccessType()
Returns access type intent, which indicates the application intends either update or read accesss of the current component in the context of the current transaction.int getCollectionIncrement()
Returns the number of elements the application requests be contained in each segment of the element collection returned by the currently executing finder.int getCollectionScope()
Returns the collection scope, which indicates the maximum lifespan of a lazy collection.int getConcurrencyControl()
Returns the concurrency control intent, which indicates the application prefers either pessimistic or optimistic concurrency control when accessing the current component in the context of the current transaction.boolean getPessimisticUpdateHintExclusive()
Deprecated.boolean getPessimisticUpdateHintNoCollision()
Deprecated.boolean getPessimisticUpdateHintWeakestLockAtLoad()
Deprecated.int getPessimisticUpdateLockHint()
ReadAheadHint getReadAheadHint()
Returns the ReadAheadHint requested by the application for the currently executing finder.int getResourceManagerPreFetchIncrement()
Returns the number of elements the application requests be contained in each segment of a a query made on a database.
Field Detail CONCURRENCY_CONTROL_PESSIMISTIC
public static final int CONCURRENCY_CONTROL_PESSIMISTIC
- See Also:
- Constant Field Values
CONCURRENCY_CONTROL_OPTIMISTIC
public static final int CONCURRENCY_CONTROL_OPTIMISTIC
- See Also:
- Constant Field Values
ACCESS_TYPE_UPDATE
public static final int ACCESS_TYPE_UPDATE
- See Also:
- Constant Field Values
ACCESS_TYPE_READ
public static final int ACCESS_TYPE_READ
- See Also:
- Constant Field Values
PESSIMISTIC_UPDATE_LOCK_HINT_NOCOLLISION
public static final int PESSIMISTIC_UPDATE_LOCK_HINT_NOCOLLISION
- See Also:
- Constant Field Values
PESSIMISTIC_UPDATE_LOCK_HINT_WEAKEST_LOCK_AT_LOAD
public static final int PESSIMISTIC_UPDATE_LOCK_HINT_WEAKEST_LOCK_AT_LOAD
- See Also:
- Constant Field Values
PESSIMISTIC_UPDATE_LOCK_HINT_NONE
public static final int PESSIMISTIC_UPDATE_LOCK_HINT_NONE
- See Also:
- Constant Field Values
PESSIMISTIC_UPDATE_LOCK_HINT_EXCLUSIVE
public static final int PESSIMISTIC_UPDATE_LOCK_HINT_EXCLUSIVE
- See Also:
- Constant Field Values
COLLECTION_SCOPE_TRANSACTION
public static final int COLLECTION_SCOPE_TRANSACTION
- See Also:
- Constant Field Values
COLLECTION_SCOPE_ACTIVITYSESSION
public static final int COLLECTION_SCOPE_ACTIVITYSESSION
- See Also:
- Constant Field Values
Method Detail getConcurrencyControl
public int getConcurrencyControl()
- Returns the concurrency control intent, which indicates the application prefers either pessimistic or optimistic concurrency control when accessing the current component in the context of the current transaction.
getAccessType
public int getAccessType()
- Returns access type intent, which indicates the application intends either update or read accesss of the current component in the context of the current transaction.
getPessimisticUpdateHintWeakestLockAtLoad
public boolean getPessimisticUpdateHintWeakestLockAtLoad()
- Deprecated.
- Returns a boolean where true indicates that data should be fetched with the weakest lock available; updates may result in lock escalation at store.
- Returns:
getPessimisticUpdateHintNoCollision
public boolean getPessimisticUpdateHintNoCollision()
- Deprecated.
- Returns a boolean where true indicates that the container should assume that there will be no collision on retrieved rows.
- Returns:
getPessimisticUpdateHintExclusive
public boolean getPessimisticUpdateHintExclusive()
- Deprecated.
- Returns a boolean where true indicates that the container should assume that there will be collisions on retrieved rows.
- Returns:
getPessimisticUpdateLockHint
public int getPessimisticUpdateLockHint()
getCollectionScope
public int getCollectionScope()
- Returns the collection scope, which indicates the maximum lifespan of a lazy collection.
getCollectionIncrement
public int getCollectionIncrement()
- Returns the number of elements the application requests be contained in each segment of the element collection returned by the currently executing finder.
getReadAheadHint
public ReadAheadHint getReadAheadHint()
- Returns the ReadAheadHint requested by the application for the currently executing finder.
getResourceManagerPreFetchIncrement
public int getResourceManagerPreFetchIncrement()
- Returns the number of elements the application requests be contained in each segment of a a query made on a database.
WebSphere is a trademark of the IBM Corporation in the United States, other countries, or both.
IBM is a trademark of the IBM Corporation in the United States, other countries, or both.