LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.peer.file
Class LyImportFileConnection

java.lang.Object
  extended by leon.peer.LyConnection
      extended by leon.peer.file.LyFileConnection
          extended by leon.peer.file.LyImportFileConnection

public class LyImportFileConnection
extends LyFileConnection

This class is used as a connection for import.

See Also:
LyConnection, LyFileConnection

Field Summary
static java.lang.String __VERSION
           
 
Fields inherited from class leon.peer.file.LyFileConnection
TEST_CHARSET
 
Constructor Summary
LyImportFileConnection(LyApplication application, java.lang.String filePath)
          Constructor.
 
Method Summary
 int getStartLine()
          Return the start line.
 void setDecodingType(int decodingType)
          Sets the decoding type.
 void setFileFieldIds(java.util.Vector<java.lang.String> fieldIds)
          Sets the list of the field identifers contained in the file.
 void setLogicalClass(LyClassInfo classInfo)
          Sets the logical class associated with this connection.
 void setStartLine(int startLine)
          Sets the start line.
 
Methods inherited from class leon.peer.file.LyFileConnection
closeFile, getConnectionCharset, openFile, readFile, writeFile, writeLine
 
Methods inherited from class leon.peer.LyConnection
addValue, autoCommit, close, commit, dump, getError, getUID, getValue, isClosed, isReserved, prepareCommit, released, reserved, rollback, setDataProvider, setError, setUID
 
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

LyImportFileConnection

public LyImportFileConnection(LyApplication application,
                              java.lang.String filePath)
Constructor.

Parameters:
classInfo - ClassInfo used by the request encoder.
Method Detail

setDecodingType

public void setDecodingType(int decodingType)
Sets the decoding type.

Parameters:
decodingType - one of the following:

setFileFieldIds

public void setFileFieldIds(java.util.Vector<java.lang.String> fieldIds)
Sets the list of the field identifers contained in the file.

Parameters:
fieldIds - the list of the field identifers contained in the file.

setLogicalClass

public void setLogicalClass(LyClassInfo classInfo)
Sets the logical class associated with this connection.

Parameters:
classInfo - the new logical class associated with this connection.

setStartLine

public void setStartLine(int startLine)
Sets the start line.

Parameters:
startLine - the index of the first line of the imported file containing real data.

getStartLine

public int getStartLine()
Return the start line.

Overrides:
getStartLine in class LyFileConnection
Returns:
the index of the first line of the imported file containing real data.

(c) January 2013 - W4 S.A.

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