Class PackIn

java.lang.Object
org.adempiere.pipo2.PackIn

public class PackIn extends Object
IntPackIn Tool.
  • Constructor Details

    • PackIn

      public PackIn()
  • Method Details

    • 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()