LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.info.daemon
Class LyJoinDaemon

java.lang.Object
  extended by leon.info.LyTag
      extended by leon.info.daemon.LyInfoDaemon
          extended by leon.info.daemon.LyJoinDaemon
All Implemented Interfaces:
java.lang.Cloneable

public final class LyJoinDaemon
extends LyInfoDaemon

This class holds informations for local multiple relations managed by a join class. This join is defined by a join class, a source relation and a target relation in the join class. The source relation must pointed to the class of the local relation managed by the join class. The target relation must pointed to the class(es) pointed by the local relation managed by the join class.

See also tag of leon.dtd.

See Also:
LyJoinRelationDaemon

Nested Class Summary
 
Nested classes/interfaces inherited from class leon.info.LyTag
LyTag.Model
 
Field Summary
static java.lang.String __VERSION
           
 
Constructor Summary
LyJoinDaemon()
          Default constructor.
LyJoinDaemon(LyClassInfo joinClass, LyRelationFieldInfo sourceRelation, LyRelationFieldInfo targetRelation)
          Constructor with all parameters.
 
Method Summary
 void addFieldBinding(LyFieldBinding fieldBinding)
          To add a field binding definition to this daemon.
 void check(LyObjectInfo parent)
          Final step of parsing : check consistency of the daemon.
 LyClassBinding getClassBinding()
          Accessor to the class binding of this join.
 LyClassInfo getJoinClass()
          Accessor to the join class of this join.
 LyFieldBinding getSourceBinding()
          Accessor to the field binding of the source of this join.
 LyRelationFieldInfo getSourceRelation()
          Accessor to the source relation of this join.
 LyFieldBinding getTargetBinding()
          Accessor to the field binding of the targer of this join.
 LyRelationFieldInfo getTargetRelation()
          Accessor to the target relation of this join.
 void setClassBinding(LyClassBinding classBinding)
          Modifier of the class binding of this join.
 void setJoinClass(LyClassInfo joinClass)
          Modifier of the join class of this join.
 void setSourceBinding(LyFieldBinding fieldBinding)
          Modifier of the field binding of the source of this join.
 void setSourceRelation(LyRelationFieldInfo sourceRelation)
          Modifier of the source relation of this join.
 void setTargetBinding(LyFieldBinding fieldBinding)
          Modifier of the field binding of the target of this join.
 void setTargetRelation(LyRelationFieldInfo targetRelation)
          Modifier of the target relation of this join.
 
Methods inherited from class leon.info.LyTag
clone, getApplication, getCommentsEnd, getCommentsStart, getEnvironment, getId, getModelType, getParent, getRootProject, hasAncestor, isExtern, setCommentsEnd, setCommentsStart, wasCloned
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

__VERSION

public static final java.lang.String __VERSION
See Also:
Constant Field Values
Constructor Detail

LyJoinDaemon

public LyJoinDaemon()
Default constructor.


LyJoinDaemon

public LyJoinDaemon(LyClassInfo joinClass,
                    LyRelationFieldInfo sourceRelation,
                    LyRelationFieldInfo targetRelation)
Constructor with all parameters.

Method Detail

check

public void check(LyObjectInfo parent)
Final step of parsing : check consistency of the daemon.

Overrides:
check in class LyInfoDaemon
Parameters:
parent - Object info for which this daemon is checked.
Throws:
java.lang.IllegalStateException - If the source or target relation doesn't belong to join class.

getJoinClass

public LyClassInfo getJoinClass()
Accessor to the join class of this join.

Returns:
Join class of this join.

getSourceRelation

public LyRelationFieldInfo getSourceRelation()
Accessor to the source relation of this join.

Returns:
The source relation of this join.

getTargetRelation

public LyRelationFieldInfo getTargetRelation()
Accessor to the target relation of this join.

Returns:
The target relation of this join.

getClassBinding

public LyClassBinding getClassBinding()
Accessor to the class binding of this join.

Returns:
The class binding of this join

getSourceBinding

public LyFieldBinding getSourceBinding()
Accessor to the field binding of the source of this join.

Returns:
The field binding of the source of this join

getTargetBinding

public LyFieldBinding getTargetBinding()
Accessor to the field binding of the targer of this join.

Returns:
The field binding of the target of this join

setJoinClass

public void setJoinClass(LyClassInfo joinClass)
Modifier of the join class of this join.

Parameters:
joinClass - The class info reprenting the join class.

setSourceRelation

public void setSourceRelation(LyRelationFieldInfo sourceRelation)
Modifier of the source relation of this join.

Parameters:
sourceRelation - The relation field info reprenting the source relation of this join.

setTargetRelation

public void setTargetRelation(LyRelationFieldInfo targetRelation)
Modifier of the target relation of this join.

Parameters:
targetRelation - The relation field info reprenting the target relation of this join.

setClassBinding

public void setClassBinding(LyClassBinding classBinding)
Modifier of the class binding of this join.

Parameters:
classBinding - The class binding of this join

setSourceBinding

public void setSourceBinding(LyFieldBinding fieldBinding)
Modifier of the field binding of the source of this join.

Parameters:
fieldBinding - The field binding of the source of this join

setTargetBinding

public void setTargetBinding(LyFieldBinding fieldBinding)
Modifier of the field binding of the target of this join.

Parameters:
fieldBinding - The field binding of the target of this join

addFieldBinding

public void addFieldBinding(LyFieldBinding fieldBinding)
To add a field binding definition to this daemon. Fields binding must be added in the right order (source, target).

Parameters:
fieldBinding - the field binding to add.

(c) January 2013 - W4 S.A.

Website: W4 S.A., contact us: support@w4global.com