LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.peer.file
Class LyFileDataProvider

java.lang.Object
  extended by leon.peer.LyDataProvider
      extended by leon.peer.LyPeerDataProvider
          extended by leon.peer.util.LyTableDataProvider
              extended by leon.peer.file.LyFileDataProvider
Direct Known Subclasses:
LyFileInfoDataProvider

public class LyFileDataProvider
extends LyTableDataProvider

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

See Also:
LyRowObject, LyTableClass, LyColumnField, LyFileRequestEncoder, LyFileConnection

Field Summary
static java.lang.String __VERSION
           
static boolean SAVE_XML_FILES
           
 
Constructor Summary
LyFileDataProvider(LyApplication application, LyLocation location)
          Default constructor Initialization is done with the init method.
LyFileDataProvider(LyApplication application, java.lang.String id, java.lang.String baseDirectory, java.lang.String valueSep, java.lang.String fieldSep)
          Deprecated. use LyFileDataProvider(LyApplication, LyLocation) instead.
 
Method Summary
 boolean close()
          Closes all connections from the connection pool.
 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, 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

SAVE_XML_FILES

public static boolean SAVE_XML_FILES
Constructor Detail

LyFileDataProvider

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


LyFileDataProvider

public LyFileDataProvider(LyApplication application,
                          java.lang.String id,
                          java.lang.String baseDirectory,
                          java.lang.String valueSep,
                          java.lang.String fieldSep)
Deprecated. use LyFileDataProvider(LyApplication, LyLocation) instead.

Constructor.

Parameters:
application -
id -
baseDirectory -
valueSep -
fieldSep -
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.

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)

(c) January 2013 - W4 S.A.

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