Package org.adempiere.pipo2
Class PackIn
java.lang.Object
org.adempiere.pipo2.PackIn
IntPackIn Tool.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add to column id cachevoid
addImportDetail
(X_AD_Package_Imp_Detail importDetail) void
add to table id cacheint
getColumnId
(String tableName, String columnName) find column id from cacheint
getTableId
(String tableName) Find table id from cacheimportXML
(InputStream input, Properties ctx, String trxName) importXML
(String fileName, Properties ctx, String trxName) Uses PackInHandler to update AD.boolean
boolean
byte[]
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)
-
Constructor Details
-
PackIn
public PackIn()
-
-
Method Details
-
addTable
add to table id cache- Parameters:
tableName
-tableId
-
-
getTableId
Find table id from cache- Parameters:
tableName
-- Returns:
- tableId
-
addColumn
add to column id cache- Parameters:
tableName
-columnName
-columnId
-
-
getColumnId
find column id from cache- Parameters:
tableName
-columnName
-- Returns:
- column id
-
importXML
Uses PackInHandler to update AD.- Parameters:
fileName
- xml file to read- Returns:
- status message
- Throws:
Exception
-
addImportDetail
-
importXML
- Parameters:
input
-ctx
-trxName
-- Returns:
- status message
-
getPackageDirectory
-
setPackageDirectory
-
isUpdateDictionary
public boolean isUpdateDictionary() -
setUpdateDictionary
public void setUpdateDictionary(boolean updateDictionary) -
readBlob
- Throws:
IOException
-
readFilesFromBlob
- Throws:
IOException
-
getPackageName
- Returns:
- package name
-
setPackageName
- Parameters:
packageName
-
-
getPackageVersion
- Returns:
- package Version
-
setPackageVersion
- Parameters:
packageVersion
-
-
getNotifier
-
getAD_Package_Imp_Proc
-
setAD_Package_Imp_Proc
-
setSuccess
public void setSuccess(boolean success) -
isSuccess
public boolean isSuccess()
-