LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.data.daemon
Class LyRoutedRelationDaemon

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.LyRoutedRelationDaemon
All Implemented Interfaces:
LyDataSourceListener, LyWorkSpaceCounterListener, LyWorkSpaceListener

public class LyRoutedRelationDaemon
extends LyRelationDaemon
implements LyWorkSpaceListener, LyWorkSpaceCounterListener

Daemon for calculated relations.


Field Summary
static java.lang.String __VERSION
          File version.
 
Constructor Summary
LyRoutedRelationDaemon(LyClassInfo sourceClass, LyRelationFieldInfo relation, boolean addNewObjects)
          Default constructor.
 
Method Summary
 boolean counterChanged(LyWorkSpaceEvent event)
          Called when the counter associated with the specified object has been incremented.
 LyObjectList getObjectList(LyObject object, LyDataSourceEvent event)
          Gets references for an object.
 java.lang.Object getValue(LyObject object)
          To get the relation value for the specified object.
 boolean objectAdded(LyWorkSpaceEvent event)
          Called when an object is added in the dynamic object list.
 boolean objectChanged(LyWorkSpaceEvent event)
          Called when an object has changed in the dynamic object list.
 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.
 boolean objectRemoved(LyWorkSpaceEvent event)
          Called when an object is removed from the dynamic object list.
 void unload()
          Unload daemon.
 
Methods inherited from class leon.data.daemon.LyRelationDaemon
freeValue, 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
Constructor Detail

LyRoutedRelationDaemon

public LyRoutedRelationDaemon(LyClassInfo sourceClass,
                              LyRelationFieldInfo relation,
                              boolean addNewObjects)
Default constructor.

Parameters:
sourceClass - the source class
relation - the handled relation
addNewObjects -
Method Detail

getValue

public java.lang.Object getValue(LyObject object)
To get the relation value for the specified object.

Overrides:
getValue in class LyRelationDaemon
Parameters:
object - a source object
Returns:
the value of the relation for this object

getObjectList

public LyObjectList getObjectList(LyObject object,
                                  LyDataSourceEvent event)
Gets references for an object.

Overrides:
getObjectList in class LyRelationDaemon
Parameters:
object - an object
event - optional event indicating when notified for instance, may be null
Returns:
a list of references

unload

public void unload()
Unload daemon.

Overrides:
unload in class LyRelationDaemon

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)

objectAdded

public boolean objectAdded(LyWorkSpaceEvent event)
Called when an object is added in the dynamic object list.

Specified by:
objectAdded in interface LyWorkSpaceListener
Parameters:
event - event of adding object
Returns:
the event is used by the listener

objectRemoved

public boolean objectRemoved(LyWorkSpaceEvent event)
Called when an object is removed from the dynamic object list.

Specified by:
objectRemoved in interface LyWorkSpaceListener
Parameters:
event - event of removing object
Returns:
the event is used by the listener

objectChanged

public boolean objectChanged(LyWorkSpaceEvent event)
Called when an object has changed in the dynamic object list.

Specified by:
objectChanged in interface LyWorkSpaceListener
Parameters:
event - event of changing object
Returns:
the event is used by the listener

counterChanged

public boolean counterChanged(LyWorkSpaceEvent event)
Called when the counter associated with the specified object has been incremented.

Specified by:
counterChanged in interface LyWorkSpaceCounterListener
Parameters:
event - the workspace event.
Returns:
True if the event is used by the listener, false otherwise.

(c) January 2013 - W4 S.A.

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