org.eobjects.metamodel.schema
Class ImmutableRelationship

java.lang.Object
  extended by org.eobjects.metamodel.util.BaseObject
      extended by org.eobjects.metamodel.schema.AbstractRelationship
          extended by org.eobjects.metamodel.schema.ImmutableRelationship
All Implemented Interfaces:
Serializable, Comparable<Relationship>, Relationship

public final class ImmutableRelationship
extends AbstractRelationship
implements Serializable

See Also:
Serialized Form

Method Summary
static void create(Relationship origRelationship, ImmutableSchema schema)
           
 Column[] getForeignColumns()
          Gets the foreign key columns of this relationship.
 Column[] getPrimaryColumns()
          Gets the primary key columns of this relationship.
 
Methods inherited from class org.eobjects.metamodel.schema.AbstractRelationship
checkSameTable, classEquals, compareTo, containsColumnPair, decorateIdentity, getForeignTable, getPrimaryTable, toString
 
Methods inherited from class org.eobjects.metamodel.util.BaseObject
equals, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

create

public static void create(Relationship origRelationship,
                          ImmutableSchema schema)

getPrimaryColumns

public Column[] getPrimaryColumns()
Description copied from interface: Relationship
Gets the primary key columns of this relationship.

Specified by:
getPrimaryColumns in interface Relationship
Returns:
an array of primary key columns.

getForeignColumns

public Column[] getForeignColumns()
Description copied from interface: Relationship
Gets the foreign key columns of this relationship.

Specified by:
getForeignColumns in interface Relationship
Returns:
an array of foreign key columns.


Copyright © 2007-2013. All Rights Reserved.