Package org.compiere.impexp
Class ImpFormat
- java.lang.Object
-
- org.compiere.impexp.ImpFormat
-
public final class ImpFormat extends Object
Import Format a Row- 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/
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addRow(ImpFormatRow row)
Add Format Rowint
getAD_Table_ID()
Get Import Table NameString
getBPartner()
Deprecated.String
getFormatType()
Set Format TypeString
getName()
Get NameImpFormatRow
getRow(int index)
Get Rowint
getRowCount()
Get Row CountString
getSeparatorChar()
static ImpFormat
load(int Id)
Factory loadString[]
parseLine(String line, boolean withLabel, boolean trace, boolean ignoreEmpty)
Parse Line returns ArrayList of valuesvoid
setBPartner(String newBPartner)
Deprecated.void
setFormatType(String newFormatType)
Set Format Typevoid
setName(String newName)
Set Namevoid
setSeparatorChar(String newChar)
void
setTable(int AD_Table_ID)
Import Tableboolean
updateDB(Properties ctx, String line, String trxName)
Insert/Update Database.
-
-
-
Method Detail
-
setName
public void setName(String newName)
Set Name- Parameters:
newName
- new name
-
getName
public String getName()
Get Name- Returns:
- name
-
setSeparatorChar
public void setSeparatorChar(String newChar)
-
getSeparatorChar
public String getSeparatorChar()
-
setTable
public void setTable(int AD_Table_ID)
Import Table- Parameters:
AD_Table_ID
- table
-
getAD_Table_ID
public int getAD_Table_ID()
Get Import Table Name- Returns:
- AD_Table_ID
-
setFormatType
public void setFormatType(String newFormatType)
Set Format Type- Parameters:
newFormatType
- - F/C/T/X
-
getFormatType
public String getFormatType()
Set Format Type- Returns:
- format type - F/C/T/X
-
setBPartner
public void setBPartner(String newBPartner)
Deprecated.Set Business Partner- Parameters:
newBPartner
- (value)
-
getBPartner
public String getBPartner()
Deprecated.Get Business Partner- Returns:
- BPartner (value)
-
addRow
public void addRow(ImpFormatRow row)
Add Format Row- Parameters:
row
- row
-
getRow
public ImpFormatRow getRow(int index)
Get Row- Parameters:
index
- index- Returns:
- Import Format Row
-
getRowCount
public int getRowCount()
Get Row Count- Returns:
- row count
-
load
public static ImpFormat load(int Id)
Factory load- Parameters:
Id
- id- Returns:
- Import Format
-
parseLine
public String[] parseLine(String line, boolean withLabel, boolean trace, boolean ignoreEmpty)
Parse Line returns ArrayList of values- Parameters:
line
- linewithLabel
- true if with labeltrace
- create trace infoignoreEmpty
- - ignore empty fields- Returns:
- Array of values
-
updateDB
public boolean updateDB(Properties ctx, String line, String trxName)
Insert/Update Database.- Parameters:
ctx
- contextline
- linetrxName
- transaction- Returns:
- true if inserted/updated
-
-