LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.data.daemon
Class LyRelationDaemon

java.lang.Object
  extended by leon.data.daemon.LyDaemon
      extended by leon.data.daemon.LyFieldInfoDaemon
          extended by leon.data.daemon.LyRelationDaemon
All Implemented Interfaces:
LyDataSourceListener
Direct Known Subclasses:
LyJoinRelationDaemon, LyReverseRelationDaemon, LyRoutedRelationDaemon

public abstract class LyRelationDaemon
extends LyFieldInfoDaemon

Daemon for calculated relations.


Field Summary
static java.lang.String __VERSION
          File version
 
Method Summary
 void freeValue(LyObject object)
          To free a calculated value for the specified object.
 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.
 void idRehashed(LyObjectId oldObjectId, LyObjectId newObjectId)
          Called when objectId of an object has been changed.
 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.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
Method Detail

getValue

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

Specified by:
getValue in class LyFieldInfoDaemon
Parameters:
object - the object we want the value.
Returns:
the value of the relation field for the specified object.

freeValue

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

Specified by:
freeValue in class LyFieldInfoDaemon
Parameters:
object - the object we want to free the value.

getObjectList

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

Parameters:
object - the 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 LyDaemon

objectCreated

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

Specified by:
objectCreated in interface LyDataSourceListener
Overrides:
objectCreated in class LyDaemon
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 LyDaemon
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 LyDaemon
Parameters:
event - the datasource event
Returns:
true if this event was handled
See Also:
LyDataSourceListener.objectModified(leon.data.LyDataSourceEvent)

idRehashed

public void idRehashed(LyObjectId oldObjectId,
                       LyObjectId newObjectId)
Called when objectId of an object has been changed. This method must update tables with references to objectIds.

Specified by:
idRehashed in class LyDaemon
Parameters:
oldObjectId -
newObjectId -

(c) January 2013 - W4 S.A.

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