org.caleigo.core
Class CompositeEntityDescriptor.CompositeFieldRelation

java.lang.Object
  extended byorg.caleigo.core.CompositeEntityDescriptor.CompositeFieldRelation
All Implemented Interfaces:
IFieldRelation, java.io.Serializable
Enclosing class:
CompositeEntityDescriptor

protected static class CompositeEntityDescriptor.CompositeFieldRelation
extends java.lang.Object
implements IFieldRelation

Basic implementation of the IFieldRelation for Composite Field Relations.

Version:
1.00
Author:
Niklas Norberg
See Also:
IFieldRelation, This implementation of the IFieldRelation requires that the classes of the linked descriptors has been loaded and initialized., Serialized Form

Constructor Summary
(package private) CompositeEntityDescriptor.CompositeFieldRelation(IFieldDescriptor referenceFieldDescriptor, IFieldDescriptor targetFieldDescriptor)
          Constructor for FieldRelation.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 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.
(package private)  void setEntityRelation(IEntityRelation relation)
          Mutation method with restricted access to avoid missuse.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeEntityDescriptor.CompositeFieldRelation

CompositeEntityDescriptor.CompositeFieldRelation(IFieldDescriptor referenceFieldDescriptor,
                                                 IFieldDescriptor targetFieldDescriptor)
Constructor for FieldRelation. Note package scope to avoid missuse.

Method Detail

equals

public boolean equals(java.lang.Object obj)

getEntityRelation

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

Specified by:
getEntityRelation in interface IFieldRelation

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.

Specified by:
getReferenceField in interface IFieldRelation

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.

Specified by:
getTargetField in interface IFieldRelation

setEntityRelation

void setEntityRelation(IEntityRelation relation)
Mutation method with restricted access to avoid missuse.



Copyright © 2005 Caleigo. All Rights Reserved.