001
014
015 package com.liferay.portlet.polls.model;
016
017 import com.liferay.portal.model.ModelWrapper;
018
019
028 public class PollsChoiceWrapper implements PollsChoice,
029 ModelWrapper<PollsChoice> {
030 public PollsChoiceWrapper(PollsChoice pollsChoice) {
031 _pollsChoice = pollsChoice;
032 }
033
034 public Class<?> getModelClass() {
035 return PollsChoice.class;
036 }
037
038 public String getModelClassName() {
039 return PollsChoice.class.getName();
040 }
041
042
047 public long getPrimaryKey() {
048 return _pollsChoice.getPrimaryKey();
049 }
050
051
056 public void setPrimaryKey(long primaryKey) {
057 _pollsChoice.setPrimaryKey(primaryKey);
058 }
059
060
065 public java.lang.String getUuid() {
066 return _pollsChoice.getUuid();
067 }
068
069
074 public void setUuid(java.lang.String uuid) {
075 _pollsChoice.setUuid(uuid);
076 }
077
078
083 public long getChoiceId() {
084 return _pollsChoice.getChoiceId();
085 }
086
087
092 public void setChoiceId(long choiceId) {
093 _pollsChoice.setChoiceId(choiceId);
094 }
095
096
101 public long getQuestionId() {
102 return _pollsChoice.getQuestionId();
103 }
104
105
110 public void setQuestionId(long questionId) {
111 _pollsChoice.setQuestionId(questionId);
112 }
113
114
119 public java.lang.String getName() {
120 return _pollsChoice.getName();
121 }
122
123
128 public void setName(java.lang.String name) {
129 _pollsChoice.setName(name);
130 }
131
132
137 public java.lang.String getDescription() {
138 return _pollsChoice.getDescription();
139 }
140
141
147 public java.lang.String getDescription(java.util.Locale locale) {
148 return _pollsChoice.getDescription(locale);
149 }
150
151
158 public java.lang.String getDescription(java.util.Locale locale,
159 boolean useDefault) {
160 return _pollsChoice.getDescription(locale, useDefault);
161 }
162
163
169 public java.lang.String getDescription(java.lang.String languageId) {
170 return _pollsChoice.getDescription(languageId);
171 }
172
173
180 public java.lang.String getDescription(java.lang.String languageId,
181 boolean useDefault) {
182 return _pollsChoice.getDescription(languageId, useDefault);
183 }
184
185 public java.lang.String getDescriptionCurrentLanguageId() {
186 return _pollsChoice.getDescriptionCurrentLanguageId();
187 }
188
189 public java.lang.String getDescriptionCurrentValue() {
190 return _pollsChoice.getDescriptionCurrentValue();
191 }
192
193
198 public java.util.Map<java.util.Locale, java.lang.String> getDescriptionMap() {
199 return _pollsChoice.getDescriptionMap();
200 }
201
202
207 public void setDescription(java.lang.String description) {
208 _pollsChoice.setDescription(description);
209 }
210
211
217 public void setDescription(java.lang.String description,
218 java.util.Locale locale) {
219 _pollsChoice.setDescription(description, locale);
220 }
221
222
229 public void setDescription(java.lang.String description,
230 java.util.Locale locale, java.util.Locale defaultLocale) {
231 _pollsChoice.setDescription(description, locale, defaultLocale);
232 }
233
234 public void setDescriptionCurrentLanguageId(java.lang.String languageId) {
235 _pollsChoice.setDescriptionCurrentLanguageId(languageId);
236 }
237
238
243 public void setDescriptionMap(
244 java.util.Map<java.util.Locale, java.lang.String> descriptionMap) {
245 _pollsChoice.setDescriptionMap(descriptionMap);
246 }
247
248
254 public void setDescriptionMap(
255 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
256 java.util.Locale defaultLocale) {
257 _pollsChoice.setDescriptionMap(descriptionMap, defaultLocale);
258 }
259
260 public boolean isNew() {
261 return _pollsChoice.isNew();
262 }
263
264 public void setNew(boolean n) {
265 _pollsChoice.setNew(n);
266 }
267
268 public boolean isCachedModel() {
269 return _pollsChoice.isCachedModel();
270 }
271
272 public void setCachedModel(boolean cachedModel) {
273 _pollsChoice.setCachedModel(cachedModel);
274 }
275
276 public boolean isEscapedModel() {
277 return _pollsChoice.isEscapedModel();
278 }
279
280 public java.io.Serializable getPrimaryKeyObj() {
281 return _pollsChoice.getPrimaryKeyObj();
282 }
283
284 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
285 _pollsChoice.setPrimaryKeyObj(primaryKeyObj);
286 }
287
288 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
289 return _pollsChoice.getExpandoBridge();
290 }
291
292 public void setExpandoBridgeAttributes(
293 com.liferay.portal.service.ServiceContext serviceContext) {
294 _pollsChoice.setExpandoBridgeAttributes(serviceContext);
295 }
296
297 @Override
298 public java.lang.Object clone() {
299 return new PollsChoiceWrapper((PollsChoice)_pollsChoice.clone());
300 }
301
302 public int compareTo(
303 com.liferay.portlet.polls.model.PollsChoice pollsChoice) {
304 return _pollsChoice.compareTo(pollsChoice);
305 }
306
307 @Override
308 public int hashCode() {
309 return _pollsChoice.hashCode();
310 }
311
312 public com.liferay.portal.model.CacheModel<com.liferay.portlet.polls.model.PollsChoice> toCacheModel() {
313 return _pollsChoice.toCacheModel();
314 }
315
316 public com.liferay.portlet.polls.model.PollsChoice toEscapedModel() {
317 return new PollsChoiceWrapper(_pollsChoice.toEscapedModel());
318 }
319
320 @Override
321 public java.lang.String toString() {
322 return _pollsChoice.toString();
323 }
324
325 public java.lang.String toXmlString() {
326 return _pollsChoice.toXmlString();
327 }
328
329 public void persist()
330 throws com.liferay.portal.kernel.exception.SystemException {
331 _pollsChoice.persist();
332 }
333
334 public int getVotesCount()
335 throws com.liferay.portal.kernel.exception.SystemException {
336 return _pollsChoice.getVotesCount();
337 }
338
339
342 public PollsChoice getWrappedPollsChoice() {
343 return _pollsChoice;
344 }
345
346 public PollsChoice getWrappedModel() {
347 return _pollsChoice;
348 }
349
350 public void resetOriginalValues() {
351 _pollsChoice.resetOriginalValues();
352 }
353
354 private PollsChoice _pollsChoice;
355 }