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 com.liferay.portal.kernel.bean.AutoEscape;
018    import com.liferay.portal.service.ServiceContext;
019    
020    import com.liferay.portlet.expando.model.ExpandoBridge;
021    
022    import java.io.Serializable;
023    
024    /**
025     * 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.
026     *
027     * <p>
028     * 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}.
029     * </p>
030     *
031     * @author Brian Wing Shun Chan
032     * @see Country
033     * @see com.liferay.portal.model.impl.CountryImpl
034     * @see com.liferay.portal.model.impl.CountryModelImpl
035     * @generated
036     */
037    public interface CountryModel extends BaseModel<Country> {
038            /*
039             * NOTE FOR DEVELOPERS:
040             *
041             * Never modify or reference this interface directly. All methods that expect a country model instance should use the {@link Country} interface instead.
042             */
043    
044            /**
045             * Returns the primary key of this country.
046             *
047             * @return the primary key of this country
048             */
049            public long getPrimaryKey();
050    
051            /**
052             * Sets the primary key of this country.
053             *
054             * @param primaryKey the primary key of this country
055             */
056            public void setPrimaryKey(long primaryKey);
057    
058            /**
059             * Returns the country ID of this country.
060             *
061             * @return the country ID of this country
062             */
063            public long getCountryId();
064    
065            /**
066             * Sets the country ID of this country.
067             *
068             * @param countryId the country ID of this country
069             */
070            public void setCountryId(long countryId);
071    
072            /**
073             * Returns the name of this country.
074             *
075             * @return the name of this country
076             */
077            @AutoEscape
078            public String getName();
079    
080            /**
081             * Sets the name of this country.
082             *
083             * @param name the name of this country
084             */
085            public void setName(String name);
086    
087            /**
088             * Returns the a2 of this country.
089             *
090             * @return the a2 of this country
091             */
092            @AutoEscape
093            public String getA2();
094    
095            /**
096             * Sets the a2 of this country.
097             *
098             * @param a2 the a2 of this country
099             */
100            public void setA2(String a2);
101    
102            /**
103             * Returns the a3 of this country.
104             *
105             * @return the a3 of this country
106             */
107            @AutoEscape
108            public String getA3();
109    
110            /**
111             * Sets the a3 of this country.
112             *
113             * @param a3 the a3 of this country
114             */
115            public void setA3(String a3);
116    
117            /**
118             * Returns the number of this country.
119             *
120             * @return the number of this country
121             */
122            @AutoEscape
123            public String getNumber();
124    
125            /**
126             * Sets the number of this country.
127             *
128             * @param number the number of this country
129             */
130            public void setNumber(String number);
131    
132            /**
133             * Returns the idd of this country.
134             *
135             * @return the idd of this country
136             */
137            @AutoEscape
138            public String getIdd();
139    
140            /**
141             * Sets the idd of this country.
142             *
143             * @param idd the idd of this country
144             */
145            public void setIdd(String idd);
146    
147            /**
148             * Returns the zip required of this country.
149             *
150             * @return the zip required of this country
151             */
152            public boolean getZipRequired();
153    
154            /**
155             * Returns <code>true</code> if this country is zip required.
156             *
157             * @return <code>true</code> if this country is zip required; <code>false</code> otherwise
158             */
159            public boolean isZipRequired();
160    
161            /**
162             * Sets whether this country is zip required.
163             *
164             * @param zipRequired the zip required of this country
165             */
166            public void setZipRequired(boolean zipRequired);
167    
168            /**
169             * Returns the active of this country.
170             *
171             * @return the active of this country
172             */
173            public boolean getActive();
174    
175            /**
176             * Returns <code>true</code> if this country is active.
177             *
178             * @return <code>true</code> if this country is active; <code>false</code> otherwise
179             */
180            public boolean isActive();
181    
182            /**
183             * Sets whether this country is active.
184             *
185             * @param active the active of this country
186             */
187            public void setActive(boolean active);
188    
189            public boolean isNew();
190    
191            public void setNew(boolean n);
192    
193            public boolean isCachedModel();
194    
195            public void setCachedModel(boolean cachedModel);
196    
197            public boolean isEscapedModel();
198    
199            public Serializable getPrimaryKeyObj();
200    
201            public void setPrimaryKeyObj(Serializable primaryKeyObj);
202    
203            public ExpandoBridge getExpandoBridge();
204    
205            public void setExpandoBridgeAttributes(ServiceContext serviceContext);
206    
207            public Object clone();
208    
209            public int compareTo(Country country);
210    
211            public int hashCode();
212    
213            public CacheModel<Country> toCacheModel();
214    
215            public Country toEscapedModel();
216    
217            public Country toUnescapedModel();
218    
219            public String toString();
220    
221            public String toXmlString();
222    }