|
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_Location
org.compiere.model.MLocation
public class MLocation
Loaction (Address)
| 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_Location |
|---|
accessLevel, COLUMNNAME_Address1, COLUMNNAME_Address2, COLUMNNAME_Address3, COLUMNNAME_Address4, COLUMNNAME_C_City_ID, COLUMNNAME_C_Country_ID, COLUMNNAME_C_Location_ID, COLUMNNAME_C_Region_ID, COLUMNNAME_City, COLUMNNAME_Postal, COLUMNNAME_Postal_Add, COLUMNNAME_RegionName, Model, Table_ID, Table_Name |
| Constructor Summary | |
|---|---|
MLocation(MCountry country,
MRegion region)
Parent Constructor |
|
MLocation(Properties ctx,
int C_Country_ID,
int C_Region_ID,
String city,
String trxName)
Full Constructor |
|
MLocation(Properties ctx,
int C_Location_ID,
String trxName)
Standard Constructor |
|
MLocation(Properties ctx,
ResultSet rs,
String trxName)
Load Constructor |
|
| Method Summary | |
|---|---|
protected boolean |
afterSave(boolean newRecord,
boolean success)
After Save |
protected boolean |
beforeSave(boolean newRecord)
Before Save |
boolean |
equals(int C_Country_ID,
int C_Region_ID,
String Postal,
String Postal_Add,
String City,
String Address1,
String Address2)
Compares to current record |
boolean |
equals(Object cmp)
Equals |
static MLocation |
get(Properties ctx,
int C_Location_ID,
String trxName)
Get Location from Cache |
static MLocation |
getBPLocation(Properties ctx,
int C_BPartner_Location_ID,
String trxName)
Load Location with ID if Business Partner Location |
String |
getCityRegionPostal()
Get formatted City Region Postal line |
MCountry |
getCountry()
Get Country |
String |
getCountry(boolean local)
Get Country Line |
String |
getCountryName()
Get Country Name |
MRegion |
getRegion()
Get Region |
String |
getRegionName()
Get (local) Region Name |
String |
getRegionName(boolean getFromRegion)
Get Region Name |
boolean |
isAddressLinesReverse()
Print Address Reverse Order |
void |
setC_Country_ID(int C_Country_ID)
Set C_Country_ID |
void |
setC_Region_ID(int C_Region_ID)
Set C_Region_ID |
void |
setCountry(MCountry country)
Set Country |
void |
setRegion(MRegion region)
Set Region |
String |
toString()
Return printable String representation |
String |
toStringCR()
Return String representation with CR at line end |
String |
toStringX()
Return detailed String representation |
| Methods inherited from class org.compiere.model.X_C_Location |
|---|
get_AccessLevel, getAddress1, getAddress2, getAddress3, getAddress4, getC_City_ID, getC_City, getC_Country_ID, getC_Country, getC_Location_ID, getC_Region_ID, getC_Region, getCity, getKeyNamePair, getPostal_Add, getPostal, initPO, setAddress1, setAddress2, setAddress3, setAddress4, setC_City_ID, setC_Location_ID, setCity, setPostal_Add, setPostal, setRegionName |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Comparator |
|---|
compare |
| Methods inherited from interface org.compiere.model.I_Persistent |
|---|
save |
| Constructor Detail |
|---|
public MLocation(Properties ctx,
int C_Location_ID,
String trxName)
ctx - contextC_Location_ID - idtrxName - transaction
public MLocation(MCountry country,
MRegion region)
country - mandatory countryregion - optional region
public MLocation(Properties ctx,
int C_Country_ID,
int C_Region_ID,
String city,
String trxName)
ctx - contextC_Country_ID - countryC_Region_ID - regioncity - citytrxName - transaction
public MLocation(Properties ctx,
ResultSet rs,
String trxName)
ctx - contextrs - result settrxName - transaction| Method Detail |
|---|
public static MLocation get(Properties ctx,
int C_Location_ID,
String trxName)
ctx - contextC_Location_ID - idtrxName - transaction
public static MLocation getBPLocation(Properties ctx,
int C_BPartner_Location_ID,
String trxName)
ctx - contextC_BPartner_Location_ID - Business Partner LocationtrxName - transaction
public void setCountry(MCountry country)
country - public void setC_Country_ID(int C_Country_ID)
setC_Country_ID in interface I_C_LocationsetC_Country_ID in class X_C_LocationC_Country_ID - idpublic MCountry getCountry()
public String getCountryName()
public String getCountry(boolean local)
local - if true only foreign country is returned
public void setRegion(MRegion region)
region - public void setC_Region_ID(int C_Region_ID)
setC_Region_ID in interface I_C_LocationsetC_Region_ID in class X_C_LocationC_Region_ID - regionpublic MRegion getRegion()
public String getRegionName()
getRegionName in interface I_C_LocationgetRegionName in class X_C_Locationpublic String getRegionName(boolean getFromRegion)
getFromRegion - get from region (not locally)
public boolean equals(int C_Country_ID,
int C_Region_ID,
String Postal,
String Postal_Add,
String City,
String Address1,
String Address2)
C_Country_ID - if 0 ignoredC_Region_ID - if 0 ignoredPostal - match postalPostal_Add - match postal addCity - match cityAddress1 - match address 1Address2 - match addtess 2
public boolean equals(Object cmp)
equals in interface Comparatorequals in class POcmp - comperator
public boolean isAddressLinesReverse()
public String getCityRegionPostal()
public String toString()
toString in class X_C_Locationpublic String toStringCR()
public String toStringX()
protected boolean beforeSave(boolean newRecord)
beforeSave in class POnewRecord - new
protected boolean afterSave(boolean newRecord,
boolean success)
afterSave in class POnewRecord - newsuccess - success
|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||