LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.peer.local
Class LyLocalDataProvider

java.lang.Object
  extended by leon.peer.LyDataProvider
      extended by leon.peer.local.LyLocalDataProvider

public final class LyLocalDataProvider
extends LyDataProvider

This class represents the data provider used for local class infos.

See Also:
LyClassInfo

Field Summary
static java.lang.String __VERSION
           
 
Constructor Summary
LyLocalDataProvider(LyApplication application, LyLocation location)
          Constructs a local data provider.
 
Method Summary
 long getNextId()
          Returns the next computed value for an id.
 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 classInfo.
 boolean wakeUp()
          This method is called when the application is going out of sleeping mode Default implementation call create the connection pool and wakes up the notifier.
 
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
 
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

LyLocalDataProvider

public LyLocalDataProvider(LyApplication application,
                           LyLocation location)
Constructs a local data provider.

Parameters:
application - current application instance
location - this value is created in LyApplication.createProviders()
Method Detail

validate

public boolean validate(LyInfoList<LyClassInfo> classInfos)
This method is used to build all the class peers for all the classInfo. It must be specialized by subclasses. Basically, this method associates the dataProvider with local classes. A class is local if there is no binding.

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

getRequestEncoder

public LyRequestEncoder getRequestEncoder(LyDataSource dataSource)
Create a specific request encoder for the specified dataSource.

Specified by:
getRequestEncoder in class LyDataProvider
Parameters:
dataSource - Data source for which is request encoder is requested.
Returns:
A LyLocalRequestEncoder for the specified dataSource.

getNextId

public long getNextId()
Returns the next computed value for an id.

Returns:
the next free id.

wakeUp

public boolean wakeUp()
This method is called when the application is going out of sleeping mode Default implementation call create the connection pool and wakes up the notifier.

Overrides:
wakeUp in class LyDataProvider
See Also:
LyDataProvider.sleep()

(c) January 2013 - W4 S.A.

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