LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.data.daemon
Class LyJoinRelationDaemon

java.lang.Object
  extended by leon.data.daemon.LyDaemon
      extended by leon.data.daemon.LyFieldInfoDaemon
          extended by leon.data.daemon.LyRelationDaemon
              extended by leon.data.daemon.LyJoinRelationDaemon
All Implemented Interfaces:
LyDataSourceListener

public class LyJoinRelationDaemon
extends LyRelationDaemon

Daemon that handles multiple relations managed with join elements.


Field Summary
static java.lang.String __VERSION
          File version
static int OPTIM_REQUEST_LIMIT
          Limit for optimizing request to find targets.
 
Constructor Summary
LyJoinRelationDaemon(LyClassInfo sourceClass, LyRelationFieldInfo relation, LyClassInfo joinClass, LyRelationFieldInfo sourceRelation, LyRelationFieldInfo targetRelation)
          Default constructor.
 
Method Summary
 void freeValue(LyObject object)
          To free a calculated value for the specified object.
 LyObjectList getJoins(LyObject source)
          Get the join objects associated to the given object
 boolean objectCreated(LyDataSourceEvent event)
          Method for object creation callback.
 boolean objectDeleted(LyDataSourceEvent event)
          Method for object deletion callback.
 boolean objectModified(LyDataSourceEvent event)
          Method for object modification callback.
 void unload()
          Unload daemon.
 
Methods inherited from class leon.data.daemon.LyRelationDaemon
getObjectList, getValue, idRehashed
 
Methods inherited from class leon.data.daemon.LyFieldInfoDaemon
getFieldInfo
 
Methods inherited from class leon.data.daemon.LyDaemon
getInfo, getSourceClass
 
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
File version

See Also:
Constant Field Values

OPTIM_REQUEST_LIMIT

public static int OPTIM_REQUEST_LIMIT
Limit for optimizing request to find targets.

Constructor Detail

LyJoinRelationDaemon

public LyJoinRelationDaemon(LyClassInfo sourceClass,
                            LyRelationFieldInfo relation,
                            LyClassInfo joinClass,
                            LyRelationFieldInfo sourceRelation,
                            LyRelationFieldInfo targetRelation)
Default constructor.

Parameters:
sourceClass - The source class
relation - the relation handled by the daemon
joinClass - the join class
sourceRelation - the source relation in the join class
targetRelation - the target relation in the join class
Method Detail

getJoins

public LyObjectList getJoins(LyObject source)
Get the join objects associated to the given object

Parameters:
source - the source object
Returns:
a list of join objects.

objectCreated

public boolean objectCreated(LyDataSourceEvent event)
Method for object creation callback.

Specified by:
objectCreated in interface LyDataSourceListener
Overrides:
objectCreated in class LyRelationDaemon
Parameters:
event - the datasource event
Returns:
true if this event was handled
See Also:
LyDataSourceListener.objectCreated(leon.data.LyDataSourceEvent)

objectDeleted

public boolean objectDeleted(LyDataSourceEvent event)
Method for object deletion callback.

Specified by:
objectDeleted in interface LyDataSourceListener
Overrides:
objectDeleted in class LyRelationDaemon
Parameters:
event - the datasource event
Returns:
true if this event was handled
See Also:
LyDataSourceListener.objectDeleted(leon.data.LyDataSourceEvent)

objectModified

public boolean objectModified(LyDataSourceEvent event)
Method for object modification callback.

Specified by:
objectModified in interface LyDataSourceListener
Overrides:
objectModified in class LyRelationDaemon
Parameters:
event - the datasource event
Returns:
true if this event was handled
See Also:
LyDataSourceListener.objectModified(leon.data.LyDataSourceEvent)

freeValue

public void freeValue(LyObject object)
To free a calculated value for the specified object.

Overrides:
freeValue in class LyRelationDaemon
Parameters:
object - the object we want to free the value.

unload

public void unload()
Unload daemon.

Overrides:
unload in class LyRelationDaemon

(c) January 2013 - W4 S.A.

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