LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.data.daemon
Class LyPathDaemon

java.lang.Object
  extended by leon.data.daemon.LyDaemon
      extended by leon.data.daemon.LyFieldInfoDaemon
          extended by leon.data.daemon.LyPathDaemon
All Implemented Interfaces:
LyDataSourceListener, LyWorkSpaceCounterListener, LyWorkSpaceListener

public class LyPathDaemon
extends LyFieldInfoDaemon
implements LyWorkSpaceListener, LyWorkSpaceCounterListener

Daemon for path on field info.


Field Summary
static java.lang.String __VERSION
          File version.
 
Constructor Summary
LyPathDaemon(LyClassInfo sourceClass, LyFieldInfo fieldInfo)
          Default constructor.
 
Method Summary
 java.lang.Object computeValue(LyObject object)
          To get the relation value for the specified object.
 boolean counterChanged(LyWorkSpaceEvent event)
          Called when the counter associated with the specified object has been incremented.
 void freeValue(LyObject object)
          To free a calculated value for the specified object.
 java.lang.Object getValue(LyObject object)
          To get the value for the specified object.
 void idRehashed(LyObjectId oldObjectId, LyObjectId newObjectId)
          Called when objectId of an object has been changed.
 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.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

LyPathDaemon

public LyPathDaemon(LyClassInfo sourceClass,
                    LyFieldInfo fieldInfo)
Default constructor.

Parameters:
sourceClass - the source class
fieldInfo - the fieldInfo
Method Detail

getValue

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

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

computeValue

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

Parameters:
object - the object
Returns:
the computed value

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.

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)

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

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.

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

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