Class TranslationTable

java.lang.Object
org.compiere.model.TranslationTable

public class TranslationTable extends Object
Translation Table Management
Version:
$Id: TranslationTable.java,v 1.2 2006/07/30 00:54:54 jjanke Exp $
Author:
Jorg Janke
  • Constructor Details

    • TranslationTable

      protected TranslationTable(String baseTableName)
      Translation Table
      Parameters:
      baseTableName - base table name
  • Method Details

    • save

      public static boolean save(PO po, boolean newRecord)
      Save translation for po
      Parameters:
      po - persistent object
      newRecord - new
      Returns:
      true if no active language or translation saved/reset
    • delete

      public static boolean delete(PO po)
      Delete translation for po
      Parameters:
      po - persistent object
      Returns:
      true if no active language or translation deleted
    • getActiveLanguages

      public static int getActiveLanguages(boolean requery)
      Get Number of active Translation Languages
      Parameters:
      requery - requery
      Returns:
      number of active Translations
    • isActiveLanguages

      public static boolean isActiveLanguages(boolean requery)
      Are there active Translation Languages
      Parameters:
      requery - requery
      Returns:
      true active Translations
    • get

      public static TranslationTable get(String baseTableName)
      Get TranslationTable from Cache
      Parameters:
      baseTableName - base table name
      Returns:
      TranslationTable
    • createTranslation

      public boolean createTranslation(PO po)
      Create Translation record from PO
      Parameters:
      po - base table record
      Returns:
      true if inserted or no translation
    • resetTranslationFlag

      public boolean resetTranslationFlag(PO po)
      Reset Translation Flag
      Parameters:
      po - po
      Returns:
      true if updated or no translations
    • deleteTranslation

      public boolean deleteTranslation(PO po)
      Delete Translation
      Parameters:
      po - po
      Returns:
      true if udeleted or no translations
    • toString

      public String toString()
      String Representation
      Overrides:
      toString in class Object
      Returns:
      info