001 /** 002 * Copyright (c) 2000-2010 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.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 /** 167 * Gets a copy of this country as an escaped model instance by wrapping it with an {@link com.liferay.portal.kernel.bean.AutoEscapeBeanHandler}. 168 * 169 * @return the escaped model instance 170 * @see com.liferay.portal.kernel.bean.AutoEscapeBeanHandler 171 */ 172 public Country toEscapedModel(); 173 174 public boolean isNew(); 175 176 public void setNew(boolean n); 177 178 public boolean isCachedModel(); 179 180 public void setCachedModel(boolean cachedModel); 181 182 public boolean isEscapedModel(); 183 184 public void setEscapedModel(boolean escapedModel); 185 186 public Serializable getPrimaryKeyObj(); 187 188 public ExpandoBridge getExpandoBridge(); 189 190 public void setExpandoBridgeAttributes(ServiceContext serviceContext); 191 192 public Object clone(); 193 194 public int compareTo(Country country); 195 196 public int hashCode(); 197 198 public String toString(); 199 200 public String toXmlString(); 201 }