|
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.info.LyInfoProvider
public class LyInfoProvider
This class is used by DataSources to transmit their requests to an instance of RequestEncoder. The LyInfoProvider is used for info classes.
LyInfoRequestEncoder
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
Constructor Summary | |
---|---|
LyInfoProvider(LyApplication application,
LyLocation location)
Constructs a info data provider. |
|
LyInfoProvider(LyApplication application,
java.lang.String id)
Deprecated. should use LyInfoDataProvider(LyApplication application, LyLocation location) instead of this constructor. |
Method Summary | |
---|---|
boolean |
canBeFullyLoaded(LyClass aClass)
Indicates if this data provider can be fully loaded. |
boolean |
close()
Closes all connections from the connection pool. |
LyRequestEncoder |
getRequestEncoder(LyDataSource dataSource)
Create a specific request encoder for the specified dataSource. |
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. |
Methods inherited from class leon.peer.LyDataProvider |
---|
dumpConnections, getApplication, getConnection, getEnvironment, getEventNotifier, getId, getLocation, getNbAvailableConnection, getNbConnection, hasLostConnection, isConnectionReady, isModified, isModified, isNotifierReady, isXASupported, releaseConnection, save, setEventNotifier, setLocation, setModified, setNbConnection, sleep, validate, validateNotifier, 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 LyInfoProvider(LyApplication application, LyLocation location)
application
- Current application instancelocation
- This value is obtained from the location parameter in the meta model.public LyInfoProvider(LyApplication application, java.lang.String id)
application
- Current application instanceid
- Identifier of this dataProvider. This value is obtained from the
location parameter in the meta model.Method Detail |
---|
public LyRequestEncoder getRequestEncoder(LyDataSource dataSource)
LyDataProvider
This method is used internally, but subclasses should override this method and create an instance of their own (specific) request encoder.
Default returns a LyRequestEncoder instance.
getRequestEncoder
in class LyDataProvider
dataSource
- reference to the dataSource associated to this request encoder.
public boolean validate(LyInfoList<LyClassInfo> classInfos)
validate
in class LyDataProvider
classInfos
- Classes to validate.
public boolean close()
close
in class LyDataProvider
LyDataProvider.createConnections(int)
public boolean canBeFullyLoaded(LyClass aClass)
LyDataProvider
canBeFullyLoaded
in class LyDataProvider
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |