LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.peer.file
Class LyFileInfoDataProvider

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
                  extended by leon.peer.file.LyFileInfoDataProvider
Direct Known Subclasses:
LyImportFileDataProvider

public class LyFileInfoDataProvider
extends LyFileDataProvider

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
           
 
Fields inherited from class leon.peer.file.LyFileDataProvider
SAVE_XML_FILES
 
Constructor Summary
LyFileInfoDataProvider(LyApplication application, LyLocation location)
          Default constructor Initialization is done with the init method.
LyFileInfoDataProvider(LyApplication application, java.lang.String id, java.lang.String baseDirectory)
          Deprecated. use LyFileInfoDataProvider(Lyapplication, LyLocation) instead.
 
Method Summary
 LyConnection createConnection()
          This class is a factory to create a LyConnection instance.
 void validate(LyClassInfo classInfo, LyFieldInfo fieldInfo)
          Validates the field info of the given class info : this mainly consists to create or retrieve the associated peer field.
 
Methods inherited from class leon.peer.file.LyFileDataProvider
close, getRequestEncoder, setLocation
 
Methods inherited from class leon.peer.LyPeerDataProvider
getPeerClass, invalidate, load, resetPeerClasses, 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
Constructor Detail

LyFileInfoDataProvider

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


LyFileInfoDataProvider

public LyFileInfoDataProvider(LyApplication application,
                              java.lang.String id,
                              java.lang.String baseDirectory)
Deprecated. use LyFileInfoDataProvider(Lyapplication, LyLocation) instead.

Constructor.

Parameters:
application -
id -
baseDirectory -
Method Detail

validate

public void validate(LyClassInfo classInfo,
                     LyFieldInfo fieldInfo)
Validates the field info of the given class info : this mainly consists to create or retrieve the associated peer field.

Overrides:
validate in class LyPeerDataProvider
Parameters:
classInfo - Class info to which the field info belongs to.
fieldInfo - Field info that is validated.

createConnection

public LyConnection createConnection()
Description copied from class: LyFileDataProvider
This class is a factory to create a LyConnection instance. Current implementation only return null, so this method must be overriden. This instance depends on the nature of the connection and must provide services such as opening/closing the connection, and (specific) accessor to the connection service.

This method is ovberriden and used internally. Use getConnection() to access to a connection instance.

Parent class LyDataProvider implements a connection pool so this Method may be called several times.

Returns:
a new Connection instance. The connection instance is used in the specific LyRequest encoder implementation.
See Also:
LyDataProvider.getConnection(), LyDataProvider.releaseConnection(leon.peer.LyConnection)

(c) January 2013 - W4 S.A.

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