|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compiere.framework.PO
org.compiere.model.X_C_Region
org.compiere.model.MRegion
public final class MRegion
Location Region Model (Value Object)
| Field Summary |
|---|
| Fields inherited from class org.compiere.model.X_C_Region |
|---|
accessLevel, Model, Table_ID, Table_Name, updatedMS |
| Fields inherited from class org.compiere.framework.PO |
|---|
ACCESSLEVEL_ALL, ACCESSLEVEL_CLIENT, ACCESSLEVEL_CLIENTORG, ACCESSLEVEL_ORG, ACCESSLEVEL_SYSTEM, ACCESSLEVEL_SYSTEMCLIENT, ENTITYTYPE_Dictionary, ENTITYTYPE_UserMaintained, I_ZERO, log, p_changeVO, p_info, XML_ATTRIBUTE_AD_Table_ID, XML_ATTRIBUTE_Record_ID |
| Constructor Summary | |
|---|---|
MRegion(Ctx ctx,
int C_Region_ID,
String trxName)
Create empty Region |
|
MRegion(Ctx ctx,
ResultSet rs,
String trxName)
Create Region from current row in ResultSet |
|
MRegion(MCountry country,
String regionName)
Parent Constructor |
|
| Method Summary | |
|---|---|
int |
compare(PO o1,
PO o2)
Compare |
static MRegion |
get(Ctx ctx,
int C_Region_ID)
Get Country (cached) |
static MRegion |
getDefault(Ctx ctx)
Get Default Region |
static MRegion[] |
getRegions(Ctx ctx)
Return Regions as Array |
static MRegion[] |
getRegions(Ctx 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_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, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Comparator |
|---|
equals |
| Constructor Detail |
|---|
public MRegion(Ctx ctx,
int C_Region_ID,
String trxName)
ctx - contextC_Region_ID - idtrxName - transaction
public MRegion(Ctx 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(Ctx ctx,
int C_Region_ID)
ctx - contextC_Region_ID - ID
public static MRegion getDefault(Ctx ctx)
ctx - context
public static MRegion[] getRegions(Ctx ctx)
ctx - context
public static MRegion[] getRegions(Ctx ctx,
int C_Country_ID)
ctx - contextC_Country_ID - country
public String toString()
toString in class X_C_Region
public int compare(PO o1,
PO o2)
compare in interface Comparator<PO>compare in class POo1 - object 1o2 - object 2
public static void main(String[] args)
args -
|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||