|
IBM WebSphere Application ServerTM Release 7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
DEFERRED_OPERATION_ALL
|
static int |
DEFERRED_OPERATION_CREATE_ONLY
|
static int |
DEFERRED_OPERATION_NONE
|
static int |
PARTIAL_OPERATION_BOTH
|
static int |
PARTIAL_OPERATION_NONE
|
static int |
PARTIAL_OPERATION_UPDATE_ONLY
|
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
|
static int |
VERIFY_READ_ONLY_DATA_AT_TRAN_BEGIN
|
static int |
VERIFY_READ_ONLY_DATA_AT_TRAN_END
|
static int |
VERIFY_READ_ONLY_DATA_NONE
|
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. |
boolean |
getBatch()
Persistence Option 2: Returns batch intent, which indicates: when DEFERRED_OPERATION_ALL, using database batch update or not to flush the database operations |
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. |
int |
getDeferredOperation()
Persistence Option 1: Returns deferred operation intent, which indicates: DEFERRED_OPERATION_NONE: all ejbCreate/ejbStore/ejbRemove goes immediately to database DEFERRED_OPERATION_CREATE_ONLY , ejbCreate will not insert row into database, but wait till the next ejbStore DEFERRED_OPERATION_ALL, all ejbCreate/ejbStore/ejbRemove will not go to database, until a flush is needed (at the end of transaction or before a finder) current component in the context of the current transaction. |
int |
getPartialOperation()
Persistence Option 3: Returns deferred operation intent, which indicates: DPARTIAL_OPERATION_NONE: ejbLoad/ejbStore will load and store all the fields DPARTIAL_OPERATION_UPDATE_ONLY: ejbStore will store partial fields by group DPARTIAL_OPERATION_BOTH: ejbLoad/ejbStore will both load and store partial fields by group |
int |
getPartialOperationGroup()
Persistence Option 4: Returns partial operation group intent, which indicates When partial operation is not NONE, use the group index determine which set of the fields are loaded or stored |
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. |
int |
getVerifyReadOnlyData()
Persistence Option 5: Returns verify read only data intent, which indicates When LifeTimeInCache is set, when to verify the read only data: VERIFY_READ_ONLY_DATA_NONE: read only data will not be verified VERIFY_READ_ONLY_DATA_AT_TRAN_BEGIN: during ejbLoad, verify the readonly data with database to see if data changed. |
Field Detail |
---|
static final int CONCURRENCY_CONTROL_PESSIMISTIC
static final int CONCURRENCY_CONTROL_OPTIMISTIC
static final int ACCESS_TYPE_UPDATE
static final int ACCESS_TYPE_READ
static final int PESSIMISTIC_UPDATE_LOCK_HINT_NOCOLLISION
static final int PESSIMISTIC_UPDATE_LOCK_HINT_WEAKEST_LOCK_AT_LOAD
static final int PESSIMISTIC_UPDATE_LOCK_HINT_NONE
static final int PESSIMISTIC_UPDATE_LOCK_HINT_EXCLUSIVE
static final int COLLECTION_SCOPE_TRANSACTION
static final int COLLECTION_SCOPE_ACTIVITYSESSION
static final int DEFERRED_OPERATION_NONE
static final int DEFERRED_OPERATION_CREATE_ONLY
static final int DEFERRED_OPERATION_ALL
static final int PARTIAL_OPERATION_NONE
static final int PARTIAL_OPERATION_UPDATE_ONLY
static final int PARTIAL_OPERATION_BOTH
static final int VERIFY_READ_ONLY_DATA_NONE
static final int VERIFY_READ_ONLY_DATA_AT_TRAN_BEGIN
static final int VERIFY_READ_ONLY_DATA_AT_TRAN_END
Method Detail |
---|
int getConcurrencyControl()
int getAccessType()
boolean getPessimisticUpdateHintWeakestLockAtLoad()
boolean getPessimisticUpdateHintNoCollision()
boolean getPessimisticUpdateHintExclusive()
int getPessimisticUpdateLockHint()
int getCollectionScope()
int getCollectionIncrement()
ReadAheadHint getReadAheadHint()
int getResourceManagerPreFetchIncrement()
int getDeferredOperation()
boolean getBatch()
int getPartialOperation()
int getPartialOperationGroup()
int getVerifyReadOnlyData()
|
IBM WebSphere Application ServerTM Release 7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |