|
Oracle Fusion Middleware Java API Reference for Oracle TopLink 11g Release 1 (11.1.1) B32476-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.toplink.descriptors.CMPPolicy
public class CMPPolicy
Description: Place holder for CMP specific information. This class can be set on the ClassDescriptor.
PessimisticLockingPolicy
,
Serialized FormField Summary | |
---|---|
static int |
AFTER_EJBCREATE
issue SQL after ejbCreate but before ejbPostCreate |
static int |
AFTER_EJBPOSTCREATE
issue SQL after ejbPostCreate |
static int |
ALL_MODIFICATIONS
defer all modifications, inserts and deletes included (default) |
static int |
NONE
defer no changes |
static boolean |
OPTIMIZE_PESSIMISTIC_CMP
|
static int |
UNDEFINED
undefined if it is non-deferred issue sql at create |
static int |
UPDATE_MODIFICATIONS
defer updates |
Constructor Summary | |
---|---|
CMPPolicy()
|
Method Summary | |
---|---|
int |
getDeferModificationsUntilCommit()
ADVANCED: This can be used to control when changes to objects are submitted to the database This is only applicable to TopLink's CMP implementation and not available within the core. |
boolean |
getForceUpdate()
ADVANCED: Return true if descriptor is set to always update all registered objects of this type |
java.lang.Class |
getMappedClass()
Answer the mapped class. |
int |
getNonDeferredCreateTime()
ADVANCED: This setting is only available for CMP beans that are not being deferred. |
PessimisticLockingPolicy |
getPessimisticLockingPolicy()
Return the policy for bean pessimistic locking |
boolean |
getUpdateAllFields()
ADVANCED: Return true if descriptor is set to update all fields for an object of this type when an update occurs. |
boolean |
hasPessimisticLockingPolicy()
Return true if bean pessimistic locking is configured |
void |
setDeferModificationsUntilCommit(int deferralLevel)
ADVANCED: This can be set to control when changes to objects are submitted to the database This is only applicable to TopLink's CMP implementation and not available within the core. |
void |
setForceUpdate(boolean shouldForceUpdate)
ADVANCED: Configure whether TopLink should always update all registered objects of this type. |
void |
setMappedClass(java.lang.Class newMappedClass)
Define the mapped class. |
void |
setNonDeferredCreateTime(int createTime)
ADVANCED: This setting is only available for CMP beans that are not being deferred. |
void |
setPessimisticLockingPolicy(PessimisticLockingPolicy policy)
Configure bean pessimistic locking |
void |
setUpdateAllFields(boolean shouldUpdatAllFields)
ADVANCED: Configure whether TopLink should update all fields for an object of this type when an update occurs. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static boolean OPTIMIZE_PESSIMISTIC_CMP
public static final int NONE
CMPPolicy
public static final int UPDATE_MODIFICATIONS
CMPPolicy
public static final int ALL_MODIFICATIONS
CMPPolicy
public static final int UNDEFINED
CMPPolicy
public static final int AFTER_EJBCREATE
CMPPolicy
public static final int AFTER_EJBPOSTCREATE
CMPPolicy
Constructor Detail |
---|
public CMPPolicy()
Method Detail |
---|
public int getNonDeferredCreateTime()
public PessimisticLockingPolicy getPessimisticLockingPolicy()
#oracle.toplink.descriptors.PessimisticLockingPolicy
public void setDeferModificationsUntilCommit(int deferralLevel)
public void setMappedClass(java.lang.Class newMappedClass)
Class
- newMappedClasspublic java.lang.Class getMappedClass()
public void setNonDeferredCreateTime(int createTime)
public void setPessimisticLockingPolicy(PessimisticLockingPolicy policy)
PessimisticLockingPolicy
- policy#oracle.toplink.descriptors.PessimisticLockingPolicy
public boolean hasPessimisticLockingPolicy()
public int getDeferModificationsUntilCommit()
public boolean getForceUpdate()
public void setForceUpdate(boolean shouldForceUpdate)
boolean
- shouldForceUpdatepublic boolean getUpdateAllFields()
public void setUpdateAllFields(boolean shouldUpdatAllFields)
boolean
- shouldUpdatAllFields
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |