001 /** 002 * Copyright (c) 2000-present 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.portlet.shopping.model; 016 017 import aQute.bnd.annotation.ProviderType; 018 019 import com.liferay.portal.kernel.bean.AutoEscape; 020 import com.liferay.portal.model.BaseModel; 021 import com.liferay.portal.model.CacheModel; 022 import com.liferay.portal.model.GroupedModel; 023 import com.liferay.portal.service.ServiceContext; 024 025 import com.liferay.portlet.expando.model.ExpandoBridge; 026 027 import java.io.Serializable; 028 029 import java.util.Date; 030 031 /** 032 * The base model interface for the ShoppingCategory service. Represents a row in the "ShoppingCategory" database table, with each column mapped to a property of this class. 033 * 034 * <p> 035 * This interface and its corresponding implementation {@link com.liferay.portlet.shopping.model.impl.ShoppingCategoryModelImpl} 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.portlet.shopping.model.impl.ShoppingCategoryImpl}. 036 * </p> 037 * 038 * @author Brian Wing Shun Chan 039 * @see ShoppingCategory 040 * @see com.liferay.portlet.shopping.model.impl.ShoppingCategoryImpl 041 * @see com.liferay.portlet.shopping.model.impl.ShoppingCategoryModelImpl 042 * @generated 043 */ 044 @ProviderType 045 public interface ShoppingCategoryModel extends BaseModel<ShoppingCategory>, 046 GroupedModel { 047 /* 048 * NOTE FOR DEVELOPERS: 049 * 050 * Never modify or reference this interface directly. All methods that expect a shopping category model instance should use the {@link ShoppingCategory} interface instead. 051 */ 052 053 /** 054 * Returns the primary key of this shopping category. 055 * 056 * @return the primary key of this shopping category 057 */ 058 public long getPrimaryKey(); 059 060 /** 061 * Sets the primary key of this shopping category. 062 * 063 * @param primaryKey the primary key of this shopping category 064 */ 065 public void setPrimaryKey(long primaryKey); 066 067 /** 068 * Returns the category ID of this shopping category. 069 * 070 * @return the category ID of this shopping category 071 */ 072 public long getCategoryId(); 073 074 /** 075 * Sets the category ID of this shopping category. 076 * 077 * @param categoryId the category ID of this shopping category 078 */ 079 public void setCategoryId(long categoryId); 080 081 /** 082 * Returns the group ID of this shopping category. 083 * 084 * @return the group ID of this shopping category 085 */ 086 @Override 087 public long getGroupId(); 088 089 /** 090 * Sets the group ID of this shopping category. 091 * 092 * @param groupId the group ID of this shopping category 093 */ 094 @Override 095 public void setGroupId(long groupId); 096 097 /** 098 * Returns the company ID of this shopping category. 099 * 100 * @return the company ID of this shopping category 101 */ 102 @Override 103 public long getCompanyId(); 104 105 /** 106 * Sets the company ID of this shopping category. 107 * 108 * @param companyId the company ID of this shopping category 109 */ 110 @Override 111 public void setCompanyId(long companyId); 112 113 /** 114 * Returns the user ID of this shopping category. 115 * 116 * @return the user ID of this shopping category 117 */ 118 @Override 119 public long getUserId(); 120 121 /** 122 * Sets the user ID of this shopping category. 123 * 124 * @param userId the user ID of this shopping category 125 */ 126 @Override 127 public void setUserId(long userId); 128 129 /** 130 * Returns the user uuid of this shopping category. 131 * 132 * @return the user uuid of this shopping category 133 */ 134 @Override 135 public String getUserUuid(); 136 137 /** 138 * Sets the user uuid of this shopping category. 139 * 140 * @param userUuid the user uuid of this shopping category 141 */ 142 @Override 143 public void setUserUuid(String userUuid); 144 145 /** 146 * Returns the user name of this shopping category. 147 * 148 * @return the user name of this shopping category 149 */ 150 @AutoEscape 151 @Override 152 public String getUserName(); 153 154 /** 155 * Sets the user name of this shopping category. 156 * 157 * @param userName the user name of this shopping category 158 */ 159 @Override 160 public void setUserName(String userName); 161 162 /** 163 * Returns the create date of this shopping category. 164 * 165 * @return the create date of this shopping category 166 */ 167 @Override 168 public Date getCreateDate(); 169 170 /** 171 * Sets the create date of this shopping category. 172 * 173 * @param createDate the create date of this shopping category 174 */ 175 @Override 176 public void setCreateDate(Date createDate); 177 178 /** 179 * Returns the modified date of this shopping category. 180 * 181 * @return the modified date of this shopping category 182 */ 183 @Override 184 public Date getModifiedDate(); 185 186 /** 187 * Sets the modified date of this shopping category. 188 * 189 * @param modifiedDate the modified date of this shopping category 190 */ 191 @Override 192 public void setModifiedDate(Date modifiedDate); 193 194 /** 195 * Returns the parent category ID of this shopping category. 196 * 197 * @return the parent category ID of this shopping category 198 */ 199 public long getParentCategoryId(); 200 201 /** 202 * Sets the parent category ID of this shopping category. 203 * 204 * @param parentCategoryId the parent category ID of this shopping category 205 */ 206 public void setParentCategoryId(long parentCategoryId); 207 208 /** 209 * Returns the name of this shopping category. 210 * 211 * @return the name of this shopping category 212 */ 213 @AutoEscape 214 public String getName(); 215 216 /** 217 * Sets the name of this shopping category. 218 * 219 * @param name the name of this shopping category 220 */ 221 public void setName(String name); 222 223 /** 224 * Returns the description of this shopping category. 225 * 226 * @return the description of this shopping category 227 */ 228 @AutoEscape 229 public String getDescription(); 230 231 /** 232 * Sets the description of this shopping category. 233 * 234 * @param description the description of this shopping category 235 */ 236 public void setDescription(String description); 237 238 @Override 239 public boolean isNew(); 240 241 @Override 242 public void setNew(boolean n); 243 244 @Override 245 public boolean isCachedModel(); 246 247 @Override 248 public void setCachedModel(boolean cachedModel); 249 250 @Override 251 public boolean isEscapedModel(); 252 253 @Override 254 public Serializable getPrimaryKeyObj(); 255 256 @Override 257 public void setPrimaryKeyObj(Serializable primaryKeyObj); 258 259 @Override 260 public ExpandoBridge getExpandoBridge(); 261 262 @Override 263 public void setExpandoBridgeAttributes(BaseModel<?> baseModel); 264 265 @Override 266 public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge); 267 268 @Override 269 public void setExpandoBridgeAttributes(ServiceContext serviceContext); 270 271 @Override 272 public Object clone(); 273 274 @Override 275 public int compareTo( 276 com.liferay.portlet.shopping.model.ShoppingCategory shoppingCategory); 277 278 @Override 279 public int hashCode(); 280 281 @Override 282 public CacheModel<com.liferay.portlet.shopping.model.ShoppingCategory> toCacheModel(); 283 284 @Override 285 public com.liferay.portlet.shopping.model.ShoppingCategory toEscapedModel(); 286 287 @Override 288 public com.liferay.portlet.shopping.model.ShoppingCategory toUnescapedModel(); 289 290 @Override 291 public String toString(); 292 293 @Override 294 public String toXmlString(); 295 }