001 /** 002 * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved. 003 * 004 * The contents of this file are subject to the terms of the Liferay Enterprise 005 * Subscription License ("License"). You may not use this file except in 006 * compliance with the License. You can obtain a copy of the License by 007 * contacting Liferay, Inc. See the License for the specific language governing 008 * permissions and limitations under the License, including but not limited to 009 * distribution rights of the Software. 010 * 011 * 012 * 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 * Gets 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 * Gets 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 * Gets 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 * Gets 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 * Gets 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 * Gets 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 * Gets 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 * Gets the active of this country. 149 * 150 * @return the active of this country 151 */ 152 public boolean getActive(); 153 154 /** 155 * Determines if this country is active. 156 * 157 * @return <code>true</code> if this country is active; <code>false</code> otherwise 158 */ 159 public boolean isActive(); 160 161 /** 162 * Sets whether this country is active. 163 * 164 * @param active the active of this country 165 */ 166 public void setActive(boolean active); 167 168 public boolean isNew(); 169 170 public void setNew(boolean n); 171 172 public boolean isCachedModel(); 173 174 public void setCachedModel(boolean cachedModel); 175 176 public boolean isEscapedModel(); 177 178 public void setEscapedModel(boolean escapedModel); 179 180 public Serializable getPrimaryKeyObj(); 181 182 public void setPrimaryKeyObj(Serializable primaryKeyObj); 183 184 public ExpandoBridge getExpandoBridge(); 185 186 public void setExpandoBridgeAttributes(ServiceContext serviceContext); 187 188 public Object clone(); 189 190 public int compareTo(Country country); 191 192 public int hashCode(); 193 194 public CacheModel<Country> toCacheModel(); 195 196 public Country toEscapedModel(); 197 198 public String toString(); 199 200 public String toXmlString(); 201 }