com.ibm.websphere.appprofile.accessintent
Interface AccessIntent
- public interface AccessIntent
Field Summary
Modifier and Type | Field and Description |
---|---|
|
ACCESS_TYPE_READ
|
|
ACCESS_TYPE_UPDATE
|
|
COLLECTION_SCOPE_ACTIVITYSESSION
|
|
COLLECTION_SCOPE_TRANSACTION
|
|
CONCURRENCY_CONTROL_OPTIMISTIC
|
|
CONCURRENCY_CONTROL_PESSIMISTIC
|
|
DEFERRED_OPERATION_ALL
|
|
DEFERRED_OPERATION_CREATE_ONLY
|
|
DEFERRED_OPERATION_NONE
|
|
PARTIAL_OPERATION_BOTH
|
|
PARTIAL_OPERATION_NONE
|
|
PARTIAL_OPERATION_UPDATE_ONLY
|
|
PESSIMISTIC_UPDATE_LOCK_HINT_EXCLUSIVE
|
|
PESSIMISTIC_UPDATE_LOCK_HINT_NOCOLLISION
|
|
PESSIMISTIC_UPDATE_LOCK_HINT_NONE
|
|
PESSIMISTIC_UPDATE_LOCK_HINT_WEAKEST_LOCK_AT_LOAD
|
|
VERIFY_READ_ONLY_DATA_AT_TRAN_BEGIN
|
|
VERIFY_READ_ONLY_DATA_AT_TRAN_END
|
|
VERIFY_READ_ONLY_DATA_NONE
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
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.
|
|
getBatch()
Persistence Option 2:
Returns batch intent, which indicates:
when DEFERRED_OPERATION_ALL, using database batch update or not to flush the database operations
|
|
getCollectionIncrement()
Returns the number of elements the application requests be contained in each segment of the
element collection returned by the currently executing finder.
|
|
getCollectionScope()
Returns the collection scope, which indicates the maximum lifespan of a lazy collection.
|
|
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.
|
|
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.
|
|
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()
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
|
|
getPessimisticUpdateHintExclusive()
Deprecated.
|
|
getPessimisticUpdateHintNoCollision()
Deprecated.
|
|
getPessimisticUpdateHintWeakestLockAtLoad()
Deprecated.
|
|
getPessimisticUpdateLockHint()
|
getReadAheadHint()
Returns the ReadAheadHint requested by the application for the currently executing finder.
|
|
|
getResourceManagerPreFetchIncrement()
Returns the number of elements the application requests be contained in each segment of a
a query made on a database.
|
|
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
- static final int CONCURRENCY_CONTROL_PESSIMISTIC
See Also:
CONCURRENCY_CONTROL_OPTIMISTIC
- static final int CONCURRENCY_CONTROL_OPTIMISTIC
See Also:
ACCESS_TYPE_UPDATE
- static final int ACCESS_TYPE_UPDATE
See Also:
ACCESS_TYPE_READ
- static final int ACCESS_TYPE_READ
See Also:
PESSIMISTIC_UPDATE_LOCK_HINT_NOCOLLISION
- static final int PESSIMISTIC_UPDATE_LOCK_HINT_NOCOLLISION
See Also:
PESSIMISTIC_UPDATE_LOCK_HINT_WEAKEST_LOCK_AT_LOAD
- static final int PESSIMISTIC_UPDATE_LOCK_HINT_WEAKEST_LOCK_AT_LOAD
See Also:
PESSIMISTIC_UPDATE_LOCK_HINT_NONE
- static final int PESSIMISTIC_UPDATE_LOCK_HINT_NONE
See Also:
PESSIMISTIC_UPDATE_LOCK_HINT_EXCLUSIVE
- static final int PESSIMISTIC_UPDATE_LOCK_HINT_EXCLUSIVE
See Also:
COLLECTION_SCOPE_TRANSACTION
- static final int COLLECTION_SCOPE_TRANSACTION
See Also:
COLLECTION_SCOPE_ACTIVITYSESSION
- static final int COLLECTION_SCOPE_ACTIVITYSESSION
See Also:
DEFERRED_OPERATION_NONE
- static final int DEFERRED_OPERATION_NONE
See Also:
DEFERRED_OPERATION_CREATE_ONLY
- static final int DEFERRED_OPERATION_CREATE_ONLY
See Also:
DEFERRED_OPERATION_ALL
- static final int DEFERRED_OPERATION_ALL
See Also:
PARTIAL_OPERATION_NONE
- static final int PARTIAL_OPERATION_NONE
See Also:
PARTIAL_OPERATION_UPDATE_ONLY
- static final int PARTIAL_OPERATION_UPDATE_ONLY
See Also:
PARTIAL_OPERATION_BOTH
- static final int PARTIAL_OPERATION_BOTH
See Also:
VERIFY_READ_ONLY_DATA_NONE
- static final int VERIFY_READ_ONLY_DATA_NONE
See Also:
VERIFY_READ_ONLY_DATA_AT_TRAN_BEGIN
- static final int VERIFY_READ_ONLY_DATA_AT_TRAN_BEGIN
See Also:
VERIFY_READ_ONLY_DATA_AT_TRAN_END
- static final int VERIFY_READ_ONLY_DATA_AT_TRAN_END
See Also:
Method Detail
getConcurrencyControl
- 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
- 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
- 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
- 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
- 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
- int getPessimisticUpdateLockHint( )
getCollectionScope
- int getCollectionScope()
Returns the collection scope, which indicates the maximum lifespan of a lazy collection.
getCollectionIncrement
- 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
- ReadAheadHint getReadAheadHint( )
Returns the ReadAheadHint requested by the application for the currently executing finder.
getResourceManagerPreFetchIncrement
- int getResourceManagerPreFetchIncrement( )
Returns the number of elements the application requests be contained in each segment of a
a query made on a database.
getDeferredOperation
- 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
- 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
- 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
- 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
- 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.