1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.polls.model;
16  
17  import com.liferay.portal.kernel.annotation.AutoEscape;
18  import com.liferay.portal.model.BaseModel;
19  import com.liferay.portal.service.ServiceContext;
20  
21  import com.liferay.portlet.expando.model.ExpandoBridge;
22  
23  import java.io.Serializable;
24  
25  import java.util.Locale;
26  import java.util.Map;
27  
28  /**
29   * <a href="PollsChoiceModel.java.html"><b><i>View Source</i></b></a>
30   *
31   * <p>
32   * ServiceBuilder generated this class. Modifications in this class will be
33   * overwritten the next time is generated.
34   * </p>
35   *
36   * <p>
37   * This interface is a model that represents the PollsChoice table in the
38   * database.
39   * </p>
40   *
41   * @author    Brian Wing Shun Chan
42   * @see       PollsChoice
43   * @see       com.liferay.portlet.polls.model.impl.PollsChoiceImpl
44   * @see       com.liferay.portlet.polls.model.impl.PollsChoiceModelImpl
45   * @generated
46   */
47  public interface PollsChoiceModel extends BaseModel<PollsChoice> {
48      public long getPrimaryKey();
49  
50      public void setPrimaryKey(long pk);
51  
52      @AutoEscape
53      public String getUuid();
54  
55      public void setUuid(String uuid);
56  
57      public long getChoiceId();
58  
59      public void setChoiceId(long choiceId);
60  
61      public long getQuestionId();
62  
63      public void setQuestionId(long questionId);
64  
65      @AutoEscape
66      public String getName();
67  
68      public void setName(String name);
69  
70      public String getDescription();
71  
72      public String getDescription(Locale locale);
73  
74      public String getDescription(Locale locale, boolean useDefault);
75  
76      public String getDescription(String languageId);
77  
78      public String getDescription(String languageId, boolean useDefault);
79  
80      public Map<Locale, String> getDescriptionMap();
81  
82      public void setDescription(String description);
83  
84      public void setDescription(Locale locale, String description);
85  
86      public void setDescriptionMap(Map<Locale, String> descriptionMap);
87  
88      public PollsChoice toEscapedModel();
89  
90      public boolean isNew();
91  
92      public boolean setNew(boolean n);
93  
94      public boolean isCachedModel();
95  
96      public void setCachedModel(boolean cachedModel);
97  
98      public boolean isEscapedModel();
99  
100     public void setEscapedModel(boolean escapedModel);
101 
102     public Serializable getPrimaryKeyObj();
103 
104     public ExpandoBridge getExpandoBridge();
105 
106     public void setExpandoBridgeAttributes(ServiceContext serviceContext);
107 
108     public Object clone();
109 
110     public int compareTo(PollsChoice pollsChoice);
111 
112     public int hashCode();
113 
114     public String toString();
115 
116     public String toXmlString();
117 }