001    /**
002     * Copyright (c) 2000-2013 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> {
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 country ID of this country.
063             *
064             * @return the country ID of this country
065             */
066            public long getCountryId();
067    
068            /**
069             * Sets the country ID of this country.
070             *
071             * @param countryId the country ID of this country
072             */
073            public void setCountryId(long countryId);
074    
075            /**
076             * Returns the name of this country.
077             *
078             * @return the name of this country
079             */
080            @AutoEscape
081            public String getName();
082    
083            /**
084             * Sets the name of this country.
085             *
086             * @param name the name of this country
087             */
088            public void setName(String name);
089    
090            /**
091             * Returns the a2 of this country.
092             *
093             * @return the a2 of this country
094             */
095            @AutoEscape
096            public String getA2();
097    
098            /**
099             * Sets the a2 of this country.
100             *
101             * @param a2 the a2 of this country
102             */
103            public void setA2(String a2);
104    
105            /**
106             * Returns the a3 of this country.
107             *
108             * @return the a3 of this country
109             */
110            @AutoEscape
111            public String getA3();
112    
113            /**
114             * Sets the a3 of this country.
115             *
116             * @param a3 the a3 of this country
117             */
118            public void setA3(String a3);
119    
120            /**
121             * Returns the number of this country.
122             *
123             * @return the number of this country
124             */
125            @AutoEscape
126            public String getNumber();
127    
128            /**
129             * Sets the number of this country.
130             *
131             * @param number the number of this country
132             */
133            public void setNumber(String number);
134    
135            /**
136             * Returns the idd of this country.
137             *
138             * @return the idd of this country
139             */
140            @AutoEscape
141            public String getIdd();
142    
143            /**
144             * Sets the idd of this country.
145             *
146             * @param idd the idd of this country
147             */
148            public void setIdd(String idd);
149    
150            /**
151             * Returns the zip required of this country.
152             *
153             * @return the zip required of this country
154             */
155            public boolean getZipRequired();
156    
157            /**
158             * Returns <code>true</code> if this country is zip required.
159             *
160             * @return <code>true</code> if this country is zip required; <code>false</code> otherwise
161             */
162            public boolean isZipRequired();
163    
164            /**
165             * Sets whether this country is zip required.
166             *
167             * @param zipRequired the zip required of this country
168             */
169            public void setZipRequired(boolean zipRequired);
170    
171            /**
172             * Returns the active of this country.
173             *
174             * @return the active of this country
175             */
176            public boolean getActive();
177    
178            /**
179             * Returns <code>true</code> if this country is active.
180             *
181             * @return <code>true</code> if this country is active; <code>false</code> otherwise
182             */
183            public boolean isActive();
184    
185            /**
186             * Sets whether this country is active.
187             *
188             * @param active the active of this country
189             */
190            public void setActive(boolean active);
191    
192            @Override
193            public boolean isNew();
194    
195            @Override
196            public void setNew(boolean n);
197    
198            @Override
199            public boolean isCachedModel();
200    
201            @Override
202            public void setCachedModel(boolean cachedModel);
203    
204            @Override
205            public boolean isEscapedModel();
206    
207            @Override
208            public Serializable getPrimaryKeyObj();
209    
210            @Override
211            public void setPrimaryKeyObj(Serializable primaryKeyObj);
212    
213            @Override
214            public ExpandoBridge getExpandoBridge();
215    
216            @Override
217            public void setExpandoBridgeAttributes(BaseModel<?> baseModel);
218    
219            @Override
220            public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge);
221    
222            @Override
223            public void setExpandoBridgeAttributes(ServiceContext serviceContext);
224    
225            @Override
226            public Object clone();
227    
228            @Override
229            public int compareTo(Country country);
230    
231            @Override
232            public int hashCode();
233    
234            @Override
235            public CacheModel<Country> toCacheModel();
236    
237            @Override
238            public Country toEscapedModel();
239    
240            @Override
241            public Country toUnescapedModel();
242    
243            @Override
244            public String toString();
245    
246            @Override
247            public String toXmlString();
248    }