|
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_Region
org.compiere.model.MRegion
public final class MRegion
Localtion Region Model (Value Object)
| 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_C_Region |
|---|
accessLevel, COLUMNNAME_C_Country_ID, COLUMNNAME_C_Region_ID, COLUMNNAME_Description, COLUMNNAME_IsDefault, COLUMNNAME_Name, Model, Table_ID, Table_Name |
| Constructor Summary | |
|---|---|
MRegion(MCountry country,
String regionName)
Parent Constructor |
|
MRegion(Properties ctx,
int C_Region_ID,
String trxName)
Create empty Region |
|
MRegion(Properties ctx,
ResultSet rs,
String trxName)
Create Region from current row in ResultSet |
|
| Method Summary | |
|---|---|
int |
compare(Object o1,
Object o2)
Compare |
static MRegion |
get(Properties ctx,
int C_Region_ID)
Get Country (cached) |
static MRegion |
getDefault(Properties ctx)
Get Default Region |
static MRegion[] |
getRegions(Properties ctx)
Return Regions as Array |
static MRegion[] |
getRegions(Properties ctx,
int C_Country_ID)
Return Array of Regions of Country |
static void |
main(String[] args)
Test / Load |
String |
toString()
Return Name |
| Methods inherited from class org.compiere.model.X_C_Region |
|---|
get_AccessLevel, getC_Country_ID, getC_Country, getC_Region_ID, getDescription, getKeyNamePair, getName, initPO, isDefault, setC_Country_ID, setC_Region_ID, setDescription, setIsDefault, setName |
| 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 MRegion(Properties ctx,
int C_Region_ID,
String trxName)
ctx - contextC_Region_ID - idtrxName - transaction
public MRegion(Properties ctx,
ResultSet rs,
String trxName)
ctx - contextrs - result settrxName - transaction
public MRegion(MCountry country,
String regionName)
country - countryregionName - Region Name| Method Detail |
|---|
public static MRegion get(Properties ctx,
int C_Region_ID)
ctx - contextC_Region_ID - ID
public static MRegion getDefault(Properties ctx)
ctx - context
public static MRegion[] getRegions(Properties ctx)
ctx - context
public static MRegion[] getRegions(Properties ctx,
int C_Country_ID)
ctx - contextC_Country_ID - country
public String toString()
toString in class X_C_Region
public int compare(Object o1,
Object o2)
compare in interface Comparatorcompare in class POo1 - object 1o2 - object 2
public static void main(String[] args)
args -
|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||