Skip navigation links

Oracle Fusion Middleware Identity Governance Framework Identity Directory Java API Reference
11g Release 1 (11.1.1)

E39432-01


oracle.igf.ids.config
Class EntityRelationship

java.lang.Object
  extended by oracle.igf.ids.config.EntityRelationship


public class EntityRelationship
extends java.lang.Object

Class for definining the relationship between two different entities


Nested Class Summary
static class EntityRelationship.RelationshipType
          Type of relationship - OneToOne, OneToMany, ManyToOne or ManyToMany

 

Constructor Summary
EntityRelationship(java.lang.String name, EntityRelationship.RelationshipType type, java.lang.String fromEntity, java.lang.String fromAttr, java.lang.String toEntity, java.lang.String toAttr)
          Constructs Entity Relationship definition.
EntityRelationship(java.lang.String name, EntityRelationship.RelationshipType type, java.lang.String fromEntity, java.lang.String fromAttr, java.lang.String toEntity, java.lang.String toAttr, boolean recursive)
          Constructs Entity Relationship definition

 

Method Summary
 boolean equals(java.lang.Object obj)
          Checks if the given object is equals to this one
 java.lang.String getFromAttr()
          Gets FromAttribute in the entity relation.
 java.lang.String getFromEntity()
          Gets FromEntity in the entity relation
 java.lang.String getName()
          Gets Entity Relationship name
 java.lang.String getToAttr()
          Gets ToAttribute in the entity relation.
 java.lang.String getToEntity()
          Gets ToEntity in the entity relation
 EntityRelationship.RelationshipType getType()
          Gets entity relationship type
 boolean isRecursive()
          Gets the recursive flag
 void setFromAttr(java.lang.String fromAttr)
          Sets FromAttribute in the entity relation.
 void setFromEntity(java.lang.String fromEntity)
          Sets FromEntity in the entity relation
 void setRecursive(boolean recursive)
          Sets the recursive flag to true/false.
 void setToAttr(java.lang.String toAttr)
          Sets ToAttribute in the entity relation.
 void setToEntity(java.lang.String toEntity)
          Sets the ToEntity in the entity relation
 void setType(EntityRelationship.RelationshipType type)
          Sets the entity relationship type

 

Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

EntityRelationship

public EntityRelationship(java.lang.String name,
                          EntityRelationship.RelationshipType type,
                          java.lang.String fromEntity,
                          java.lang.String fromAttr,
                          java.lang.String toEntity,
                          java.lang.String toAttr,
                          boolean recursive)
Constructs Entity Relationship definition
Parameters:
name - Name of entity relationship
type - Entity Relationship type
fromEntity - Name of the first entity
fromAttr - First entity's attribute in which related entity info exists
toEntity - Name of the second entity
toAttr - Second entity's attribute in which related entity info exists
recursive - true if the relationship is nested relation ; false otherwise

EntityRelationship

public EntityRelationship(java.lang.String name,
                          EntityRelationship.RelationshipType type,
                          java.lang.String fromEntity,
                          java.lang.String fromAttr,
                          java.lang.String toEntity,
                          java.lang.String toAttr)
Constructs Entity Relationship definition. Entity relationship recursive flag is defaulted to false
Parameters:
name - Name of entity relationship
type - Entity Relationship type
fromEntity - Name of the first entity
fromAttr - First entity's attribute in which related entity info exists
toEntity - Name of the second entity
toAttr - Second entity's attribute in which related entity info exists

Method Detail

getName

public java.lang.String getName()
Gets Entity Relationship name
Returns:
name of the entity relationship

setType

public void setType(EntityRelationship.RelationshipType type)
Sets the entity relationship type
Parameters:
type - Entity relationship type

getType

public EntityRelationship.RelationshipType getType()
Gets entity relationship type
Returns:
entity relationship type

setFromEntity

public void setFromEntity(java.lang.String fromEntity)
Sets FromEntity in the entity relation
Parameters:
fromEntity - Name of FromEntity

getFromEntity

public java.lang.String getFromEntity()
Gets FromEntity in the entity relation
Returns:
name of FromEntity in the entity relation

setFromAttr

public void setFromAttr(java.lang.String fromAttr)
Sets FromAttribute in the entity relation. This is FromEntity's attribute in which related entity info exists
Parameters:
fromAttr - FromAttribute name

getFromAttr

public java.lang.String getFromAttr()
Gets FromAttribute in the entity relation. This is FromEntity's attribute in which related entity info exists
Returns:
FromAttribute in the entity relation

setToEntity

public void setToEntity(java.lang.String toEntity)
Sets the ToEntity in the entity relation
Parameters:
toEntity - Name of the ToEntity in the entity relation

getToEntity

public java.lang.String getToEntity()
Gets ToEntity in the entity relation
Returns:
name of the ToEntity in the entity relation

setToAttr

public void setToAttr(java.lang.String toAttr)
Sets ToAttribute in the entity relation. This is ToEntity's attribute in which related entity info exists
Parameters:
toAttr - ToAttribute name

getToAttr

public java.lang.String getToAttr()
Gets ToAttribute in the entity relation. This is ToEntity's attribute in which related entity info exists
Returns:
ToAttribute in the entity relation

setRecursive

public void setRecursive(boolean recursive)
Sets the recursive flag to true/false.
Parameters:
recursive - true if entity relationship is of nested relation type ; false otherwise

isRecursive

public boolean isRecursive()
Gets the recursive flag
Returns:
true if the entity relationship is nested relation

equals

public boolean equals(java.lang.Object obj)
Checks if the given object is equals to this one
Overrides:
equals in class java.lang.Object
Returns:
true if equals; false otherwise

Skip navigation links

Oracle Fusion Middleware Identity Governance Framework Identity Directory Java API Reference
11g Release 1 (11.1.1)

E39432-01


Copyright © 2013 Oracle. All Rights Reserved.