LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.peer.xml
Class LyXmlDataProvider

java.lang.Object
  extended by leon.peer.LyDataProvider
      extended by leon.peer.LyPeerDataProvider
          extended by leon.peer.util.LyTableDataProvider
              extended by leon.peer.xml.LyXmlDataProvider
Direct Known Subclasses:
LyImportXmlDataProvider, LyXmlFileDataProvider

public class LyXmlDataProvider
extends LyTableDataProvider

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

See Also:
LyXmlRequestEncoder, LyXmlConnection

Field Summary
static java.lang.String __VERSION
           
 
Constructor Summary
LyXmlDataProvider(LyApplication application, LyLocation location)
          Default constructor Initialization is done with the init method.
 
Method Summary
 LyRequestEncoder getRequestEncoder(LyDataSource dataSource)
          Create a specific request encoder for the specified dataSource.
 void setLocation(LyLocation location)
          Sets location on provider.
 
Methods inherited from class leon.peer.LyPeerDataProvider
getPeerClass, invalidate, load, resetPeerClasses, validate, validate, validateNotifier
 
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, setModified, setNbConnection, sleep, validate, 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

LyXmlDataProvider

public LyXmlDataProvider(LyApplication application,
                         LyLocation location)
Default constructor Initialization is done with the init method.

Method Detail

setLocation

public void setLocation(LyLocation location)
Sets location on provider.

Overrides:
setLocation in class LyDataProvider
Parameters:
location - New location for the provider.

getRequestEncoder

public LyRequestEncoder getRequestEncoder(LyDataSource dataSource)
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.

(c) January 2013 - W4 S.A.

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