Methods Summary |
---|
public void | cascadeAllParts()PUBLIC:
Set if the copy should cascade all relationships when copying the object(s).
setDepth(CASCADE_ALL_PARTS);
|
public void | cascadePrivateParts()PUBLIC:
Set if the copy should cascade only those relationships that are configured
as privately-owned.
setDepth(CASCADE_PRIVATE_PARTS);
|
public void | dontCascade()PUBLIC:
Set if the copy should not cascade relationships when copying the object(s)
setDepth(NO_CASCADE);
|
public oracle.toplink.essentials.internal.helper.IdentityHashtable | getCopies()INTERNAL: Get the session.
return copies;
|
public int | getDepth()INTERNAL: Return the cascade depth.
return depth;
|
public oracle.toplink.essentials.internal.sessions.AbstractSession | getSession()INTERNAL: Return the session.
return session;
|
public void | setCopies(oracle.toplink.essentials.internal.helper.IdentityHashtable newCopies)INTERNAL: Set the copies.
copies = newCopies;
|
public void | setDepth(int newDepth)INTERNAL: Set the cascade depth.
depth = newDepth;
|
public void | setSession(oracle.toplink.essentials.internal.sessions.AbstractSession newSession)INTERNAL: Set the session.
session = newSession;
|
public void | setShouldResetPrimaryKey(boolean newShouldResetPrimaryKey)PUBLIC:
Set if the primary key should be reset to null.
shouldResetPrimaryKey = newShouldResetPrimaryKey;
|
public boolean | shouldCascade()PUBLIC:
Return true if the policy has been configured to CASCADE_ALL_PARTS or CASCADE_PRIVATE_PARTS.
return getDepth() != NO_CASCADE;
|
public boolean | shouldCascadeAllParts()PUBLIC:
Return true if the policy should CASCADE_ALL_PARTS
return getDepth() == CASCADE_ALL_PARTS;
|
public boolean | shouldCascadePrivateParts()PUBLIC:
Return true if the policy should CASCADE_PRIVATE_PARTS
return getDepth() == CASCADE_PRIVATE_PARTS;
|
public boolean | shouldResetPrimaryKey()PUBLIC:
Return if the primary key should be reset to null.
return shouldResetPrimaryKey;
|
public java.lang.String | toString()INTERNAL:
String depthString = "";
if (shouldCascadeAllParts()) {
depthString = "CASCADE_ALL_PARTS";
} else if (shouldCascadePrivateParts()) {
depthString = "CASCADE_PRIVATE_PARTS";
} else {
depthString = "NO_CASCADING";
}
Object[] args = { depthString, new Boolean(shouldResetPrimaryKey()) };
return Helper.getShortClassName(this) + ToStringLocalization.buildMessage("depth_reset_key", args);
|