LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.peer.xml
Class LyImportXmlDataProvider

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
                  extended by leon.peer.xml.LyImportXmlDataProvider

public class LyImportXmlDataProvider
extends LyXmlDataProvider

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

See Also:
LyXmlExportRequestEncoder

Field Summary
static java.lang.String __VERSION
           
 
Constructor Summary
LyImportXmlDataProvider(LyApplication application, LyLocation location)
          Constructor.
 
Method Summary
 LyConnection createConnection()
          Create a connection for the xml import.
 LyRequestEncoder getRequestEncoder(LyDataSource dataSource)
          Create a specific request encoder for the specified dataSource.
 void setBuffer(java.lang.String buffer)
          Set the buffer to import.
 void setFilePath(java.lang.String filePath)
          Set the path of the file to import.
 
Methods inherited from class leon.peer.xml.LyXmlDataProvider
setLocation
 
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

LyImportXmlDataProvider

public LyImportXmlDataProvider(LyApplication application,
                               LyLocation location)
Constructor.

Method Detail

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.

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

setFilePath

public void setFilePath(java.lang.String filePath)
Set the path of the file to import.

Parameters:
filePath - The path of the file to import.

setBuffer

public void setBuffer(java.lang.String buffer)
Set the buffer to import.

Parameters:
buffer - The buffer to import.

createConnection

public LyConnection createConnection()
Create a connection for the xml import.

Returns:
The connection.
See Also:
LyDataProvider.getConnection(), LyDataProvider.releaseConnection(leon.peer.LyConnection)

(c) January 2013 - W4 S.A.

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