001 /** 002 * Copyright (c) 2000-2010 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.annotation.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 * <p> 032 * Never modify or reference this interface directly. All methods that expect a country model instance should use the {@link Country} interface instead. 033 * </p> 034 * 035 * @author Brian Wing Shun Chan 036 * @see Country 037 * @see com.liferay.portal.model.impl.CountryImpl 038 * @see com.liferay.portal.model.impl.CountryModelImpl 039 * @generated 040 */ 041 public interface CountryModel extends BaseModel<Country> { 042 /** 043 * Gets the primary key of this country. 044 * 045 * @return the primary key of this country 046 */ 047 public long getPrimaryKey(); 048 049 /** 050 * Sets the primary key of this country 051 * 052 * @param pk the primary key of this country 053 */ 054 public void setPrimaryKey(long pk); 055 056 /** 057 * Gets the country id of this country. 058 * 059 * @return the country id of this country 060 */ 061 public long getCountryId(); 062 063 /** 064 * Sets the country id of this country. 065 * 066 * @param countryId the country id of this country 067 */ 068 public void setCountryId(long countryId); 069 070 /** 071 * Gets the name of this country. 072 * 073 * @return the name of this country 074 */ 075 @AutoEscape 076 public String getName(); 077 078 /** 079 * Sets the name of this country. 080 * 081 * @param name the name of this country 082 */ 083 public void setName(String name); 084 085 /** 086 * Gets the a2 of this country. 087 * 088 * @return the a2 of this country 089 */ 090 @AutoEscape 091 public String getA2(); 092 093 /** 094 * Sets the a2 of this country. 095 * 096 * @param a2 the a2 of this country 097 */ 098 public void setA2(String a2); 099 100 /** 101 * Gets the a3 of this country. 102 * 103 * @return the a3 of this country 104 */ 105 @AutoEscape 106 public String getA3(); 107 108 /** 109 * Sets the a3 of this country. 110 * 111 * @param a3 the a3 of this country 112 */ 113 public void setA3(String a3); 114 115 /** 116 * Gets the number of this country. 117 * 118 * @return the number of this country 119 */ 120 @AutoEscape 121 public String getNumber(); 122 123 /** 124 * Sets the number of this country. 125 * 126 * @param number the number of this country 127 */ 128 public void setNumber(String number); 129 130 /** 131 * Gets the idd of this country. 132 * 133 * @return the idd of this country 134 */ 135 @AutoEscape 136 public String getIdd(); 137 138 /** 139 * Sets the idd of this country. 140 * 141 * @param idd the idd of this country 142 */ 143 public void setIdd(String idd); 144 145 /** 146 * Gets the active of this country. 147 * 148 * @return the active of this country 149 */ 150 public boolean getActive(); 151 152 /** 153 * Determines whether this country is active. 154 * 155 * @return whether this country is active 156 */ 157 public boolean isActive(); 158 159 /** 160 * Sets whether this {$entity.humanName} is active. 161 * 162 * @param active the active of this country 163 */ 164 public void setActive(boolean active); 165 166 public boolean isNew(); 167 168 public void setNew(boolean n); 169 170 public boolean isCachedModel(); 171 172 public void setCachedModel(boolean cachedModel); 173 174 public boolean isEscapedModel(); 175 176 public void setEscapedModel(boolean escapedModel); 177 178 public Serializable getPrimaryKeyObj(); 179 180 public ExpandoBridge getExpandoBridge(); 181 182 public void setExpandoBridgeAttributes(ServiceContext serviceContext); 183 184 public Object clone(); 185 186 public int compareTo(Country country); 187 188 public int hashCode(); 189 190 public Country toEscapedModel(); 191 192 public String toString(); 193 194 public String toXmlString(); 195 }