LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.data.daemon
Class LyDaemon

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

public abstract class LyDaemon
extends java.lang.Object
implements LyDataSourceListener

Daemon for managing objects.


Field Summary
static java.lang.String __VERSION
          File version
 
Method Summary
 LyInfo getInfo()
          Gets info to which the daemon is associated.
 LyClassInfo getSourceClass()
          Accessor to source class.
abstract  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()
          Unloads this daemon if it internally handles data.
 
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

unload

public void unload()
Unloads this daemon if it internally handles data. This method is called when the application is completely unloaded.


getSourceClass

public LyClassInfo getSourceClass()
Accessor to source class.

Returns:
The source class of this daemon.

idRehashed

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

Parameters:
oldObjectId -
newObjectId -

objectCreated

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

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

getInfo

public LyInfo getInfo()
Gets info to which the daemon is associated.

Returns:
the info associated to this daemon

(c) January 2013 - W4 S.A.

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