Package org.adempiere.pipo2
Class PackIn
- java.lang.Object
-
- org.adempiere.pipo2.PackIn
-
public class PackIn extends Object
IntPackIn Tool.
-
-
Constructor Summary
Constructors Constructor Description PackIn()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addColumn(String tableName, String columnName, int columnId)
add to column id cachevoid
addImportDetail(X_AD_Package_Imp_Detail importDetail)
void
addTable(String tableName, int tableId)
add to table id cacheX_AD_Package_Imp_Proc
getAD_Package_Imp_Proc()
int
getColumnId(String tableName, String columnName)
find column id from cachePackInNotifier
getNotifier()
String
getPackageDirectory()
String
getPackageName()
String
getPackageVersion()
int
getTableId(String tableName)
Find table id from cacheString
importXML(InputStream input, Properties ctx, String trxName)
String
importXML(String fileName, Properties ctx, String trxName)
Uses PackInHandler to update AD.boolean
isSuccess()
boolean
isUpdateDictionary()
byte[]
readBlob(String fileName)
File[]
readFilesFromBlob(String fileName)
void
setAD_Package_Imp_Proc(X_AD_Package_Imp_Proc packinProc)
void
setPackageDirectory(String packageDirectory)
void
setPackageName(String packageName)
void
setPackageVersion(String packageVersion)
void
setSuccess(boolean success)
void
setUpdateDictionary(boolean updateDictionary)
-
-
-
Method Detail
-
addTable
public void addTable(String tableName, int tableId)
add to table id cache- Parameters:
tableName
-tableId
-
-
getTableId
public int getTableId(String tableName)
Find table id from cache- Parameters:
tableName
-- Returns:
- tableId
-
addColumn
public void addColumn(String tableName, String columnName, int columnId)
add to column id cache- Parameters:
tableName
-columnName
-columnId
-
-
getColumnId
public int getColumnId(String tableName, String columnName)
find column id from cache- Parameters:
tableName
-columnName
-- Returns:
- column id
-
importXML
public String importXML(String fileName, Properties ctx, String trxName) throws Exception
Uses PackInHandler to update AD.- Parameters:
fileName
- xml file to read- Returns:
- status message
- Throws:
Exception
-
addImportDetail
public void addImportDetail(X_AD_Package_Imp_Detail importDetail)
-
importXML
public String importXML(InputStream input, Properties ctx, String trxName)
- Parameters:
input
-ctx
-trxName
-- Returns:
- status message
-
getPackageDirectory
public String getPackageDirectory()
-
setPackageDirectory
public void setPackageDirectory(String packageDirectory)
-
isUpdateDictionary
public boolean isUpdateDictionary()
-
setUpdateDictionary
public void setUpdateDictionary(boolean updateDictionary)
-
readBlob
public byte[] readBlob(String fileName) throws IOException
- Throws:
IOException
-
readFilesFromBlob
public File[] readFilesFromBlob(String fileName) throws IOException
- Throws:
IOException
-
getPackageName
public String getPackageName()
- Returns:
- package name
-
setPackageName
public void setPackageName(String packageName)
- Parameters:
packageName
-
-
getPackageVersion
public String getPackageVersion()
- Returns:
- package Version
-
setPackageVersion
public void setPackageVersion(String packageVersion)
- Parameters:
packageVersion
-
-
getNotifier
public PackInNotifier getNotifier()
-
getAD_Package_Imp_Proc
public X_AD_Package_Imp_Proc getAD_Package_Imp_Proc()
-
setAD_Package_Imp_Proc
public void setAD_Package_Imp_Proc(X_AD_Package_Imp_Proc packinProc)
-
setSuccess
public void setSuccess(boolean success)
-
isSuccess
public boolean isSuccess()
-
-