|
Oracle Fusion Middleware Java API Reference for Oracle TopLink (Deprecated) 11g Release 1 (11.1.1) B32476-04 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.toplink.sessions.ObjectCopyingPolicy
public class ObjectCopyingPolicy
Purpose: Define how an object is to be copied.
Description: This is for usage with the object copying feature, not the unit of work. This is useful for copying an entire object graph as part of the host application's logic.
Responsibilities:
Session.copyObject(Object, ObjectCopyingPolicy)
Field Summary | |
---|---|
static int |
CASCADE_ALL_PARTS
Depth level indicating that all relationships with mappings should be used when building the copied object graph |
static int |
CASCADE_PRIVATE_PARTS
Depth level indicating that only relationships with mapping indicated privately- owned should be copied |
static int |
NO_CASCADE
Depth level indicating that NO relationships should be included in the copy. |
Constructor Summary | |
---|---|
ObjectCopyingPolicy()
Return a new copying policy. |
Method Summary | |
---|---|
void |
cascadeAllParts()
Set if the copy should cascade all relationships when copying the object(s). |
void |
cascadePrivateParts()
Set if the copy should cascade only those relationships that are configured as privately-owned. |
void |
dontCascade()
Set if the copy should not cascade relationships when copying the object(s) |
void |
setShouldResetPrimaryKey(boolean newShouldResetPrimaryKey)
Set if the primary key should be reset to null. |
boolean |
shouldCascade()
Return true if the policy has been configured to CASCADE_ALL_PARTS or CASCADE_PRIVATE_PARTS. |
boolean |
shouldCascadeAllParts()
Return true if the policy should CASCADE_ALL_PARTS |
boolean |
shouldCascadePrivateParts()
Return true if the policy should CASCADE_PRIVATE_PARTS |
boolean |
shouldResetPrimaryKey()
Return if the primary key should be reset to null. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int NO_CASCADE
ObjectCopyingPolicy
public static final int CASCADE_PRIVATE_PARTS
ObjectCopyingPolicy
public static final int CASCADE_ALL_PARTS
ObjectCopyingPolicy
Constructor Detail |
---|
public ObjectCopyingPolicy()
Method Detail |
---|
public void cascadeAllParts()
public void cascadePrivateParts()
public void dontCascade()
public void setShouldResetPrimaryKey(boolean newShouldResetPrimaryKey)
public boolean shouldCascade()
public boolean shouldCascadeAllParts()
public boolean shouldCascadePrivateParts()
public boolean shouldResetPrimaryKey()
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |