Annotation Interface GeneratedRole
Supported API: true
- See Also:
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionControls the accessibility and exceptions for generated accessor methods.booleanWhether or not to auto-navigate this role.The cardinality of this particular role.booleanIndicates whether link deletes should cascade to role members.Specifies the database properties for the columns of this role.A string representing theJavaDocto generate for this property.booleanIndicates whether this role is an "owner" role.The reference type to store this role as.The supported nature of this property to be generated into your marvelousJavaDoc.The type/class of this property.
-
Element Details
-
name
String nameThe name of this role.Rose conversion note: Corresponds to Association Specification -> General -> Role A/B.
NOTE: if modeling a new type of association, such as
ObjectToObjectLinkorVersionToVersionLink, use ("roleAObject"/"roleBObject") as the value for this property.Supported API: true
-
-
-
type
Class typeThe type/class of this property. Must be aPersistable. Use the default value if this role is part of an association that constrains its parent but does not actually wish to constrain this particular role.Rose conversion note: Corresponds to Association Specification -> General -> Element A/B.
Supported API: true
- See Also:
- Default:
- java.lang.Object.class
-
javaDoc
String javaDocA string representing theJavaDocto generate for this property. Leave blank only if you want to reuse the parent role'sJavaDoc.Rose conversion note: Corresponds to Association Specification -> Role A/B General -> Documentation.
Supported API: true
- See Also:
- Default:
- ""
-
supportedAPI
SupportedAPI supportedAPIThe supported nature of this property to be generated into your marvelousJavaDoc.Rose conversion note: Corresponds to Association Specification -> Windchill A/B -> SupportedAPI.
Supported API: true
- Default:
- PRIVATE
-
cardinality
Cardinality cardinalityThe cardinality of this particular role. The default (Cardinality.DEFAULT) indicates that the parent role's multiplicity should be used (if no parent exists, defaults toCardinality.MANY).Rose conversion note: Corresponds to Association Specification -> Role A/B Detail -> Multiplicity.
Supported API: true
- Default:
- DEFAULT
-
referenceType
Class referenceTypeThe reference type to store this role as.Rose conversion note: Corresponds to Association Specification -> Windchill A/B -> ReferenceType.
NOTE: this property is for internal use only by
GeneratedForeignKey.Supported API: true
- Default:
- java.lang.Object.class
-
owner
boolean ownerIndicates whether this role is an "owner" role. Ownership is checked when a role is to be deleted; if the role has links and it is not an "owner" for the link type, the delete will fail with a referential integrity exception (note: this test does not apply when the link itself is deleted).Take, for example,
ABLinkwhich links instances ofA(role A) andB(role B). For "a" (an instance of A) linked to "b" (an instance of B) linked via "ab" (an instance of ABLink). The following delete behavior will be observed:- Deleting "ab" directly will always succeed, regardless of either A or B's owner setting
- An attempt to delete "a" will succeed only when ABLink designates the "a" role as an owner role
- An attempt to delete "b" will succeed only when ABLink designates the "b" role as an owner role.
If unspecified, will use the first specified value for any parent associations, ultimately defaulting to
true.Rose conversion note: Corresponds to Association Specification -> Windchill A/B -> Owner.
Supported API: true
- Default:
- true
-
cascade
boolean cascadeIndicates whether link deletes should cascade to role members. When set totrue, the role member will be deleted along with the link (when the link is deleted). The role will be deleted regardless of whether the link was directly deleted or was deleted as a consequence of deleting the other side role (when the other side role'sowneris set totrue).If unspecified, will use the first specified value for any parent associations, ultimately defaulting to
true.Rose conversion note: Corresponds to Association Specification -> Windchill A/B -> Cascade.
Supported API: true
- Default:
- false
-
accessors
PropertyAccessors accessorsControls the accessibility and exceptions for generated accessor methods. If unspecified, uses parent's role or @PropertyAccessorsif no parent. This property corresponds to the accessors generated for the foreign key link class (resembling a binary link) that's automatically generated when a foreign key is generated; it does not correspond to the accessors generated on the persistable itself (seeForeignKeyRole).Rose conversion note: Corresponds to various properties found in Association Specification -> Windchill A/B.
Supported API: true
- Default:
- @com.ptc.windchill.annotations.metadata.PropertyAccessors
-
columnProperties
ColumnProperties columnPropertiesSpecifies the database properties for the columns of this role. Defaults to the parent's role or @ColumnPropertiesif unspecified.Rose conversion note: Corresponds to various properties found in Association Specification -> Windchill A/B.
Supported API: true
- Default:
- @com.ptc.windchill.annotations.metadata.ColumnProperties
-