|
Oracle TopLink Java API Reference 10g Release 3 (10.1.3.1) B28219-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
oracle.toplink.descriptors.CMPPolicy
Description: Place holder for CMP specific information. This class can be set on the Descriptor.
PessimisticLockingPolicy, Serialized Form| Field Summary | |
static int |
AFTER_EJBCREATEissue SQL after ejbCreate but before ejbPostCreate |
static int |
AFTER_EJBPOSTCREATEissue SQL after ejbPostCreate |
static int |
ALL_MODIFICATIONSdefer all modifications, inserts and deletes included (default) |
static int |
NONEdefer no changes |
static boolean |
OPTIMIZE_PESSIMISTIC_CMP |
static int |
UNDEFINEDundefined if it is non-deferred issue sql at create |
static int |
UPDATE_MODIFICATIONSdefer 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()PUBLIC: Answer the mapped class. |
int |
getNonDeferredCreateTime()ADVANCED: This setting is only available for CMP beans that are not being deferred. |
PessimisticLockingPolicy |
getPessimisticLockingPolicy()PUBLIC: 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()PUBLIC: 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)PUBLIC: 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)PUBLIC: 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
public static final int UPDATE_MODIFICATIONS
public static final int ALL_MODIFICATIONS
public static final int UNDEFINED
public static final int AFTER_EJBCREATE
public static final int AFTER_EJBPOSTCREATE
| Constructor Detail |
public CMPPolicy()
| Method Detail |
public int getNonDeferredCreateTime()
public PessimisticLockingPolicy getPessimisticLockingPolicy()
#oracle.toplink.descriptors.PessimisticLockingPolicypublic void setDeferModificationsUntilCommit(int deferralLevel)
public void setMappedClass(java.lang.Class newMappedClass)
public java.lang.Class getMappedClass()
public void setNonDeferredCreateTime(int createTime)
public void setPessimisticLockingPolicy(PessimisticLockingPolicy policy)
#oracle.toplink.descriptors.PessimisticLockingPolicypublic boolean hasPessimisticLockingPolicy()
public int getDeferModificationsUntilCommit()
public boolean getForceUpdate()
public void setForceUpdate(boolean shouldForceUpdate)
public boolean getUpdateAllFields()
public void setUpdateAllFields(boolean shouldUpdatAllFields)
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||