001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.model;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.AutoEscape;
020    import com.liferay.portal.service.ServiceContext;
021    
022    import com.liferay.portlet.expando.model.ExpandoBridge;
023    
024    import java.io.Serializable;
025    
026    /**
027     * The base model interface for the Country service. Represents a row in the "Country" database table, with each column mapped to a property of this class.
028     *
029     * <p>
030     * This interface and its corresponding implementation {@link com.liferay.portal.model.impl.CountryModelImpl} exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in {@link com.liferay.portal.model.impl.CountryImpl}.
031     * </p>
032     *
033     * @author Brian Wing Shun Chan
034     * @see Country
035     * @see com.liferay.portal.model.impl.CountryImpl
036     * @see com.liferay.portal.model.impl.CountryModelImpl
037     * @generated
038     */
039    @ProviderType
040    public interface CountryModel extends BaseModel<Country>, MVCCModel {
041            /*
042             * NOTE FOR DEVELOPERS:
043             *
044             * Never modify or reference this interface directly. All methods that expect a country model instance should use the {@link Country} interface instead.
045             */
046    
047            /**
048             * Returns the primary key of this country.
049             *
050             * @return the primary key of this country
051             */
052            public long getPrimaryKey();
053    
054            /**
055             * Sets the primary key of this country.
056             *
057             * @param primaryKey the primary key of this country
058             */
059            public void setPrimaryKey(long primaryKey);
060    
061            /**
062             * Returns the mvcc version of this country.
063             *
064             * @return the mvcc version of this country
065             */
066            @Override
067            public long getMvccVersion();
068    
069            /**
070             * Sets the mvcc version of this country.
071             *
072             * @param mvccVersion the mvcc version of this country
073             */
074            @Override
075            public void setMvccVersion(long mvccVersion);
076    
077            /**
078             * Returns the country ID of this country.
079             *
080             * @return the country ID of this country
081             */
082            public long getCountryId();
083    
084            /**
085             * Sets the country ID of this country.
086             *
087             * @param countryId the country ID of this country
088             */
089            public void setCountryId(long countryId);
090    
091            /**
092             * Returns the name of this country.
093             *
094             * @return the name of this country
095             */
096            @AutoEscape
097            public String getName();
098    
099            /**
100             * Sets the name of this country.
101             *
102             * @param name the name of this country
103             */
104            public void setName(String name);
105    
106            /**
107             * Returns the a2 of this country.
108             *
109             * @return the a2 of this country
110             */
111            @AutoEscape
112            public String getA2();
113    
114            /**
115             * Sets the a2 of this country.
116             *
117             * @param a2 the a2 of this country
118             */
119            public void setA2(String a2);
120    
121            /**
122             * Returns the a3 of this country.
123             *
124             * @return the a3 of this country
125             */
126            @AutoEscape
127            public String getA3();
128    
129            /**
130             * Sets the a3 of this country.
131             *
132             * @param a3 the a3 of this country
133             */
134            public void setA3(String a3);
135    
136            /**
137             * Returns the number of this country.
138             *
139             * @return the number of this country
140             */
141            @AutoEscape
142            public String getNumber();
143    
144            /**
145             * Sets the number of this country.
146             *
147             * @param number the number of this country
148             */
149            public void setNumber(String number);
150    
151            /**
152             * Returns the idd of this country.
153             *
154             * @return the idd of this country
155             */
156            @AutoEscape
157            public String getIdd();
158    
159            /**
160             * Sets the idd of this country.
161             *
162             * @param idd the idd of this country
163             */
164            public void setIdd(String idd);
165    
166            /**
167             * Returns the zip required of this country.
168             *
169             * @return the zip required of this country
170             */
171            public boolean getZipRequired();
172    
173            /**
174             * Returns <code>true</code> if this country is zip required.
175             *
176             * @return <code>true</code> if this country is zip required; <code>false</code> otherwise
177             */
178            public boolean isZipRequired();
179    
180            /**
181             * Sets whether this country is zip required.
182             *
183             * @param zipRequired the zip required of this country
184             */
185            public void setZipRequired(boolean zipRequired);
186    
187            /**
188             * Returns the active of this country.
189             *
190             * @return the active of this country
191             */
192            public boolean getActive();
193    
194            /**
195             * Returns <code>true</code> if this country is active.
196             *
197             * @return <code>true</code> if this country is active; <code>false</code> otherwise
198             */
199            public boolean isActive();
200    
201            /**
202             * Sets whether this country is active.
203             *
204             * @param active the active of this country
205             */
206            public void setActive(boolean active);
207    
208            @Override
209            public boolean isNew();
210    
211            @Override
212            public void setNew(boolean n);
213    
214            @Override
215            public boolean isCachedModel();
216    
217            @Override
218            public void setCachedModel(boolean cachedModel);
219    
220            @Override
221            public boolean isEscapedModel();
222    
223            @Override
224            public Serializable getPrimaryKeyObj();
225    
226            @Override
227            public void setPrimaryKeyObj(Serializable primaryKeyObj);
228    
229            @Override
230            public ExpandoBridge getExpandoBridge();
231    
232            @Override
233            public void setExpandoBridgeAttributes(BaseModel<?> baseModel);
234    
235            @Override
236            public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge);
237    
238            @Override
239            public void setExpandoBridgeAttributes(ServiceContext serviceContext);
240    
241            @Override
242            public Object clone();
243    
244            @Override
245            public int compareTo(com.liferay.portal.model.Country country);
246    
247            @Override
248            public int hashCode();
249    
250            @Override
251            public CacheModel<com.liferay.portal.model.Country> toCacheModel();
252    
253            @Override
254            public com.liferay.portal.model.Country toEscapedModel();
255    
256            @Override
257            public com.liferay.portal.model.Country toUnescapedModel();
258    
259            @Override
260            public String toString();
261    
262            @Override
263            public String toXmlString();
264    }