|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compiere.model.PO
org.compiere.model.X_AD_Language
org.compiere.model.MLanguage
public class MLanguage
Language Model
| Field Summary |
|---|
| Fields inherited from class org.compiere.model.PO |
|---|
ACCESSLEVEL_ALL, ACCESSLEVEL_CLIENT, ACCESSLEVEL_CLIENTORG, ACCESSLEVEL_ORG, ACCESSLEVEL_SYSTEM, ACCESSLEVEL_SYSTEMCLIENT, ENTITYTYPE_Dictionary, ENTITYTYPE_UserMaintained, I_ZERO, log, p_ctx, p_info, XML_ATTRIBUTE_AD_Table_ID, XML_ATTRIBUTE_Record_ID |
| Fields inherited from interface org.compiere.model.I_AD_Language |
|---|
accessLevel, COLUMNNAME_AD_Language, COLUMNNAME_AD_Language_ID, COLUMNNAME_CountryCode, COLUMNNAME_DatePattern, COLUMNNAME_IsBaseLanguage, COLUMNNAME_IsDecimalPoint, COLUMNNAME_IsSystemLanguage, COLUMNNAME_LanguageISO, COLUMNNAME_Name, COLUMNNAME_Processing, COLUMNNAME_TimePattern, Model, Table_ID, Table_Name |
| Constructor Summary | |
|---|---|
MLanguage(Properties ctx,
int AD_Language_ID,
String trxName)
Standard Constructor |
|
MLanguage(Properties ctx,
ResultSet rs,
String trxName)
Load Constructor |
|
| Method Summary | |
|---|---|
protected boolean |
afterSave(boolean newRecord,
boolean success)
AfterSave |
protected boolean |
beforeSave(boolean newRecord)
Before Save |
static MLanguage |
get(Properties ctx,
Language lang)
Get Language Model from Language |
static MLanguage |
get(Properties ctx,
String AD_Language)
Get Language Model from AD_Language |
SimpleDateFormat |
getDateFormat()
Get (Short) Date Format. |
Locale |
getLocale()
Get Locale |
static MLanguage[] |
getWithLanguage(Properties ctx,
String LanguageISO)
Load Languages (variants) with Language |
static void |
main(String[] args)
Setup |
int |
maintain(boolean add)
Maintain Translation |
static void |
maintain(Properties ctx)
Maintain all active languages |
String |
toString()
String Representation |
| Methods inherited from class org.compiere.model.X_AD_Language |
|---|
get_AccessLevel, getAD_Language_ID, getAD_Language, getCountryCode, getDatePattern, getKeyNamePair, getLanguageISO, getName, getTimePattern, initPO, isBaseLanguage, isDecimalPoint, isProcessing, isSystemLanguage, setAD_Language_ID, setAD_Language, setCountryCode, setDatePattern, setIsBaseLanguage, setIsDecimalPoint, setIsSystemLanguage, setLanguageISO, setName, setProcessing, setTimePattern |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.compiere.model.I_Persistent |
|---|
save |
| Constructor Detail |
|---|
public MLanguage(Properties ctx,
int AD_Language_ID,
String trxName)
ctx - contextAD_Language_ID - idtrxName - transaction
public MLanguage(Properties ctx,
ResultSet rs,
String trxName)
ctx - contextrs - result settrxName - transaction| Method Detail |
|---|
public static MLanguage get(Properties ctx,
Language lang)
ctx - contextlang - language
public static MLanguage get(Properties ctx,
String AD_Language)
ctx - contextAD_Language - language e.g. en_US
public static MLanguage[] getWithLanguage(Properties ctx,
String LanguageISO)
ctx - contextLanguageISO - language (2 letter) e.g. en
public static void maintain(Properties ctx)
ctx - contextpublic String toString()
toString in class X_AD_Languagepublic Locale getLocale()
public SimpleDateFormat getDateFormat()
protected boolean beforeSave(boolean newRecord)
beforeSave in class POnewRecord - new
protected boolean afterSave(boolean newRecord,
boolean success)
afterSave in class POnewRecord - newsuccess - success
public int maintain(boolean add)
add - if true add missing records - otherwise delete
public static void main(String[] args)
args - args
|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||