Package org.compiere.model
Class TranslationTable
java.lang.Object
org.compiere.model.TranslationTable
Translation Table Management
- Version:
- $Id: TranslationTable.java,v 1.2 2006/07/30 00:54:54 jjanke Exp $
- Author:
- Jorg Janke
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
createTranslation
(PO po) Create Translation record from POstatic boolean
Delete translation for poboolean
deleteTranslation
(PO po) Delete Translationstatic TranslationTable
Get TranslationTable from Cachestatic int
getActiveLanguages
(boolean requery) Get Number of active Translation Languagesstatic boolean
isActiveLanguages
(boolean requery) Are there active Translation Languagesboolean
Reset Translation Flagstatic boolean
Save translation for potoString()
String Representation
-
Constructor Details
-
TranslationTable
Translation Table- Parameters:
baseTableName
- base table name
-
-
Method Details
-
save
Save translation for po- Parameters:
po
- persistent objectnewRecord
- new- Returns:
- true if no active language or translation saved/reset
-
delete
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
Get TranslationTable from Cache- Parameters:
baseTableName
- base table name- Returns:
- TranslationTable
-
createTranslation
Create Translation record from PO- Parameters:
po
- base table record- Returns:
- true if inserted or no translation
-
resetTranslationFlag
Reset Translation Flag- Parameters:
po
- po- Returns:
- true if updated or no translations
-
deleteTranslation
Delete Translation- Parameters:
po
- po- Returns:
- true if udeleted or no translations
-
toString
String Representation
-