|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectleon.peer.LyDataProvider
leon.peer.LyPeerDataProvider
leon.peer.util.LyTableDataProvider
leon.peer.file.LyFileDataProvider
leon.peer.file.LyFileInfoDataProvider
leon.peer.file.LyImportFileDataProvider
public class LyImportFileDataProvider
This class is used by DataSources to transmit their requests to an instance of RequestEncoder.
LyRowObject
,
LyTableClass
,
LyColumnField
,
LyFileRequestEncoder
,
LyFileConnection
,
LyImportFileConnection
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
Fields inherited from class leon.peer.file.LyFileDataProvider |
---|
SAVE_XML_FILES |
Constructor Summary | |
---|---|
LyImportFileDataProvider(LyApplication application,
LyLocation location)
Default constructor Initialization is done with the init method. |
|
LyImportFileDataProvider(LyApplication application,
java.lang.String id,
java.lang.String filePath)
Deprecated. use LyImportFileDataProvider(LyApplication, LyLocation) instead. |
Method Summary | |
---|---|
void |
addErrorLine(int lineNumber)
Adds a line containing an error. |
LyConnection |
createConnection()
This class is a factory to create a LyConnection instance. |
java.util.BitSet |
getErrorLines()
Returns the list of lines containing errors. |
void |
setDecodingType(int decodingType)
Sets the decoding type. |
void |
setFileFieldIds(java.util.Vector<java.lang.String> fieldIds)
Sets the list of the fields contained in the file. |
void |
setFilePath(java.lang.String filePath)
|
void |
setLogicalClass(LyClassInfo classInfo)
Sets the logical class associated with this import data provider. |
void |
setStartLine(int startLine)
Sets the start line. |
Methods inherited from class leon.peer.file.LyFileInfoDataProvider |
---|
validate |
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 |
---|
public static final java.lang.String __VERSION
Constructor Detail |
---|
public LyImportFileDataProvider(LyApplication application, LyLocation location)
public LyImportFileDataProvider(LyApplication application, java.lang.String id, java.lang.String filePath)
application
- id
- filePath
- Method Detail |
---|
public void setFilePath(java.lang.String filePath)
public void setDecodingType(int decodingType)
decodingType
- one of the following:
public void setFileFieldIds(java.util.Vector<java.lang.String> fieldIds)
fields
- the list of the fields contained in the file.public void setLogicalClass(LyClassInfo classInfo)
fields
- the list of the fields contained in the file.public void setStartLine(int startLine)
startLine
- the index of the first line of the imported file containing real data.public void addErrorLine(int lineNumber)
lineNumber
- the index of the line containing the error.public java.util.BitSet getErrorLines()
public LyConnection createConnection()
LyFileDataProvider
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.
createConnection
in class LyFileInfoDataProvider
LyDataProvider.getConnection()
,
LyDataProvider.releaseConnection(leon.peer.LyConnection)
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |