uk.nominet.catnap.framework
Class Relationship

java.lang.Object
  extended byuk.nominet.catnap.framework.Relationship

public class Relationship
extends java.lang.Object

Created by IntelliJ IDEA. User: Administrator Date: 13-Oct-2004 Time: 13:45:24 To change this template use File | Settings | File Templates.


Constructor Summary
Relationship(java.lang.String ref, boolean multiple, java.lang.String finder, java.lang.String relator, boolean isCascading, boolean commaSep)
          Only useful creation constructor for our needs.
 
Method Summary
 java.lang.String getFinder()
          Get the finder pl/sql function name in the case that the column is a foreign key column This pl/sql routine will then be called to populate the entity specified in the entityref.
 java.util.List getForeignKeys()
           
 java.lang.String getRef()
          Get the reference to the entity definition of the related entity.
 java.lang.String getRelator()
          Return the relator for this relationship.
 boolean isCascading()
           
 boolean isCommaSep()
          Return a flag indicating whether the relationship uses comma sep.
 boolean isMultiple()
          A flag which indicates if this is a 1-1 or 1-many relationship
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Relationship

public Relationship(java.lang.String ref,
                    boolean multiple,
                    java.lang.String finder,
                    java.lang.String relator,
                    boolean isCascading,
                    boolean commaSep)
Only useful creation constructor for our needs.

Parameters:
ref -
finder -
commaSep -
Method Detail

getRef

public java.lang.String getRef()
Get the reference to the entity definition of the related entity.

Returns:

getFinder

public java.lang.String getFinder()
Get the finder pl/sql function name in the case that the column is a foreign key column This pl/sql routine will then be called to populate the entity specified in the entityref.

Returns:

getRelator

public java.lang.String getRelator()
Return the relator for this relationship. Only really applicable in hasMany Relationships.

Returns:

isCommaSep

public boolean isCommaSep()
Return a flag indicating whether the relationship uses comma sep.

Returns:

isMultiple

public boolean isMultiple()
A flag which indicates if this is a 1-1 or 1-many relationship

Returns:

isCascading

public boolean isCascading()

getForeignKeys

public java.util.List getForeignKeys()