Methods Summary |
---|
public java.lang.String | composeReverseCmrFieldName()
EjbCMPEntityDescriptor cmpDesc = getPartner().getOwner();
String reverseCmrFieldName = "_" + cmpDesc.getName() +
"_" + getPartner().getCMRField();
return reverseCmrFieldName;
|
public java.lang.String | getCMRField()
return cmrField;
|
public java.lang.String | getCMRFieldDescription()
if ( cmrFieldDescription == null )
cmrFieldDescription = "";
return cmrFieldDescription;
|
public CMRFieldInfo | getCMRFieldInfo()
if ( cmrFieldInfo == null && pers != null )
pers.getCMRFieldInfo(); // tell pers to initialize its CMRFieldInfos
return cmrFieldInfo;
|
public java.lang.String | getCMRFieldType()
return cmrFieldType;
|
public boolean | getCascadeDelete()
return cascadeDelete;
|
public boolean | getIsMany()
return isMany;
|
public EjbCMPEntityDescriptor | getOwner()
return owner;
|
public com.sun.enterprise.deployment.RelationRoleDescriptor | getPartner()The other role in the relationship I participate in.
return partner;
|
public PersistenceDescriptor | getPersistenceDescriptor()May return null if the role-source for this relationship role
is a remote-ejb-name
return pers;
|
public java.lang.String | getRelationRoleName()
return relationRoleName;
|
public RelationshipDescriptor | getRelationshipDescriptor()
return relnDesc;
|
public java.lang.String | getRoleSourceDescription()
if ( roleSourceDescription == null )
roleSourceDescription = "";
return roleSourceDescription;
|
private void | invalidateCMRFieldStuff()
cmrFieldInfo = null;
if( pers != null ) {
pers.invalidate();
}
|
public void | setCMRField(java.lang.String cmrField)Set to NULL to indicate no cmr field
this.cmrField = cmrField;
invalidateCMRFieldStuff();
|
public void | setCMRFieldDescription(java.lang.String cmrFieldDescription)
this.cmrFieldDescription = cmrFieldDescription;
|
public void | setCMRFieldInfo(CMRFieldInfo cmrFieldInfo)
this.cmrFieldInfo = cmrFieldInfo;
|
public void | setCMRFieldType(java.lang.String newCmrFieldType)Only applicable when partner is collection-valued.
Set to NULL to indicate no field type is not applicable.
if( newCmrFieldType == null ) {
this.cmrFieldType = null;
invalidateCMRFieldStuff();
} else if ( newCmrFieldType.equals("java.util.Collection")
|| newCmrFieldType.equals("java.util.Set") ) {
this.cmrFieldType = newCmrFieldType;
invalidateCMRFieldStuff();
} else {
throw new IllegalArgumentException
("cmr-field-type is " + newCmrFieldType +
", must be java.util.Collection or java.util.Set");
}
|
public void | setCascadeDelete(boolean cascadeDelete)
this.cascadeDelete = cascadeDelete;
|
public void | setIsMany(boolean isMany)
this.isMany = isMany;
invalidateCMRFieldStuff();
|
public void | setOwner(EjbCMPEntityDescriptor owner)
this.owner = owner;
invalidateCMRFieldStuff();
|
public void | setPartner(com.sun.enterprise.deployment.RelationRoleDescriptor partner)
this.partner = partner;
|
public void | setPersistenceDescriptor(PersistenceDescriptor newPers)
if( this.pers != null ) {
// first invalidate cmr stuff in original persistence descriptor
this.pers.invalidate();
}
this.pers = newPers;
if( newPers != null ) {
this.owner = (EjbCMPEntityDescriptor)newPers.getParentDescriptor();
}
invalidateCMRFieldStuff();
|
public void | setRelationRoleName(java.lang.String relationRoleName)
this.relationRoleName = relationRoleName;
|
public void | setRelationshipDescriptor(RelationshipDescriptor relnDesc)
this.relnDesc = relnDesc;
|
public void | setRoleSourceDescription(java.lang.String roleSourceDescription)
this.roleSourceDescription = roleSourceDescription;
|