|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectleon.peer.LyDataProvider
leon.peer.LyPeerDataProvider
public abstract class LyPeerDataProvider
This class is provided is ease implementations of data providers that use peer classes (LyPeerClass) and peer fields (LyPeerField).
Two methods are abstract and must be implemented by subclasses :
LyPeerClass
,
LyPeerField
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
Constructor Summary | |
---|---|
LyPeerDataProvider(LyApplication application,
LyLocation location)
Constructs a peer data provider. |
|
LyPeerDataProvider(LyApplication application,
java.lang.String id)
Deprecated. should use LyDataProvider(LyApplication application, LyLocation location) instead of this constructor. |
Method Summary | |
---|---|
LyPeerClass |
getPeerClass(java.lang.String id)
Retrieves a peer class from its id. |
void |
invalidate(LyClassInfo classInfo,
LyFieldInfo fieldInfo)
Invalidates the field info of the given class info : this mainly consists to remove the associated peer field. |
void |
load(LyApplication application,
LyPeerDataProvider importProvider,
boolean enableReloading)
Load peer objects coming from given provider. |
void |
resetPeerClasses()
|
void |
validate(LyClassInfo classInfo,
LyFieldInfo fieldInfo)
Validates the field info of the given class info : this mainly consists to create or retrieve the associated peer field. |
boolean |
validate(LyInfoList<LyClassInfo> classInfos)
This method is used to build all the class peers for all the classInfos of the location managed by this provider. |
boolean |
validateNotifier(LyInfoList<LyClassInfo> classInfos)
Validate the associated event notifier if exists. |
Methods inherited from class leon.peer.LyDataProvider |
---|
canBeFullyLoaded, close, dumpConnections, getApplication, getConnection, getEnvironment, getEventNotifier, getId, getLocation, getNbAvailableConnection, getNbConnection, getRequestEncoder, hasLostConnection, isConnectionReady, isModified, isModified, isNotifierReady, isXASupported, releaseConnection, save, setEventNotifier, setLocation, setModified, setNbConnection, sleep, validate, wakeUp |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String __VERSION
Constructor Detail |
---|
public LyPeerDataProvider(LyApplication application, LyLocation location)
application
- Current application instancelocation
- This value is obtained from the location parameter in the meta model.public LyPeerDataProvider(LyApplication application, java.lang.String id)
application
- Current application instanceid
- Identifier of this data provider.Method Detail |
---|
public LyPeerClass getPeerClass(java.lang.String id)
id
- Id of the searched peer class.
public boolean validate(LyInfoList<LyClassInfo> classInfos)
validate
in class LyDataProvider
classInfos
- Classes to validate.
public boolean validateNotifier(LyInfoList<LyClassInfo> classInfos)
validateNotifier
in class LyDataProvider
classInfos
- Classes to validate.
public void validate(LyClassInfo classInfo, LyFieldInfo fieldInfo)
classInfo
- Class info to which the field info belongs to.fieldInfo
- Field info that is validated.public void invalidate(LyClassInfo classInfo, LyFieldInfo fieldInfo)
classInfo
- Class info to which the field info belongs to.fieldInfo
- Field info that is invalidated.public void load(LyApplication application, LyPeerDataProvider importProvider, boolean enableReloading)
application
- Application on which peer objects are imported.importProvider
- Provider that gives imported objects.enableReloading
- Enable reloading of existing objects.public void resetPeerClasses()
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |