LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.data.daemon
Class LyReverseRelationDaemon

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.LyReverseRelationDaemon
All Implemented Interfaces:
LyDataSourceListener

public class LyReverseRelationDaemon
extends LyRelationDaemon

Dynamic list of LyObject.


Field Summary
static java.lang.String __VERSION
           
static int MAX_SIZE_FOR_RELOAD
           
 
Constructor Summary
LyReverseRelationDaemon(LyClassInfo sourceClass, LyRelationFieldInfo relation, LyRelationFieldInfo reverseRelation)
          Default constructor.
 
Method Summary
 LyRelationFieldInfo getReverseRelation()
          Accessor to the reverse relation.
 void idRehashed(LyObjectId oldObjectId, LyObjectId newObjectId)
          Call super and update _resulsReverse.
 boolean objectCreated(LyDataSourceEvent event)
          Method for object creation callback.
 boolean objectModified(LyDataSourceEvent event)
          Method for object modification callback.
 void unload()
          Call super then unload _resultsReverse.
 
Methods inherited from class leon.data.daemon.LyRelationDaemon
freeValue, getObjectList, getValue, objectDeleted
 
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

MAX_SIZE_FOR_RELOAD

public static final int MAX_SIZE_FOR_RELOAD
See Also:
Constant Field Values

__VERSION

public static final java.lang.String __VERSION
See Also:
Constant Field Values
Constructor Detail

LyReverseRelationDaemon

public LyReverseRelationDaemon(LyClassInfo sourceClass,
                               LyRelationFieldInfo relation,
                               LyRelationFieldInfo reverseRelation)
Default constructor.

Parameters:
sourceClass - the source class
relation - the handled relation
reverseRelation - the reverse relation
Method Detail

getReverseRelation

public LyRelationFieldInfo getReverseRelation()
Accessor to the reverse relation.

Returns:
The reverse relation.

unload

public void unload()
Call super then unload _resultsReverse.

Overrides:
unload in class LyRelationDaemon
See Also:
LyRelationDaemon.unload()

idRehashed

public void idRehashed(LyObjectId oldObjectId,
                       LyObjectId newObjectId)
Call super and update _resulsReverse.

Overrides:
idRehashed in class LyRelationDaemon
See Also:
LyRelationDaemon.idRehashed(leon.data.LyObjectId, leon.data.LyObjectId)

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)

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)

(c) January 2013 - W4 S.A.

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