Package org.compiere.impexp
Class ImpFormat
java.lang.Object
org.compiere.impexp.ImpFormat
Import implementation using
MImpFormat
and MImpFormatRow
.- Version:
- $Id$
- Author:
- Jorg Janke, Trifon Trifonov, Catura AG (www.catura.de)
- FR [ 3010957 ] Custom Separator Character, https://sourceforge.net/p/adempiere/feature-requests/975/
, eugen.hanussek@klst.com- BF [ 3564464 ] Import File Loader discards input records , https://sourceforge.net/p/adempiere/bugs/2727/
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addRow
(ImpFormatRow row) Add Format Rowint
Get Import Table NameDeprecated.Set Format TypegetName()
Get NamegetRow
(int index) Get Format Rowint
Get Format Row Countstatic ImpFormat
load
(int Id) Load import formatString[]
Parse line and returns list of valuesvoid
setBPartner
(String newBPartner) Deprecated.void
setFormatType
(String newFormatType) Set Format Typevoid
Set Namevoid
setSeparatorChar
(String newChar) Set separator character for columnvoid
setTable
(int AD_Table_ID) Set Import Tableboolean
updateDB
(Properties ctx, String line, String trxName) Insert/Update Database.
-
Constructor Details
-
ImpFormat
Format- Parameters:
name
- nameAD_Table_ID
- tableformatType
- format type
-
-
Method Details
-
setName
Set Name- Parameters:
newName
- new name
-
getName
Get Name- Returns:
- name
-
setSeparatorChar
Set separator character for column- Parameters:
newChar
-
-
getSeparatorChar
- Returns:
- separator character for column
-
setTable
public void setTable(int AD_Table_ID) Set Import Table- Parameters:
AD_Table_ID
- table
-
getAD_Table_ID
public int getAD_Table_ID()Get Import Table Name- Returns:
- AD_Table_ID
-
setFormatType
Set Format Type- Parameters:
newFormatType
- - F/C/T/X
-
getFormatType
Set Format Type- Returns:
- format type - F/C/T/X
-
setBPartner
Deprecated.Set Business Partner- Parameters:
newBPartner
- (value)
-
getBPartner
Deprecated.Get Business Partner- Returns:
- BPartner (value)
-
addRow
Add Format Row- Parameters:
row
- row
-
getRow
Get Format Row- Parameters:
index
- index- Returns:
- Import Format Row or null (if index is not valid)
-
getRowCount
public int getRowCount()Get Format Row Count- Returns:
- format row count
-
load
Load import format- Parameters:
Id
- id- Returns:
- Import Format
-
parseLine
Parse line and returns list of values- Parameters:
line
- linewithLabel
- true if with labeltrace
- create trace infoignoreEmpty
- - ignore empty fields- Returns:
- Array of values
-
updateDB
Insert/Update Database.- Parameters:
ctx
- contextline
- linetrxName
- transaction- Returns:
- true if inserted/updated
-