Methods Summary |
---|
public boolean | getIsBidirectional()
return isBidirectional;
|
public RelationRoleDescriptor | getSink()
return sink;
|
public RelationRoleDescriptor | getSource()
return source;
|
public boolean | hasParticipant(Descriptor desc)Checks whether an EjbCMPEntityDescriptor
is a participant in this relationship.
return ( (source.getOwner() == desc) || (sink.getOwner() == desc) );
|
public boolean | isManyMany()
return (source.getIsMany() && sink.getIsMany());
|
public boolean | isManyOne()
return (source.getIsMany() && !sink.getIsMany());
|
public boolean | isOneMany()
return (!source.getIsMany() && sink.getIsMany());
|
public boolean | isOneOne()
return (!source.getIsMany() && !sink.getIsMany());
|
public void | print(java.lang.StringBuffer toStringBuffer)
toStringBuffer.append("From EJB ").append(getSource().getName()
).append(" cmr field : ").append(getSource().getCMRField()
).append("(").append(getSource().getCMRFieldType()).append(") to EJB ").append(getSink().getName()
).append(" isMany ").append(getSource().getIsMany()
).append(" cascade-delete ").append(getSource().getCascadeDelete());
|
public void | setIsBidirectional(boolean isBidirectional)
this.isBidirectional = isBidirectional;
|
public void | setSink(RelationRoleDescriptor sink)
this.sink = sink;
|
public void | setSource(RelationRoleDescriptor source)
this.source = source;
|