org.caleigo.core.meta
Class CustomFieldRelation

java.lang.Object
  extended byorg.caleigo.core.meta.CustomFieldRelation
All Implemented Interfaces:
IFieldRelation, java.io.Serializable

class CustomFieldRelation
extends java.lang.Object
implements IFieldRelation

Version:
1.0
Author:
Mattias Hagstrand

Constructor Summary
(package private) CustomFieldRelation(CustomDataSourceDescriptor dataSourceDescriptor, java.lang.String referenceEntitySourceName, java.lang.String referenceFieldSourceName, java.lang.String targetEntitySourceName, java.lang.String targetFieldSourceName)
           
 
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.
(package private)  void setEntityRelation(IEntityRelation relation)
          Mutation method with restricted access to avoid missuse.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomFieldRelation

CustomFieldRelation(CustomDataSourceDescriptor dataSourceDescriptor,
                    java.lang.String referenceEntitySourceName,
                    java.lang.String referenceFieldSourceName,
                    java.lang.String targetEntitySourceName,
                    java.lang.String targetFieldSourceName)
Method Detail

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.