org.caleigo.core
Interface IFieldRelation

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
CompositeEntityDescriptor.CompositeFieldRelation, CustomFieldRelation, FieldRelation

public interface IFieldRelation
extends java.io.Serializable

The IFieldRelation interface defines a link between two different field descriptors. An IFieldRelation is allways an agregate of an IEntityRelation that defines a link between two IEntityRelation objects. The relation objects does combined with the descriptor objects form a travesable graph.

Version:
1.00
Author:
Dennis Zikovic

Method Summary
 IEntityRelation getEntityRelation()
          Access method that return the IEntityRelation that the called IFieldRelation is a part of.
 IFieldDescriptor getReferenceField()
          Access method that return the IFieldDescriptor that is the source/reference field that addresses another field.
 IFieldDescriptor getTargetField()
          Access method that return the IFieldDescriptor that is the target field that are addressed by the reference field.
 

Method Detail

getEntityRelation

public IEntityRelation getEntityRelation()
Access method that return the IEntityRelation that the called IFieldRelation is a part of.


getReferenceField

public IFieldDescriptor getReferenceField()
Access method that return the IFieldDescriptor that is the source/reference field that addresses another field. In RDB terms the reference field is or should be defined as a foreign key.


getTargetField

public IFieldDescriptor getTargetField()
Access method that return the IFieldDescriptor that is the target field that are addressed by the reference field. In RDB terms the target field is usually a primary-key field.



Copyright © 2005 Caleigo. All Rights Reserved.