Oracle Warehouse Builder Java API Reference
10g Release 1 (10.1)

B12155-01

oracle.owb.foundation.reflection
Interface RoleDefinition

All Superinterfaces:
OWBNamedObject

public interface RoleDefinition
extends OWBNamedObject

RoleDefinition defines a role in an association.

Author:
Xiaoge Zhang

Method Summary
 AssociationDefinition getAssociationDefinition()
          Return association definition which owns this role.
 ClassDefinition getClassDefinition()
          Return the class definition who owns this role definition.
 int getMaxCardinality()
          Return the maximum cardinality at this side.
 int getMinCardinality()
          Return the minimum cardinality at this side.
 PropertyDefinition getPropertyDefinition()
          Return the associated property definition if this role is linked with some property definition.
 ClassDefinition getTargetClassDefinition()
          Return the class definition at the other side of the association.
 RoleDefinition getTargetRoleDefinition()
          Return the role at the other side of the association.
 boolean isAggregate()
          Return true if this role is the aggregation side of the association.
 boolean isNavigable()
          Return true if this side is navigable.

 

Methods inherited from interface oracle.owb.foundation.OWBNamedObject
delete, getBusinessName, getComponent, getDescription, getName, getUOID, isDeletable, isEditable, isRenamable, setBusinessName, setDescription, setName

 

Method Detail

isAggregate

public boolean isAggregate()
Return true if this role is the aggregation side of the association.
Returns:
aggregate attribute of the role.

getClassDefinition

public ClassDefinition getClassDefinition()
Return the class definition who owns this role definition.
Specified by:
getClassDefinition in interface OWBNamedObject
Returns:
the owning class.

isNavigable

public boolean isNavigable()
Return true if this side is navigable.
Returns:
the navigable attribute of the role.

getAssociationDefinition

public AssociationDefinition getAssociationDefinition()
Return association definition which owns this role.
Returns:
the owning association.

getMinCardinality

public int getMinCardinality()
Return the minimum cardinality at this side.
Returns:
the minimum cardinality.

getMaxCardinality

public int getMaxCardinality()
Return the maximum cardinality at this side.
Returns:
the maximum cardinality.

getPropertyDefinition

public PropertyDefinition getPropertyDefinition()
Return the associated property definition if this role is linked with some property definition.
Returns:
associated PropertyDefinition object.

getTargetClassDefinition

public ClassDefinition getTargetClassDefinition()
Return the class definition at the other side of the association.
Returns:
the class on the opposite side.

getTargetRoleDefinition

public RoleDefinition getTargetRoleDefinition()
Return the role at the other side of the association.
Returns:
the role at the opposite side.

Oracle Warehouse Builder Java API Reference
10g Release 1 (10.1)

B12155-01

Copyright © 2003, Oracle. All Rights Reserved.