leon.peer.file
Class LyFileInfoDataProvider
java.lang.Object
leon.peer.LyDataProvider
leon.peer.LyPeerDataProvider
leon.peer.util.LyTableDataProvider
leon.peer.file.LyFileDataProvider
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
|
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 |
__VERSION
public static final java.lang.String __VERSION
- See Also:
- Constant Field Values
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
-
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)
Website: W4 S.A., contact us: support@w4global.com