LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.peer.union
Class LyUnionDataProvider

java.lang.Object
  extended by leon.peer.LyDataProvider
      extended by leon.peer.union.LyUnionDataProvider

public class LyUnionDataProvider
extends LyDataProvider

This class is used by DataSources to transmit their requests to an instance of RequestEncoder.

See Also:
LyInfoRequestEncoder

Field Summary
static java.lang.String __VERSION
           
 
Constructor Summary
LyUnionDataProvider(LyApplication application, LyLocation location)
          Default constructor.
LyUnionDataProvider(LyApplication application, java.lang.String id)
          Deprecated. should use LyUnionDataProvider(LyApplication application, LyLocation location) instead of this constructor.
 
Method Summary
 void completeCaches(LyClassBinding classBinding)
          This method is used to build caches on datasources used in union if they have not one yet.
 void completeCaches(LyInfoList<LyClassInfo> classInfos)
          This method is used to build caches on datasources used in union if they have not one yet.
 LyRequestEncoder getRequestEncoder(LyDataSource dataSource)
          Gets request encoder for a given data source.
 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
canBeFullyLoaded, close, 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

LyUnionDataProvider

public LyUnionDataProvider(LyApplication application,
                           LyLocation location)
Default constructor.

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

LyUnionDataProvider

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

Default constructor.

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)
Gets request encoder for a given data source.

Specified by:
getRequestEncoder in class LyDataProvider
Parameters:
dataSource - Data source for which a request encoder is requiered.
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.

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

completeCaches

public void completeCaches(LyInfoList<LyClassInfo> classInfos)
This method is used to build caches on datasources used in union if they have not one yet.

Parameters:
classInfos - List of classes for which caches are checked.

completeCaches

public void completeCaches(LyClassBinding classBinding)
This method is used to build caches on datasources used in union if they have not one yet.


(c) January 2013 - W4 S.A.

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