Package org.compiere.model
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 Summary
Constructors Modifier Constructor Description protected
TranslationTable(String baseTableName)
Translation Table
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
createTranslation(PO po)
Create Translation record from POstatic boolean
delete(PO po)
Delete translation for poboolean
deleteTranslation(PO po)
Delete Translationstatic TranslationTable
get(String baseTableName)
Get TranslationTable from Cachestatic int
getActiveLanguages(boolean requery)
Get Number of active Translation Languagesstatic boolean
isActiveLanguages(boolean requery)
Are there active Translation Languagesboolean
resetTranslationFlag(PO po)
Reset Translation Flagstatic boolean
save(PO po, boolean newRecord)
Save translation for poString
toString()
String Representation
-
-
-
Constructor Detail
-
TranslationTable
protected TranslationTable(String baseTableName)
Translation Table- Parameters:
baseTableName
- base table name
-
-
Method Detail
-
save
public static boolean save(PO po, boolean newRecord)
Save translation for po- Parameters:
po
- persistent objectnewRecord
- 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
-
-