LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.peer.info
Class LyInfoProvider

java.lang.Object
  extended by leon.peer.LyDataProvider
      extended by leon.peer.info.LyInfoProvider

public class LyInfoProvider
extends LyDataProvider

This class is used by DataSources to transmit their requests to an instance of RequestEncoder. The LyInfoProvider is used for info classes.

See Also:
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

__VERSION

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

LyInfoProvider

public LyInfoProvider(LyApplication application,
                      LyLocation location)
Constructs a info data provider.

Parameters:
application - Current application instance
location - This value is obtained from the location parameter in the meta model.

LyInfoProvider

public LyInfoProvider(LyApplication application,
                      java.lang.String id)
Deprecated. should use LyInfoDataProvider(LyApplication application, LyLocation location) instead of this constructor.

Constructs a info data provider.

Parameters:
application - Current application instance
id - Identifier of this dataProvider. This value is obtained from the location parameter in the meta model.
Method Detail

getRequestEncoder

public LyRequestEncoder getRequestEncoder(LyDataSource dataSource)
Description copied from class: LyDataProvider
Create a specific request encoder for the specified dataSource.

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.

Specified by:
getRequestEncoder in class LyDataProvider
Parameters:
dataSource - reference to the dataSource associated to this request encoder.
Returns:
the specific LyRequestEncoder for the specified dataSource.

validate

public 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. Validating a peer data provider consists to :

Overrides:
validate in class LyDataProvider
Parameters:
classInfos - Classes to validate.
Returns:
True if the validation was successful, false otherwise.

close

public boolean close()
Closes all connections from the connection pool.

Overrides:
close in class LyDataProvider
Returns:
true if the request completed successfully.
See Also:
LyDataProvider.createConnections(int)

canBeFullyLoaded

public boolean canBeFullyLoaded(LyClass aClass)
Description copied from class: LyDataProvider
Indicates if this data provider can be fully loaded.

Overrides:
canBeFullyLoaded in class LyDataProvider
Returns:
true if the provider can load all objects. False otherwise.

(c) January 2013 - W4 S.A.

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