com.ibm.websphere.appprofile.accessintent

Interface AccessIntent


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

Modifier and Type Field and Description
  1. static
  2. int
ACCESS_TYPE_READ
  1. static
  2. int
ACCESS_TYPE_UPDATE
  1. static
  2. int
COLLECTION_SCOPE_ACTIVITYSESSION
  1. static
  2. int
COLLECTION_SCOPE_TRANSACTION
  1. static
  2. int
CONCURRENCY_CONTROL_OPTIMISTIC
  1. static
  2. int
CONCURRENCY_CONTROL_PESSIMISTIC
  1. static
  2. int
DEFERRED_OPERATION_ALL
  1. static
  2. int
DEFERRED_OPERATION_CREATE_ONLY
  1. static
  2. int
DEFERRED_OPERATION_NONE
  1. static
  2. int
PARTIAL_OPERATION_BOTH
  1. static
  2. int
PARTIAL_OPERATION_NONE
  1. static
  2. int
PARTIAL_OPERATION_UPDATE_ONLY
  1. static
  2. int
PESSIMISTIC_UPDATE_LOCK_HINT_EXCLUSIVE
  1. static
  2. int
PESSIMISTIC_UPDATE_LOCK_HINT_NOCOLLISION
  1. static
  2. int
PESSIMISTIC_UPDATE_LOCK_HINT_NONE
  1. static
  2. int
PESSIMISTIC_UPDATE_LOCK_HINT_WEAKEST_LOCK_AT_LOAD
  1. static
  2. int
VERIFY_READ_ONLY_DATA_AT_TRAN_BEGIN
  1. static
  2. int
VERIFY_READ_ONLY_DATA_AT_TRAN_END
  1. static
  2. int
VERIFY_READ_ONLY_DATA_NONE

Method Summary

Modifier and Type Method and Description
  1. 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.
  1. 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
  1. 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.
  1. int
getCollectionScope()
Returns the collection scope, which indicates the maximum lifespan of a lazy collection.
  1. 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.
  1. 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.
  1. 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
  1. 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
  1. boolean
getPessimisticUpdateHintExclusive()
Deprecated.
  1. boolean
getPessimisticUpdateHintNoCollision()
Deprecated.
  1. boolean
getPessimisticUpdateHintWeakestLockAtLoad()
Deprecated.
  1. int
getPessimisticUpdateLockHint()
  1. ReadAheadHint
getReadAheadHint()
Returns the ReadAheadHint requested by the application for the currently executing finder.
  1. int
getResourceManagerPreFetchIncrement()
Returns the number of elements the application requests be contained in each segment of a a query made on a database.
  1. 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

CONCURRENCY_CONTROL_PESSIMISTIC

  1. static final int CONCURRENCY_CONTROL_PESSIMISTIC
See Also:

CONCURRENCY_CONTROL_OPTIMISTIC

  1. static final int CONCURRENCY_CONTROL_OPTIMISTIC
See Also:

ACCESS_TYPE_UPDATE

  1. static final int ACCESS_TYPE_UPDATE
See Also:

ACCESS_TYPE_READ

  1. static final int ACCESS_TYPE_READ
See Also:

PESSIMISTIC_UPDATE_LOCK_HINT_NOCOLLISION

  1. static final int PESSIMISTIC_UPDATE_LOCK_HINT_NOCOLLISION
See Also:

PESSIMISTIC_UPDATE_LOCK_HINT_WEAKEST_LOCK_AT_LOAD

  1. static final int PESSIMISTIC_UPDATE_LOCK_HINT_WEAKEST_LOCK_AT_LOAD
See Also:

PESSIMISTIC_UPDATE_LOCK_HINT_NONE

  1. static final int PESSIMISTIC_UPDATE_LOCK_HINT_NONE
See Also:

PESSIMISTIC_UPDATE_LOCK_HINT_EXCLUSIVE

  1. static final int PESSIMISTIC_UPDATE_LOCK_HINT_EXCLUSIVE
See Also:

COLLECTION_SCOPE_TRANSACTION

  1. static final int COLLECTION_SCOPE_TRANSACTION
See Also:

COLLECTION_SCOPE_ACTIVITYSESSION

  1. static final int COLLECTION_SCOPE_ACTIVITYSESSION
See Also:

DEFERRED_OPERATION_NONE

  1. static final int DEFERRED_OPERATION_NONE
See Also:

DEFERRED_OPERATION_CREATE_ONLY

  1. static final int DEFERRED_OPERATION_CREATE_ONLY
See Also:

DEFERRED_OPERATION_ALL

  1. static final int DEFERRED_OPERATION_ALL
See Also:

PARTIAL_OPERATION_NONE

  1. static final int PARTIAL_OPERATION_NONE
See Also:

PARTIAL_OPERATION_UPDATE_ONLY

  1. static final int PARTIAL_OPERATION_UPDATE_ONLY
See Also:

PARTIAL_OPERATION_BOTH

  1. static final int PARTIAL_OPERATION_BOTH
See Also:

VERIFY_READ_ONLY_DATA_NONE

  1. static final int VERIFY_READ_ONLY_DATA_NONE
See Also:

VERIFY_READ_ONLY_DATA_AT_TRAN_BEGIN

  1. static final int VERIFY_READ_ONLY_DATA_AT_TRAN_BEGIN
See Also:

VERIFY_READ_ONLY_DATA_AT_TRAN_END

  1. static final int VERIFY_READ_ONLY_DATA_AT_TRAN_END
See Also:

Method Detail

getConcurrencyControl

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

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

  1. 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:
true indicates the data should be fetched with the weakest lock available.

getPessimisticUpdateHintNoCollision

  1. boolean getPessimisticUpdateHintNoCollision( )
Deprecated.
Returns a boolean where true indicates that the container should assume that there will be no collision on retrieved rows.
Returns:
true indicates the container should assume there will be no collision on retrieved rows.

getPessimisticUpdateHintExclusive

  1. boolean getPessimisticUpdateHintExclusive( )
Deprecated.
Returns a boolean where true indicates that the container should assume that there will be collisions on retrieved rows.
Returns:
indicates the container should assume there will be collisions on retrieved rows.

getPessimisticUpdateLockHint

  1. int getPessimisticUpdateLockHint( )

getCollectionScope

  1. int getCollectionScope()
Returns the collection scope, which indicates the maximum lifespan of a lazy collection.

getCollectionIncrement

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

  1. ReadAheadHint getReadAheadHint( )
Returns the ReadAheadHint requested by the application for the currently executing finder.

getResourceManagerPreFetchIncrement

  1. int getResourceManagerPreFetchIncrement( )
Returns the number of elements the application requests be contained in each segment of a a query made on a database.

getDeferredOperation

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

getBatch

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

getPartialOperation

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

getPartialOperationGroup

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

getVerifyReadOnlyData

  1. 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. VERIFY_READ_ONLY_DATA_AT_TRAN_END: at the end of transaction m verify the readonly data with database to see if data changed.