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

B12155-01

oracle.owb.foundation.reflection
Interface AssociationDefinition

All Superinterfaces:
OWBNamedObject

public interface AssociationDefinition
extends OWBNamedObject

Association definition is object holding information about the association between two classes.

Version:
1.0
Author:
Xiaoge Zhang

Field Summary
static int INTERCOMPONENT
          Constant - the association represents inter-component association.
static int INTRACOMPONENT
          Constant - the association represents intra-component association.

 

Method Summary
 int getAssociationType()
          Return the type of the association.
 ClassDefinition getClassDefinitionA()
          Return class at one side of the association.
 ClassDefinition getClassDefinitionB()
          Return class at the other side of the association.
 ClassDefinition[] getClassDefinitions()
          Return two classes connected by this association.
 ClassDefinition getOtherClassDefinition(RoleDefinition role)
          Get the other class definition.
 RoleDefinition getOtherRoleDefinition(RoleDefinition role)
          Get the other role definition.
 RoleDefinition getRoleDefinitionA()
          Return role at one side of the association.
 java.lang.String getRoleDefinitionAName()
          Return the name of the role at one side of the association.
 RoleDefinition getRoleDefinitionB()
          Return role at another side of the association.
 java.lang.String getRoleDefinitionBName()
          Return the name of the role at the other side of the association.
 RoleDefinition[] getRoleDefinitions()
          Return two roles belong to this association.

 

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

 

Field Detail

INTRACOMPONENT

public static final int INTRACOMPONENT
Constant - the association represents intra-component association.
See Also:
Constant Field Values

INTERCOMPONENT

public static final int INTERCOMPONENT
Constant - the association represents inter-component association.
See Also:
Constant Field Values
Method Detail

getRoleDefinitions

public RoleDefinition[] getRoleDefinitions()
Return two roles belong to this association.
Returns:
the array of RoleDefinition objects.

getClassDefinitions

public ClassDefinition[] getClassDefinitions()
Return two classes connected by this association.
Returns:
the array of ClassDefinition objects.

getRoleDefinitionA

public RoleDefinition getRoleDefinitionA()
Return role at one side of the association.
Returns:
role at one side of the association.

getRoleDefinitionB

public RoleDefinition getRoleDefinitionB()
Return role at another side of the association.
Returns:
role at another side of the association.

getClassDefinitionA

public ClassDefinition getClassDefinitionA()
Return class at one side of the association.
Returns:
class at one side of the association.

getClassDefinitionB

public ClassDefinition getClassDefinitionB()
Return class at the other side of the association.
Returns:
class at the other side of the association.

getRoleDefinitionAName

public java.lang.String getRoleDefinitionAName()
Return the name of the role at one side of the association.
Returns:
the name of the role at one side of the association.

getRoleDefinitionBName

public java.lang.String getRoleDefinitionBName()
Return the name of the role at the other side of the association.
Returns:
the name of the role at the other side of the association.

getAssociationType

public int getAssociationType()
Return the type of the association. Can be inter-component association or intra-component association.
Returns:
int indicating the type of association.

getOtherClassDefinition

public ClassDefinition getOtherClassDefinition(RoleDefinition role)
Get the other class definition.
Parameters:
role - is the role at one side of the association.
Returns:
the owning class of the other role of this association.

getOtherRoleDefinition

public RoleDefinition getOtherRoleDefinition(RoleDefinition role)
Get the other role definition.
Parameters:
role - is the role at one side of the association.
Returns:
the other role of this association.

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

B12155-01

Copyright © 2003, Oracle. All Rights Reserved.