Class Country
- java.lang.Object
-
- org.openbravo.base.structure.BaseOBObject
-
- org.openbravo.model.common.geography.Country
-
- All Implemented Interfaces:
Serializable
,BaseOBObjectDef
,OBNotSingleton
,OBProvidable
,ActiveEnabled
,ClientEnabled
,DynamicEnabled
,Identifiable
,OrganizationEnabled
,Traceable
public class Country extends BaseOBObject implements Traceable, ClientEnabled, OrganizationEnabled, ActiveEnabled
Entity class for entity Country (stored in table C_Country).
Help: The Country Tab defines any country in which you do business. Values entered here are referenced in location records for Business Partners.
NOTE: This class should not be instantiated directly. To instantiate this class theOBProvider
should be used.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
ENTITY_NAME
static String
PROPERTY_ACTIVE
Property active stored in column IsActive in table C_Countrystatic String
PROPERTY_ADDITIONALPOSTALCODE
Property additionalPostalCode stored in column HasPostal_Add in table C_Country
Help: The Additional Postal Code checkbox indicates if this address uses an additional Postal Code. If it is selected an additional field displays for entry of the additional Postal Code.static String
PROPERTY_ADDITIONALPOSTALFORMAT
Property additionalPostalFormat stored in column ExpressionPostal_Add in table C_Country
Help: Additional Postal Formatstatic String
PROPERTY_ADDRESSPRINTFORMAT
Property addressPrintFormat stored in column DisplaySequence in table C_Country
Help: The Address Print format defines the format to be used when this address prints.static String
PROPERTY_CLIENT
Property client stored in column AD_Client_ID in table C_Countrystatic String
PROPERTY_COUNTRYTRLLIST
Property countryTrlList stored in table C_Countrystatic String
PROPERTY_CREATEDBY
Property createdBy stored in column CreatedBy in table C_Countrystatic String
PROPERTY_CREATIONDATE
Property creationDate stored in column Created in table C_Countrystatic String
PROPERTY_CURRENCY
Property currency stored in column C_Currency_ID in table C_Country
Help: Indicates the currency to be used when processing this document.static String
PROPERTY_DATEFORMAT
Property dateformat stored in column Dateformat in table C_Countrystatic String
PROPERTY_DATETIMEFORMAT
Property datetimeformat stored in column Datetimeformat in table C_Countrystatic String
PROPERTY_DECIMALSEPARATOR
Property decimalseparator stored in column Decimalseparator in table C_Countrystatic String
PROPERTY_DEFAULT
Property default stored in column IsDefault in table C_Country
Help: The Default Checkbox indicates if this record will be used as a default value.static String
PROPERTY_DESCRIPTION
Property description stored in column Description in table C_Country
Help: A description is limited to 255 characters.static String
PROPERTY_GROUPINGSEPARATOR
Property groupingseparator stored in column Groupingseparator in table C_Countrystatic String
PROPERTY_HASREGIONS
Property hasRegions stored in column HasRegion in table C_Country
Help: The Country has Region checkbox is selected if the Country being defined is divided into regions. If this checkbox is selected, the Region Tab is accessible.static String
PROPERTY_IBANCODE
Property iBANCode stored in column IBANCountry in table C_Country
Help: Then International Bank Account Number structure stablish that the first two digits will belong to the country. This country code is the one associated to a country of the application in this field.static String
PROPERTY_IBANLENGTH
Property iBANLength stored in column IBANNoDigits in table C_Country
Help: Then International Bank Account Number structure do not stablish a specific length: it depends on the country. This field will define the length of the IBAN codes for that country.static String
PROPERTY_ID
Property id stored in column C_Country_ID in table C_Country
Help: The Country defines a Country. Each Country must be defined before it can be used in any document.static String
PROPERTY_ISOCOUNTRYCODE
Property iSOCountryCode stored in column CountryCode in table C_Country
Help: For details - http://www.din.de/gremien/nas/nabd/iso3166ma/codlstp1.html or - http://www.unece.org/trade/rec/rec03en.htmstatic String
PROPERTY_LANGUAGE
Property language stored in column AD_Language in table C_Country
Help: The Language identifies the language to use for displaystatic String
PROPERTY_NAME
Property name stored in column Name in table C_Countrystatic String
PROPERTY_NUMERICMASK
Property numericmask stored in column Numericmask in table C_Countrystatic String
PROPERTY_ORGANIZATION
Property organization stored in column AD_Org_ID in table C_Countrystatic String
PROPERTY_PHONENOFORMAT
Property phoneNoFormat stored in column ExpressionPhone in table C_Country
Help: Phone Formatstatic String
PROPERTY_POSTALCODEFORMAT
Property postalCodeFormat stored in column ExpressionPostal in table C_Country
Help: Postal code Formatstatic String
PROPERTY_REGIONLIST
Property regionList stored in table C_Countrystatic String
PROPERTY_REGIONNAME
Property regionName stored in column RegionName in table C_Country
Help: The Region Name defines the name that will print when this region is used in a document.static String
PROPERTY_UPDATED
Property updated stored in column Updated in table C_Countrystatic String
PROPERTY_UPDATEDBY
Property updatedBy stored in column UpdatedBy in table C_Countrystatic String
TABLE_NAME
-
Fields inherited from class org.openbravo.base.structure.BaseOBObject
ID
-
-
Constructor Summary
Constructors Constructor Description Country()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAdditionalPostalFormat()
String
getAddressPrintFormat()
Client
getClient()
Client fieldList<CountryTrl>
getCountryTrlList()
Help: TranslationUser
getCreatedBy()
Created by audit userDate
getCreationDate()
Creation date of auditCurrency
getCurrency()
String
getDateformat()
String
getDatetimeformat()
String
getDecimalseparator()
String
getDescription()
String
getEntityName()
String
getGroupingseparator()
String
getIBANCode()
Long
getIBANLength()
String
getId()
String
getISOCountryCode()
Language
getLanguage()
String
getName()
String
getNumericmask()
Organization
getOrganization()
Gets organization fieldString
getPhoneNoFormat()
String
getPostalCodeFormat()
List<Region>
getRegionList()
Help: The Region Tab defines a Region within a Country. This tab is enabled only if the Has Region checkbox is selected for the Country.String
getRegionName()
Date
getUpdated()
Update date of auditUser
getUpdatedBy()
Update by audit userBoolean
isActive()
Gets active fieldBoolean
isAdditionalPostalCode()
Boolean
isDefault()
Boolean
isHasRegions()
void
setActive(Boolean active)
Sets active fieldvoid
setAdditionalPostalCode(Boolean additionalPostalCode)
void
setAdditionalPostalFormat(String additionalPostalFormat)
void
setAddressPrintFormat(String addressPrintFormat)
void
setClient(Client client)
Client fieldvoid
setCountryTrlList(List<CountryTrl> countryTrlList)
Help: Translationvoid
setCreatedBy(User createdBy)
Created by audit uservoid
setCreationDate(Date creationDate)
Creation date of auditvoid
setCurrency(Currency currency)
void
setDateformat(String dateformat)
void
setDatetimeformat(String datetimeformat)
void
setDecimalseparator(String decimalseparator)
void
setDefault(Boolean deflt)
void
setDescription(String description)
void
setGroupingseparator(String groupingseparator)
void
setHasRegions(Boolean hasRegions)
void
setIBANCode(String iBANCode)
void
setIBANLength(Long iBANLength)
void
setId(String id)
void
setISOCountryCode(String iSOCountryCode)
void
setLanguage(Language language)
void
setName(String name)
void
setNumericmask(String numericmask)
void
setOrganization(Organization organization)
Sets organization fieldvoid
setPhoneNoFormat(String phoneNoFormat)
void
setPostalCodeFormat(String postalCodeFormat)
void
setRegionList(List<Region> regionList)
Help: The Region Tab defines a Region within a Country. This tab is enabled only if the Has Region checkbox is selected for the Country.void
setRegionName(String regionName)
void
setUpdated(Date updated)
Update date of auditvoid
setUpdatedBy(User updatedBy)
Update by audit user-
Methods inherited from class org.openbravo.base.structure.BaseOBObject
checkDerivedReadable, get, get, get, getEntity, getIdentifier, getValue, isAllowRead, isNewOBObject, isOrgClientAccessCheckEnabled, isWriteAccessCheckEnabled, set, setAccessChecks, setAllowRead, setDefaultValue, setId, setNewOBObject, setValue, toString, validate
-
-
-
-
Field Detail
-
TABLE_NAME
public static final String TABLE_NAME
- See Also:
- Constant Field Values
-
ENTITY_NAME
public static final String ENTITY_NAME
- See Also:
- Constant Field Values
-
PROPERTY_ID
public static final String PROPERTY_ID
Property id stored in column C_Country_ID in table C_Country
Help: The Country defines a Country. Each Country must be defined before it can be used in any document.- See Also:
- Constant Field Values
-
PROPERTY_CLIENT
public static final String PROPERTY_CLIENT
Property client stored in column AD_Client_ID in table C_Country- See Also:
ClientEnabled
, Constant Field Values
-
PROPERTY_ORGANIZATION
public static final String PROPERTY_ORGANIZATION
Property organization stored in column AD_Org_ID in table C_Country- See Also:
OrganizationEnabled
, Constant Field Values
-
PROPERTY_ACTIVE
public static final String PROPERTY_ACTIVE
Property active stored in column IsActive in table C_Country- See Also:
ActiveEnabled
, Constant Field Values
-
PROPERTY_CREATIONDATE
public static final String PROPERTY_CREATIONDATE
Property creationDate stored in column Created in table C_Country- See Also:
Traceable
, Constant Field Values
-
PROPERTY_CREATEDBY
public static final String PROPERTY_CREATEDBY
Property createdBy stored in column CreatedBy in table C_Country- See Also:
Traceable
, Constant Field Values
-
PROPERTY_UPDATED
public static final String PROPERTY_UPDATED
Property updated stored in column Updated in table C_Country- See Also:
Traceable
, Constant Field Values
-
PROPERTY_UPDATEDBY
public static final String PROPERTY_UPDATEDBY
Property updatedBy stored in column UpdatedBy in table C_Country- See Also:
Traceable
, Constant Field Values
-
PROPERTY_NAME
public static final String PROPERTY_NAME
Property name stored in column Name in table C_Country- See Also:
- Constant Field Values
-
PROPERTY_DESCRIPTION
public static final String PROPERTY_DESCRIPTION
Property description stored in column Description in table C_Country
Help: A description is limited to 255 characters.- See Also:
- Constant Field Values
-
PROPERTY_ISOCOUNTRYCODE
public static final String PROPERTY_ISOCOUNTRYCODE
Property iSOCountryCode stored in column CountryCode in table C_Country
Help: For details - http://www.din.de/gremien/nas/nabd/iso3166ma/codlstp1.html or - http://www.unece.org/trade/rec/rec03en.htm- See Also:
- Constant Field Values
-
PROPERTY_HASREGIONS
public static final String PROPERTY_HASREGIONS
Property hasRegions stored in column HasRegion in table C_Country
Help: The Country has Region checkbox is selected if the Country being defined is divided into regions. If this checkbox is selected, the Region Tab is accessible.- See Also:
- Constant Field Values
-
PROPERTY_REGIONNAME
public static final String PROPERTY_REGIONNAME
Property regionName stored in column RegionName in table C_Country
Help: The Region Name defines the name that will print when this region is used in a document.- See Also:
- Constant Field Values
-
PROPERTY_PHONENOFORMAT
public static final String PROPERTY_PHONENOFORMAT
Property phoneNoFormat stored in column ExpressionPhone in table C_Country
Help: Phone Format- See Also:
- Constant Field Values
-
PROPERTY_ADDRESSPRINTFORMAT
public static final String PROPERTY_ADDRESSPRINTFORMAT
Property addressPrintFormat stored in column DisplaySequence in table C_Country
Help: The Address Print format defines the format to be used when this address prints. The following notations are used: @C@=City @P@=Postal @A@=PostalAdd @R@=Region- See Also:
- Constant Field Values
-
PROPERTY_POSTALCODEFORMAT
public static final String PROPERTY_POSTALCODEFORMAT
Property postalCodeFormat stored in column ExpressionPostal in table C_Country
Help: Postal code Format- See Also:
- Constant Field Values
-
PROPERTY_ADDITIONALPOSTALCODE
public static final String PROPERTY_ADDITIONALPOSTALCODE
Property additionalPostalCode stored in column HasPostal_Add in table C_Country
Help: The Additional Postal Code checkbox indicates if this address uses an additional Postal Code. If it is selected an additional field displays for entry of the additional Postal Code.- See Also:
- Constant Field Values
-
PROPERTY_ADDITIONALPOSTALFORMAT
public static final String PROPERTY_ADDITIONALPOSTALFORMAT
Property additionalPostalFormat stored in column ExpressionPostal_Add in table C_Country
Help: Additional Postal Format- See Also:
- Constant Field Values
-
PROPERTY_DEFAULT
public static final String PROPERTY_DEFAULT
Property default stored in column IsDefault in table C_Country
Help: The Default Checkbox indicates if this record will be used as a default value.- See Also:
- Constant Field Values
-
PROPERTY_LANGUAGE
public static final String PROPERTY_LANGUAGE
Property language stored in column AD_Language in table C_Country
Help: The Language identifies the language to use for display- See Also:
- Constant Field Values
-
PROPERTY_CURRENCY
public static final String PROPERTY_CURRENCY
Property currency stored in column C_Currency_ID in table C_Country
Help: Indicates the currency to be used when processing this document.- See Also:
- Constant Field Values
-
PROPERTY_IBANLENGTH
public static final String PROPERTY_IBANLENGTH
Property iBANLength stored in column IBANNoDigits in table C_Country
Help: Then International Bank Account Number structure do not stablish a specific length: it depends on the country. This field will define the length of the IBAN codes for that country.- See Also:
- Constant Field Values
-
PROPERTY_IBANCODE
public static final String PROPERTY_IBANCODE
Property iBANCode stored in column IBANCountry in table C_Country
Help: Then International Bank Account Number structure stablish that the first two digits will belong to the country. This country code is the one associated to a country of the application in this field.- See Also:
- Constant Field Values
-
PROPERTY_DECIMALSEPARATOR
public static final String PROPERTY_DECIMALSEPARATOR
Property decimalseparator stored in column Decimalseparator in table C_Country- See Also:
- Constant Field Values
-
PROPERTY_GROUPINGSEPARATOR
public static final String PROPERTY_GROUPINGSEPARATOR
Property groupingseparator stored in column Groupingseparator in table C_Country- See Also:
- Constant Field Values
-
PROPERTY_NUMERICMASK
public static final String PROPERTY_NUMERICMASK
Property numericmask stored in column Numericmask in table C_Country- See Also:
- Constant Field Values
-
PROPERTY_DATEFORMAT
public static final String PROPERTY_DATEFORMAT
Property dateformat stored in column Dateformat in table C_Country- See Also:
- Constant Field Values
-
PROPERTY_DATETIMEFORMAT
public static final String PROPERTY_DATETIMEFORMAT
Property datetimeformat stored in column Datetimeformat in table C_Country- See Also:
- Constant Field Values
-
PROPERTY_COUNTRYTRLLIST
public static final String PROPERTY_COUNTRYTRLLIST
Property countryTrlList stored in table C_Country- See Also:
- Constant Field Values
-
PROPERTY_REGIONLIST
public static final String PROPERTY_REGIONLIST
Property regionList stored in table C_Country- See Also:
- Constant Field Values
-
-
Method Detail
-
getEntityName
public String getEntityName()
- Specified by:
getEntityName
in interfaceIdentifiable
- Specified by:
getEntityName
in classBaseOBObject
-
getId
public String getId()
- Specified by:
getId
in interfaceBaseOBObjectDef
- Specified by:
getId
in interfaceIdentifiable
- Overrides:
getId
in classBaseOBObject
- See Also:
PROPERTY_ID
-
setId
public void setId(String id)
- See Also:
PROPERTY_ID
-
getClient
public Client getClient()
Description copied from interface:ClientEnabled
Client field- Specified by:
getClient
in interfaceClientEnabled
- Returns:
- client
- See Also:
PROPERTY_CLIENT
-
setClient
public void setClient(Client client)
Description copied from interface:ClientEnabled
Client field- Specified by:
setClient
in interfaceClientEnabled
- See Also:
PROPERTY_CLIENT
-
getOrganization
public Organization getOrganization()
Description copied from interface:OrganizationEnabled
Gets organization field- Specified by:
getOrganization
in interfaceOrganizationEnabled
- Returns:
- organization
- See Also:
PROPERTY_ORGANIZATION
-
setOrganization
public void setOrganization(Organization organization)
Description copied from interface:OrganizationEnabled
Sets organization field- Specified by:
setOrganization
in interfaceOrganizationEnabled
- See Also:
PROPERTY_ORGANIZATION
-
isActive
public Boolean isActive()
Description copied from interface:ActiveEnabled
Gets active field- Specified by:
isActive
in interfaceActiveEnabled
- Returns:
- active
- See Also:
PROPERTY_ACTIVE
-
setActive
public void setActive(Boolean active)
Description copied from interface:ActiveEnabled
Sets active field- Specified by:
setActive
in interfaceActiveEnabled
- See Also:
PROPERTY_ACTIVE
-
getCreationDate
public Date getCreationDate()
Description copied from interface:Traceable
Creation date of audit- Specified by:
getCreationDate
in interfaceTraceable
- Returns:
- Date of creation
- See Also:
PROPERTY_CREATIONDATE
-
setCreationDate
public void setCreationDate(Date creationDate)
Description copied from interface:Traceable
Creation date of audit- Specified by:
setCreationDate
in interfaceTraceable
- See Also:
PROPERTY_CREATIONDATE
-
getCreatedBy
public User getCreatedBy()
Description copied from interface:Traceable
Created by audit user- Specified by:
getCreatedBy
in interfaceTraceable
- Returns:
- User
- See Also:
PROPERTY_CREATEDBY
-
setCreatedBy
public void setCreatedBy(User createdBy)
Description copied from interface:Traceable
Created by audit user- Specified by:
setCreatedBy
in interfaceTraceable
- See Also:
PROPERTY_CREATEDBY
-
getUpdated
public Date getUpdated()
Description copied from interface:Traceable
Update date of audit- Specified by:
getUpdated
in interfaceTraceable
- Returns:
- Date of update
- See Also:
PROPERTY_UPDATED
-
setUpdated
public void setUpdated(Date updated)
Description copied from interface:Traceable
Update date of audit- Specified by:
setUpdated
in interfaceTraceable
- See Also:
PROPERTY_UPDATED
-
getUpdatedBy
public User getUpdatedBy()
Description copied from interface:Traceable
Update by audit user- Specified by:
getUpdatedBy
in interfaceTraceable
- Returns:
- User who updated
- See Also:
PROPERTY_UPDATEDBY
-
setUpdatedBy
public void setUpdatedBy(User updatedBy)
Description copied from interface:Traceable
Update by audit user- Specified by:
setUpdatedBy
in interfaceTraceable
- See Also:
PROPERTY_UPDATEDBY
-
getName
public String getName()
- See Also:
PROPERTY_NAME
-
setName
public void setName(String name)
- See Also:
PROPERTY_NAME
-
getDescription
public String getDescription()
- See Also:
PROPERTY_DESCRIPTION
-
setDescription
public void setDescription(String description)
- See Also:
PROPERTY_DESCRIPTION
-
getISOCountryCode
public String getISOCountryCode()
- See Also:
PROPERTY_ISOCOUNTRYCODE
-
setISOCountryCode
public void setISOCountryCode(String iSOCountryCode)
- See Also:
PROPERTY_ISOCOUNTRYCODE
-
isHasRegions
public Boolean isHasRegions()
- See Also:
PROPERTY_HASREGIONS
-
setHasRegions
public void setHasRegions(Boolean hasRegions)
- See Also:
PROPERTY_HASREGIONS
-
getRegionName
public String getRegionName()
- See Also:
PROPERTY_REGIONNAME
-
setRegionName
public void setRegionName(String regionName)
- See Also:
PROPERTY_REGIONNAME
-
getPhoneNoFormat
public String getPhoneNoFormat()
- See Also:
PROPERTY_PHONENOFORMAT
-
setPhoneNoFormat
public void setPhoneNoFormat(String phoneNoFormat)
- See Also:
PROPERTY_PHONENOFORMAT
-
getAddressPrintFormat
public String getAddressPrintFormat()
- See Also:
PROPERTY_ADDRESSPRINTFORMAT
-
setAddressPrintFormat
public void setAddressPrintFormat(String addressPrintFormat)
- See Also:
PROPERTY_ADDRESSPRINTFORMAT
-
getPostalCodeFormat
public String getPostalCodeFormat()
- See Also:
PROPERTY_POSTALCODEFORMAT
-
setPostalCodeFormat
public void setPostalCodeFormat(String postalCodeFormat)
- See Also:
PROPERTY_POSTALCODEFORMAT
-
isAdditionalPostalCode
public Boolean isAdditionalPostalCode()
- See Also:
PROPERTY_ADDITIONALPOSTALCODE
-
setAdditionalPostalCode
public void setAdditionalPostalCode(Boolean additionalPostalCode)
- See Also:
PROPERTY_ADDITIONALPOSTALCODE
-
getAdditionalPostalFormat
public String getAdditionalPostalFormat()
- See Also:
PROPERTY_ADDITIONALPOSTALFORMAT
-
setAdditionalPostalFormat
public void setAdditionalPostalFormat(String additionalPostalFormat)
- See Also:
PROPERTY_ADDITIONALPOSTALFORMAT
-
isDefault
public Boolean isDefault()
- See Also:
PROPERTY_DEFAULT
-
setDefault
public void setDefault(Boolean deflt)
- See Also:
PROPERTY_DEFAULT
-
getLanguage
public Language getLanguage()
- See Also:
PROPERTY_LANGUAGE
-
setLanguage
public void setLanguage(Language language)
- See Also:
PROPERTY_LANGUAGE
-
getCurrency
public Currency getCurrency()
- See Also:
PROPERTY_CURRENCY
-
setCurrency
public void setCurrency(Currency currency)
- See Also:
PROPERTY_CURRENCY
-
getIBANLength
public Long getIBANLength()
- See Also:
PROPERTY_IBANLENGTH
-
setIBANLength
public void setIBANLength(Long iBANLength)
- See Also:
PROPERTY_IBANLENGTH
-
getIBANCode
public String getIBANCode()
- See Also:
PROPERTY_IBANCODE
-
setIBANCode
public void setIBANCode(String iBANCode)
- See Also:
PROPERTY_IBANCODE
-
getDecimalseparator
public String getDecimalseparator()
- See Also:
PROPERTY_DECIMALSEPARATOR
-
setDecimalseparator
public void setDecimalseparator(String decimalseparator)
- See Also:
PROPERTY_DECIMALSEPARATOR
-
getGroupingseparator
public String getGroupingseparator()
- See Also:
PROPERTY_GROUPINGSEPARATOR
-
setGroupingseparator
public void setGroupingseparator(String groupingseparator)
- See Also:
PROPERTY_GROUPINGSEPARATOR
-
getNumericmask
public String getNumericmask()
- See Also:
PROPERTY_NUMERICMASK
-
setNumericmask
public void setNumericmask(String numericmask)
- See Also:
PROPERTY_NUMERICMASK
-
getDateformat
public String getDateformat()
- See Also:
PROPERTY_DATEFORMAT
-
setDateformat
public void setDateformat(String dateformat)
- See Also:
PROPERTY_DATEFORMAT
-
getDatetimeformat
public String getDatetimeformat()
- See Also:
PROPERTY_DATETIMEFORMAT
-
setDatetimeformat
public void setDatetimeformat(String datetimeformat)
- See Also:
PROPERTY_DATETIMEFORMAT
-
getCountryTrlList
public List<CountryTrl> getCountryTrlList()
Help: Translation- See Also:
CountryTrl
-
setCountryTrlList
public void setCountryTrlList(List<CountryTrl> countryTrlList)
Help: Translation- See Also:
CountryTrl
-
getRegionList
public List<Region> getRegionList()
Help: The Region Tab defines a Region within a Country. This tab is enabled only if the Has Region checkbox is selected for the Country.- See Also:
Region
-
-