jACOB 2.7 API Documentation.

de.tif.jacob.core.definition
Interface IOneToManyRelation

All Superinterfaces:
INamedObjectDefinition, IRelation

public interface IOneToManyRelation
extends IRelation

This interface represents a 1:N relation.


Method Summary
 IKey getFromPrimaryKey()
          Returns the primary key of this relation, i.e. the primary key of the from table alias.
 IKey getToForeignKey()
          Returns the foreign key of this relation, i.e. the correspondng foreign key of the to table alias.
 boolean isMandatory()
          Checks whether this relation is mandatory on the one side, i.e. each entry of the foreign table must be related to an entry of the primary table.
 
Methods inherited from interface de.tif.jacob.core.definition.IRelation
getFromTableAlias, getToTableAlias
 
Methods inherited from interface de.tif.jacob.core.definition.INamedObjectDefinition
getDescription, getName, getProperty
 

Method Detail

getFromPrimaryKey

IKey getFromPrimaryKey()
Returns the primary key of this relation, i.e. the primary key of the from table alias.

Returns:
the primary key

getToForeignKey

IKey getToForeignKey()
Returns the foreign key of this relation, i.e. the correspondng foreign key of the to table alias.

Returns:
the foreign key

isMandatory

boolean isMandatory()
Checks whether this relation is mandatory on the one side, i.e. each entry of the foreign table must be related to an entry of the primary table.

Returns:
true if this relation is mandatory, otherwise false in case of an optional relation.

jACOB 2.7 API Documentation.