|
Java SDK r12.5 SP 8 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RelationshipProvider
Method Summary | |
---|---|
boolean |
getOwnsRelated()
True if the related objects are owned by the primary object. |
ObjectType |
getRelatedObjectType()
Returns the object type of the secondary managed object this relationship provider knows how to relate the primary managed object to |
java.lang.String |
getReverseReferenceAttribute()
Returns the attribute that this relationship is represented by in the reverse direction. |
boolean |
isCopyable()
Flags whether relationship is copyable, and as such references to its related objects will be copied when the object itself is copied |
boolean |
isPersistRelated()
Returns true if the related objects are persisted with the relationship. |
boolean |
isPersistWithPrimary()
Returns true if the relationship should be persisted with its primary object. |
void |
setCopyable(boolean copyable)
Set whether relationship is copyable or not |
void |
setOwnsRelated(boolean ownsRelated)
Set whether the relationship objects are owned by the primary object. |
void |
setPersistRelated(boolean persistRelated)
Overrides the default persistence behavior of the related objects |
void |
setPersistWithPrimary(boolean persistWithPrimary)
Overrides the default persistence behavior or the relationship |
void |
setReverseReferenceAttribute(java.lang.String reverseReferenceAttribute)
Set the reverse reference attribute. |
Method Detail |
---|
ObjectType getRelatedObjectType()
boolean isPersistWithPrimary()
modifyObject
method of the primary object should
call the persist
method of this object.
void setPersistWithPrimary(boolean persistWithPrimary)
persistWithPrimary
- boolean isPersistRelated()
modifyObject
methods of the current objects will be called
during the persist
method of this object. Likewise, deleteObject
will be called on those objects if they are no longer a part of the relationship
and getOwnsRelated()
is true. If false, nothing is done for the related
objects.
void setPersistRelated(boolean persistRelated)
persistRelated
- boolean getOwnsRelated()
void setOwnsRelated(boolean ownsRelated)
java.lang.String getReverseReferenceAttribute()
void setReverseReferenceAttribute(java.lang.String reverseReferenceAttribute)
boolean isCopyable()
void setCopyable(boolean copyable)
|
Java SDK r12.5 SP 8 06/13/2011 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |