001    /**
002     * Copyright (c) 2000-2013 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.polls.model.impl;
016    
017    import com.liferay.portal.kernel.bean.AutoEscapeBeanHandler;
018    import com.liferay.portal.kernel.exception.SystemException;
019    import com.liferay.portal.kernel.json.JSON;
020    import com.liferay.portal.kernel.util.GetterUtil;
021    import com.liferay.portal.kernel.util.ProxyUtil;
022    import com.liferay.portal.kernel.util.StringBundler;
023    import com.liferay.portal.kernel.util.StringPool;
024    import com.liferay.portal.model.CacheModel;
025    import com.liferay.portal.model.impl.BaseModelImpl;
026    import com.liferay.portal.service.ServiceContext;
027    import com.liferay.portal.util.PortalUtil;
028    
029    import com.liferay.portlet.expando.model.ExpandoBridge;
030    import com.liferay.portlet.expando.util.ExpandoBridgeFactoryUtil;
031    import com.liferay.portlet.polls.model.PollsVote;
032    import com.liferay.portlet.polls.model.PollsVoteModel;
033    import com.liferay.portlet.polls.model.PollsVoteSoap;
034    
035    import java.io.Serializable;
036    
037    import java.sql.Types;
038    
039    import java.util.ArrayList;
040    import java.util.Date;
041    import java.util.HashMap;
042    import java.util.List;
043    import java.util.Map;
044    
045    /**
046     * The base model implementation for the PollsVote service. Represents a row in the "PollsVote" database table, with each column mapped to a property of this class.
047     *
048     * <p>
049     * This implementation and its corresponding interface {@link com.liferay.portlet.polls.model.PollsVoteModel} exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in {@link PollsVoteImpl}.
050     * </p>
051     *
052     * @author Brian Wing Shun Chan
053     * @see PollsVoteImpl
054     * @see com.liferay.portlet.polls.model.PollsVote
055     * @see com.liferay.portlet.polls.model.PollsVoteModel
056     * @generated
057     */
058    @JSON(strict = true)
059    public class PollsVoteModelImpl extends BaseModelImpl<PollsVote>
060            implements PollsVoteModel {
061            /*
062             * NOTE FOR DEVELOPERS:
063             *
064             * Never modify or reference this class directly. All methods that expect a polls vote model instance should use the {@link com.liferay.portlet.polls.model.PollsVote} interface instead.
065             */
066            public static final String TABLE_NAME = "PollsVote";
067            public static final Object[][] TABLE_COLUMNS = {
068                            { "uuid_", Types.VARCHAR },
069                            { "voteId", Types.BIGINT },
070                            { "groupId", Types.BIGINT },
071                            { "companyId", Types.BIGINT },
072                            { "userId", Types.BIGINT },
073                            { "userName", Types.VARCHAR },
074                            { "createDate", Types.TIMESTAMP },
075                            { "modifiedDate", Types.TIMESTAMP },
076                            { "questionId", Types.BIGINT },
077                            { "choiceId", Types.BIGINT },
078                            { "voteDate", Types.TIMESTAMP }
079                    };
080            public static final String TABLE_SQL_CREATE = "create table PollsVote (uuid_ VARCHAR(75) null,voteId LONG not null primary key,groupId LONG,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,questionId LONG,choiceId LONG,voteDate DATE null)";
081            public static final String TABLE_SQL_DROP = "drop table PollsVote";
082            public static final String ORDER_BY_JPQL = " ORDER BY pollsVote.voteId ASC";
083            public static final String ORDER_BY_SQL = " ORDER BY PollsVote.voteId ASC";
084            public static final String DATA_SOURCE = "liferayDataSource";
085            public static final String SESSION_FACTORY = "liferaySessionFactory";
086            public static final String TX_MANAGER = "liferayTransactionManager";
087            public static final boolean ENTITY_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.portal.util.PropsUtil.get(
088                                    "value.object.entity.cache.enabled.com.liferay.portlet.polls.model.PollsVote"),
089                            true);
090            public static final boolean FINDER_CACHE_ENABLED = GetterUtil.getBoolean(com.liferay.portal.util.PropsUtil.get(
091                                    "value.object.finder.cache.enabled.com.liferay.portlet.polls.model.PollsVote"),
092                            true);
093            public static final boolean COLUMN_BITMASK_ENABLED = GetterUtil.getBoolean(com.liferay.portal.util.PropsUtil.get(
094                                    "value.object.column.bitmask.enabled.com.liferay.portlet.polls.model.PollsVote"),
095                            true);
096            public static long CHOICEID_COLUMN_BITMASK = 1L;
097            public static long COMPANYID_COLUMN_BITMASK = 2L;
098            public static long GROUPID_COLUMN_BITMASK = 4L;
099            public static long QUESTIONID_COLUMN_BITMASK = 8L;
100            public static long USERID_COLUMN_BITMASK = 16L;
101            public static long UUID_COLUMN_BITMASK = 32L;
102            public static long VOTEID_COLUMN_BITMASK = 64L;
103    
104            /**
105             * Converts the soap model instance into a normal model instance.
106             *
107             * @param soapModel the soap model instance to convert
108             * @return the normal model instance
109             */
110            public static PollsVote toModel(PollsVoteSoap soapModel) {
111                    if (soapModel == null) {
112                            return null;
113                    }
114    
115                    PollsVote model = new PollsVoteImpl();
116    
117                    model.setUuid(soapModel.getUuid());
118                    model.setVoteId(soapModel.getVoteId());
119                    model.setGroupId(soapModel.getGroupId());
120                    model.setCompanyId(soapModel.getCompanyId());
121                    model.setUserId(soapModel.getUserId());
122                    model.setUserName(soapModel.getUserName());
123                    model.setCreateDate(soapModel.getCreateDate());
124                    model.setModifiedDate(soapModel.getModifiedDate());
125                    model.setQuestionId(soapModel.getQuestionId());
126                    model.setChoiceId(soapModel.getChoiceId());
127                    model.setVoteDate(soapModel.getVoteDate());
128    
129                    return model;
130            }
131    
132            /**
133             * Converts the soap model instances into normal model instances.
134             *
135             * @param soapModels the soap model instances to convert
136             * @return the normal model instances
137             */
138            public static List<PollsVote> toModels(PollsVoteSoap[] soapModels) {
139                    if (soapModels == null) {
140                            return null;
141                    }
142    
143                    List<PollsVote> models = new ArrayList<PollsVote>(soapModels.length);
144    
145                    for (PollsVoteSoap soapModel : soapModels) {
146                            models.add(toModel(soapModel));
147                    }
148    
149                    return models;
150            }
151    
152            public static final long LOCK_EXPIRATION_TIME = GetterUtil.getLong(com.liferay.portal.util.PropsUtil.get(
153                                    "lock.expiration.time.com.liferay.portlet.polls.model.PollsVote"));
154    
155            public PollsVoteModelImpl() {
156            }
157    
158            public long getPrimaryKey() {
159                    return _voteId;
160            }
161    
162            public void setPrimaryKey(long primaryKey) {
163                    setVoteId(primaryKey);
164            }
165    
166            public Serializable getPrimaryKeyObj() {
167                    return _voteId;
168            }
169    
170            public void setPrimaryKeyObj(Serializable primaryKeyObj) {
171                    setPrimaryKey(((Long)primaryKeyObj).longValue());
172            }
173    
174            public Class<?> getModelClass() {
175                    return PollsVote.class;
176            }
177    
178            public String getModelClassName() {
179                    return PollsVote.class.getName();
180            }
181    
182            @Override
183            public Map<String, Object> getModelAttributes() {
184                    Map<String, Object> attributes = new HashMap<String, Object>();
185    
186                    attributes.put("uuid", getUuid());
187                    attributes.put("voteId", getVoteId());
188                    attributes.put("groupId", getGroupId());
189                    attributes.put("companyId", getCompanyId());
190                    attributes.put("userId", getUserId());
191                    attributes.put("userName", getUserName());
192                    attributes.put("createDate", getCreateDate());
193                    attributes.put("modifiedDate", getModifiedDate());
194                    attributes.put("questionId", getQuestionId());
195                    attributes.put("choiceId", getChoiceId());
196                    attributes.put("voteDate", getVoteDate());
197    
198                    return attributes;
199            }
200    
201            @Override
202            public void setModelAttributes(Map<String, Object> attributes) {
203                    String uuid = (String)attributes.get("uuid");
204    
205                    if (uuid != null) {
206                            setUuid(uuid);
207                    }
208    
209                    Long voteId = (Long)attributes.get("voteId");
210    
211                    if (voteId != null) {
212                            setVoteId(voteId);
213                    }
214    
215                    Long groupId = (Long)attributes.get("groupId");
216    
217                    if (groupId != null) {
218                            setGroupId(groupId);
219                    }
220    
221                    Long companyId = (Long)attributes.get("companyId");
222    
223                    if (companyId != null) {
224                            setCompanyId(companyId);
225                    }
226    
227                    Long userId = (Long)attributes.get("userId");
228    
229                    if (userId != null) {
230                            setUserId(userId);
231                    }
232    
233                    String userName = (String)attributes.get("userName");
234    
235                    if (userName != null) {
236                            setUserName(userName);
237                    }
238    
239                    Date createDate = (Date)attributes.get("createDate");
240    
241                    if (createDate != null) {
242                            setCreateDate(createDate);
243                    }
244    
245                    Date modifiedDate = (Date)attributes.get("modifiedDate");
246    
247                    if (modifiedDate != null) {
248                            setModifiedDate(modifiedDate);
249                    }
250    
251                    Long questionId = (Long)attributes.get("questionId");
252    
253                    if (questionId != null) {
254                            setQuestionId(questionId);
255                    }
256    
257                    Long choiceId = (Long)attributes.get("choiceId");
258    
259                    if (choiceId != null) {
260                            setChoiceId(choiceId);
261                    }
262    
263                    Date voteDate = (Date)attributes.get("voteDate");
264    
265                    if (voteDate != null) {
266                            setVoteDate(voteDate);
267                    }
268            }
269    
270            @JSON
271            public String getUuid() {
272                    if (_uuid == null) {
273                            return StringPool.BLANK;
274                    }
275                    else {
276                            return _uuid;
277                    }
278            }
279    
280            public void setUuid(String uuid) {
281                    if (_originalUuid == null) {
282                            _originalUuid = _uuid;
283                    }
284    
285                    _uuid = uuid;
286            }
287    
288            public String getOriginalUuid() {
289                    return GetterUtil.getString(_originalUuid);
290            }
291    
292            @JSON
293            public long getVoteId() {
294                    return _voteId;
295            }
296    
297            public void setVoteId(long voteId) {
298                    _voteId = voteId;
299            }
300    
301            @JSON
302            public long getGroupId() {
303                    return _groupId;
304            }
305    
306            public void setGroupId(long groupId) {
307                    _columnBitmask |= GROUPID_COLUMN_BITMASK;
308    
309                    if (!_setOriginalGroupId) {
310                            _setOriginalGroupId = true;
311    
312                            _originalGroupId = _groupId;
313                    }
314    
315                    _groupId = groupId;
316            }
317    
318            public long getOriginalGroupId() {
319                    return _originalGroupId;
320            }
321    
322            @JSON
323            public long getCompanyId() {
324                    return _companyId;
325            }
326    
327            public void setCompanyId(long companyId) {
328                    _columnBitmask |= COMPANYID_COLUMN_BITMASK;
329    
330                    if (!_setOriginalCompanyId) {
331                            _setOriginalCompanyId = true;
332    
333                            _originalCompanyId = _companyId;
334                    }
335    
336                    _companyId = companyId;
337            }
338    
339            public long getOriginalCompanyId() {
340                    return _originalCompanyId;
341            }
342    
343            @JSON
344            public long getUserId() {
345                    return _userId;
346            }
347    
348            public void setUserId(long userId) {
349                    _columnBitmask |= USERID_COLUMN_BITMASK;
350    
351                    if (!_setOriginalUserId) {
352                            _setOriginalUserId = true;
353    
354                            _originalUserId = _userId;
355                    }
356    
357                    _userId = userId;
358            }
359    
360            public String getUserUuid() throws SystemException {
361                    return PortalUtil.getUserValue(getUserId(), "uuid", _userUuid);
362            }
363    
364            public void setUserUuid(String userUuid) {
365                    _userUuid = userUuid;
366            }
367    
368            public long getOriginalUserId() {
369                    return _originalUserId;
370            }
371    
372            @JSON
373            public String getUserName() {
374                    if (_userName == null) {
375                            return StringPool.BLANK;
376                    }
377                    else {
378                            return _userName;
379                    }
380            }
381    
382            public void setUserName(String userName) {
383                    _userName = userName;
384            }
385    
386            @JSON
387            public Date getCreateDate() {
388                    return _createDate;
389            }
390    
391            public void setCreateDate(Date createDate) {
392                    _createDate = createDate;
393            }
394    
395            @JSON
396            public Date getModifiedDate() {
397                    return _modifiedDate;
398            }
399    
400            public void setModifiedDate(Date modifiedDate) {
401                    _modifiedDate = modifiedDate;
402            }
403    
404            @JSON
405            public long getQuestionId() {
406                    return _questionId;
407            }
408    
409            public void setQuestionId(long questionId) {
410                    _columnBitmask |= QUESTIONID_COLUMN_BITMASK;
411    
412                    if (!_setOriginalQuestionId) {
413                            _setOriginalQuestionId = true;
414    
415                            _originalQuestionId = _questionId;
416                    }
417    
418                    _questionId = questionId;
419            }
420    
421            public long getOriginalQuestionId() {
422                    return _originalQuestionId;
423            }
424    
425            @JSON
426            public long getChoiceId() {
427                    return _choiceId;
428            }
429    
430            public void setChoiceId(long choiceId) {
431                    _columnBitmask |= CHOICEID_COLUMN_BITMASK;
432    
433                    if (!_setOriginalChoiceId) {
434                            _setOriginalChoiceId = true;
435    
436                            _originalChoiceId = _choiceId;
437                    }
438    
439                    _choiceId = choiceId;
440            }
441    
442            public long getOriginalChoiceId() {
443                    return _originalChoiceId;
444            }
445    
446            @JSON
447            public Date getVoteDate() {
448                    return _voteDate;
449            }
450    
451            public void setVoteDate(Date voteDate) {
452                    _voteDate = voteDate;
453            }
454    
455            public long getColumnBitmask() {
456                    return _columnBitmask;
457            }
458    
459            @Override
460            public ExpandoBridge getExpandoBridge() {
461                    return ExpandoBridgeFactoryUtil.getExpandoBridge(getCompanyId(),
462                            PollsVote.class.getName(), getPrimaryKey());
463            }
464    
465            @Override
466            public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
467                    ExpandoBridge expandoBridge = getExpandoBridge();
468    
469                    expandoBridge.setAttributes(serviceContext);
470            }
471    
472            @Override
473            public PollsVote toEscapedModel() {
474                    if (_escapedModel == null) {
475                            _escapedModel = (PollsVote)ProxyUtil.newProxyInstance(_classLoader,
476                                            _escapedModelInterfaces, new AutoEscapeBeanHandler(this));
477                    }
478    
479                    return _escapedModel;
480            }
481    
482            @Override
483            public Object clone() {
484                    PollsVoteImpl pollsVoteImpl = new PollsVoteImpl();
485    
486                    pollsVoteImpl.setUuid(getUuid());
487                    pollsVoteImpl.setVoteId(getVoteId());
488                    pollsVoteImpl.setGroupId(getGroupId());
489                    pollsVoteImpl.setCompanyId(getCompanyId());
490                    pollsVoteImpl.setUserId(getUserId());
491                    pollsVoteImpl.setUserName(getUserName());
492                    pollsVoteImpl.setCreateDate(getCreateDate());
493                    pollsVoteImpl.setModifiedDate(getModifiedDate());
494                    pollsVoteImpl.setQuestionId(getQuestionId());
495                    pollsVoteImpl.setChoiceId(getChoiceId());
496                    pollsVoteImpl.setVoteDate(getVoteDate());
497    
498                    pollsVoteImpl.resetOriginalValues();
499    
500                    return pollsVoteImpl;
501            }
502    
503            public int compareTo(PollsVote pollsVote) {
504                    long primaryKey = pollsVote.getPrimaryKey();
505    
506                    if (getPrimaryKey() < primaryKey) {
507                            return -1;
508                    }
509                    else if (getPrimaryKey() > primaryKey) {
510                            return 1;
511                    }
512                    else {
513                            return 0;
514                    }
515            }
516    
517            @Override
518            public boolean equals(Object obj) {
519                    if (obj == null) {
520                            return false;
521                    }
522    
523                    PollsVote pollsVote = null;
524    
525                    try {
526                            pollsVote = (PollsVote)obj;
527                    }
528                    catch (ClassCastException cce) {
529                            return false;
530                    }
531    
532                    long primaryKey = pollsVote.getPrimaryKey();
533    
534                    if (getPrimaryKey() == primaryKey) {
535                            return true;
536                    }
537                    else {
538                            return false;
539                    }
540            }
541    
542            @Override
543            public int hashCode() {
544                    return (int)getPrimaryKey();
545            }
546    
547            @Override
548            public void resetOriginalValues() {
549                    PollsVoteModelImpl pollsVoteModelImpl = this;
550    
551                    pollsVoteModelImpl._originalUuid = pollsVoteModelImpl._uuid;
552    
553                    pollsVoteModelImpl._originalGroupId = pollsVoteModelImpl._groupId;
554    
555                    pollsVoteModelImpl._setOriginalGroupId = false;
556    
557                    pollsVoteModelImpl._originalCompanyId = pollsVoteModelImpl._companyId;
558    
559                    pollsVoteModelImpl._setOriginalCompanyId = false;
560    
561                    pollsVoteModelImpl._originalUserId = pollsVoteModelImpl._userId;
562    
563                    pollsVoteModelImpl._setOriginalUserId = false;
564    
565                    pollsVoteModelImpl._originalQuestionId = pollsVoteModelImpl._questionId;
566    
567                    pollsVoteModelImpl._setOriginalQuestionId = false;
568    
569                    pollsVoteModelImpl._originalChoiceId = pollsVoteModelImpl._choiceId;
570    
571                    pollsVoteModelImpl._setOriginalChoiceId = false;
572    
573                    pollsVoteModelImpl._columnBitmask = 0;
574            }
575    
576            @Override
577            public CacheModel<PollsVote> toCacheModel() {
578                    PollsVoteCacheModel pollsVoteCacheModel = new PollsVoteCacheModel();
579    
580                    pollsVoteCacheModel.uuid = getUuid();
581    
582                    String uuid = pollsVoteCacheModel.uuid;
583    
584                    if ((uuid != null) && (uuid.length() == 0)) {
585                            pollsVoteCacheModel.uuid = null;
586                    }
587    
588                    pollsVoteCacheModel.voteId = getVoteId();
589    
590                    pollsVoteCacheModel.groupId = getGroupId();
591    
592                    pollsVoteCacheModel.companyId = getCompanyId();
593    
594                    pollsVoteCacheModel.userId = getUserId();
595    
596                    pollsVoteCacheModel.userName = getUserName();
597    
598                    String userName = pollsVoteCacheModel.userName;
599    
600                    if ((userName != null) && (userName.length() == 0)) {
601                            pollsVoteCacheModel.userName = null;
602                    }
603    
604                    Date createDate = getCreateDate();
605    
606                    if (createDate != null) {
607                            pollsVoteCacheModel.createDate = createDate.getTime();
608                    }
609                    else {
610                            pollsVoteCacheModel.createDate = Long.MIN_VALUE;
611                    }
612    
613                    Date modifiedDate = getModifiedDate();
614    
615                    if (modifiedDate != null) {
616                            pollsVoteCacheModel.modifiedDate = modifiedDate.getTime();
617                    }
618                    else {
619                            pollsVoteCacheModel.modifiedDate = Long.MIN_VALUE;
620                    }
621    
622                    pollsVoteCacheModel.questionId = getQuestionId();
623    
624                    pollsVoteCacheModel.choiceId = getChoiceId();
625    
626                    Date voteDate = getVoteDate();
627    
628                    if (voteDate != null) {
629                            pollsVoteCacheModel.voteDate = voteDate.getTime();
630                    }
631                    else {
632                            pollsVoteCacheModel.voteDate = Long.MIN_VALUE;
633                    }
634    
635                    return pollsVoteCacheModel;
636            }
637    
638            @Override
639            public String toString() {
640                    StringBundler sb = new StringBundler(23);
641    
642                    sb.append("{uuid=");
643                    sb.append(getUuid());
644                    sb.append(", voteId=");
645                    sb.append(getVoteId());
646                    sb.append(", groupId=");
647                    sb.append(getGroupId());
648                    sb.append(", companyId=");
649                    sb.append(getCompanyId());
650                    sb.append(", userId=");
651                    sb.append(getUserId());
652                    sb.append(", userName=");
653                    sb.append(getUserName());
654                    sb.append(", createDate=");
655                    sb.append(getCreateDate());
656                    sb.append(", modifiedDate=");
657                    sb.append(getModifiedDate());
658                    sb.append(", questionId=");
659                    sb.append(getQuestionId());
660                    sb.append(", choiceId=");
661                    sb.append(getChoiceId());
662                    sb.append(", voteDate=");
663                    sb.append(getVoteDate());
664                    sb.append("}");
665    
666                    return sb.toString();
667            }
668    
669            public String toXmlString() {
670                    StringBundler sb = new StringBundler(37);
671    
672                    sb.append("<model><model-name>");
673                    sb.append("com.liferay.portlet.polls.model.PollsVote");
674                    sb.append("</model-name>");
675    
676                    sb.append(
677                            "<column><column-name>uuid</column-name><column-value><![CDATA[");
678                    sb.append(getUuid());
679                    sb.append("]]></column-value></column>");
680                    sb.append(
681                            "<column><column-name>voteId</column-name><column-value><![CDATA[");
682                    sb.append(getVoteId());
683                    sb.append("]]></column-value></column>");
684                    sb.append(
685                            "<column><column-name>groupId</column-name><column-value><![CDATA[");
686                    sb.append(getGroupId());
687                    sb.append("]]></column-value></column>");
688                    sb.append(
689                            "<column><column-name>companyId</column-name><column-value><![CDATA[");
690                    sb.append(getCompanyId());
691                    sb.append("]]></column-value></column>");
692                    sb.append(
693                            "<column><column-name>userId</column-name><column-value><![CDATA[");
694                    sb.append(getUserId());
695                    sb.append("]]></column-value></column>");
696                    sb.append(
697                            "<column><column-name>userName</column-name><column-value><![CDATA[");
698                    sb.append(getUserName());
699                    sb.append("]]></column-value></column>");
700                    sb.append(
701                            "<column><column-name>createDate</column-name><column-value><![CDATA[");
702                    sb.append(getCreateDate());
703                    sb.append("]]></column-value></column>");
704                    sb.append(
705                            "<column><column-name>modifiedDate</column-name><column-value><![CDATA[");
706                    sb.append(getModifiedDate());
707                    sb.append("]]></column-value></column>");
708                    sb.append(
709                            "<column><column-name>questionId</column-name><column-value><![CDATA[");
710                    sb.append(getQuestionId());
711                    sb.append("]]></column-value></column>");
712                    sb.append(
713                            "<column><column-name>choiceId</column-name><column-value><![CDATA[");
714                    sb.append(getChoiceId());
715                    sb.append("]]></column-value></column>");
716                    sb.append(
717                            "<column><column-name>voteDate</column-name><column-value><![CDATA[");
718                    sb.append(getVoteDate());
719                    sb.append("]]></column-value></column>");
720    
721                    sb.append("</model>");
722    
723                    return sb.toString();
724            }
725    
726            private static ClassLoader _classLoader = PollsVote.class.getClassLoader();
727            private static Class<?>[] _escapedModelInterfaces = new Class[] {
728                            PollsVote.class
729                    };
730            private String _uuid;
731            private String _originalUuid;
732            private long _voteId;
733            private long _groupId;
734            private long _originalGroupId;
735            private boolean _setOriginalGroupId;
736            private long _companyId;
737            private long _originalCompanyId;
738            private boolean _setOriginalCompanyId;
739            private long _userId;
740            private String _userUuid;
741            private long _originalUserId;
742            private boolean _setOriginalUserId;
743            private String _userName;
744            private Date _createDate;
745            private Date _modifiedDate;
746            private long _questionId;
747            private long _originalQuestionId;
748            private boolean _setOriginalQuestionId;
749            private long _choiceId;
750            private long _originalChoiceId;
751            private boolean _setOriginalChoiceId;
752            private Date _voteDate;
753            private long _columnBitmask;
754            private PollsVote _escapedModel;
755    }