public class NavigationProperty extends NamedObject
| Constructor and Description |
|---|
NavigationProperty(String name)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
AssociationEnd |
getFromRole()
Returns the start entity of the association.
|
Association |
getRelationship()
Returns the association.
|
AssociationEnd |
getToRole()
Returns the target entity of the association.
|
void |
setFromRole(AssociationEnd fromRole)
Sets the start entity of the association.
|
void |
setRelationship(Association relationship)
Sets the association.
|
void |
setToRole(AssociationEnd toRole)
Sets the target entity of the association.
|
equals, getName, getNormalizedName, hashCode, toStringpublic NavigationProperty(String name)
name - The name of this navigation property.public AssociationEnd getFromRole()
public Association getRelationship()
public AssociationEnd getToRole()
public void setFromRole(AssociationEnd fromRole)
fromRole - The start entity of the association.public void setRelationship(Association relationship)
relationship - The association.public void setToRole(AssociationEnd toRole)
toRole - The target entity of the association.Copyright © 2005–2015. All rights reserved.