|
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_C_Country
org.compiere.model.MCountry
public final class MCountry
Location Country Model (Value Object)
| Field Summary |
|---|
| Fields inherited from class org.compiere.model.X_C_Country |
|---|
AD_LANGUAGE_AD_Reference_ID |
| 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 |
| Constructor Summary | |
|---|---|
MCountry(Properties ctx,
int C_Country_ID,
String trxName)
Create empty Country |
|
MCountry(Properties ctx,
ResultSet rs,
String trxName)
Create Country from current row in ResultSet |
|
| Method Summary | |
|---|---|
int |
compare(Object o1,
Object o2)
Compare based on Name |
static MCountry |
get(Properties ctx,
int C_Country_ID)
Get Country (cached) |
static MCountry[] |
getCountries(Properties ctx)
Return Countries as Array |
static MCountry |
getDefault(Properties ctx)
Get Default Country |
String |
getDisplaySequence()
Get Display Sequence |
String |
getDisplaySequenceLocal()
Get Local Display Sequence. |
String |
getTrlName()
Get Translated Name |
boolean |
isValidRegion(int C_Region_ID)
Is the region valid in the country |
static void |
main(String[] args)
Insert Countries |
static void |
setDisplayLanguage(String AD_Language)
Set the Language for Display (toString) |
String |
toString()
Return Name - translated if DisplayLanguage is set. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Comparator |
|---|
equals |
| Methods inherited from interface org.compiere.model.I_Persistent |
|---|
save |
| Constructor Detail |
|---|
public MCountry(Properties ctx,
int C_Country_ID,
String trxName)
ctx - contextC_Country_ID - IDtrxName - transaction
public MCountry(Properties ctx,
ResultSet rs,
String trxName)
ctx - contextrs - ResultSettrxName - transaction| Method Detail |
|---|
public static MCountry get(Properties ctx,
int C_Country_ID)
ctx - contextC_Country_ID - ID
public static MCountry getDefault(Properties ctx)
ctx - context
public static MCountry[] getCountries(Properties ctx)
ctx - context
public static void setDisplayLanguage(String AD_Language)
AD_Language - language or nullpublic String toString()
toString in class X_C_Countrypublic String getTrlName()
public String getDisplaySequence()
getDisplaySequence in interface I_C_CountrygetDisplaySequence in class X_C_Countrypublic String getDisplaySequenceLocal()
getDisplaySequenceLocal in interface I_C_CountrygetDisplaySequenceLocal in class X_C_Country
public int compare(Object o1,
Object o2)
compare in interface Comparatorcompare in class POo1 - object 1o2 - object 2
public boolean isValidRegion(int C_Region_ID)
C_Region_ID - region
public static void main(String[] args)
args - none
|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||