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.portlet.polls.model;
016    
017    import com.liferay.portal.kernel.annotation.AutoEscape;
018    import com.liferay.portal.model.BaseModel;
019    import com.liferay.portal.service.ServiceContext;
020    
021    import com.liferay.portlet.expando.model.ExpandoBridge;
022    
023    import java.io.Serializable;
024    
025    import java.util.Locale;
026    import java.util.Map;
027    
028    /**
029     * <p>
030     * This interface is a model that represents the PollsChoice table in the
031     * database.
032     * </p>
033     *
034     * @author    Brian Wing Shun Chan
035     * @see       PollsChoice
036     * @see       com.liferay.portlet.polls.model.impl.PollsChoiceImpl
037     * @see       com.liferay.portlet.polls.model.impl.PollsChoiceModelImpl
038     * @generated
039     */
040    public interface PollsChoiceModel extends BaseModel<PollsChoice> {
041            public long getPrimaryKey();
042    
043            public void setPrimaryKey(long pk);
044    
045            @AutoEscape
046            public String getUuid();
047    
048            public void setUuid(String uuid);
049    
050            public long getChoiceId();
051    
052            public void setChoiceId(long choiceId);
053    
054            public long getQuestionId();
055    
056            public void setQuestionId(long questionId);
057    
058            @AutoEscape
059            public String getName();
060    
061            public void setName(String name);
062    
063            public String getDescription();
064    
065            public String getDescription(Locale locale);
066    
067            public String getDescription(Locale locale, boolean useDefault);
068    
069            public String getDescription(String languageId);
070    
071            public String getDescription(String languageId, boolean useDefault);
072    
073            public Map<Locale, String> getDescriptionMap();
074    
075            public void setDescription(String description);
076    
077            public void setDescription(Locale locale, String description);
078    
079            public void setDescriptionMap(Map<Locale, String> descriptionMap);
080    
081            public PollsChoice toEscapedModel();
082    
083            public boolean isNew();
084    
085            public void setNew(boolean n);
086    
087            public boolean isCachedModel();
088    
089            public void setCachedModel(boolean cachedModel);
090    
091            public boolean isEscapedModel();
092    
093            public void setEscapedModel(boolean escapedModel);
094    
095            public Serializable getPrimaryKeyObj();
096    
097            public ExpandoBridge getExpandoBridge();
098    
099            public void setExpandoBridgeAttributes(ServiceContext serviceContext);
100    
101            public Object clone();
102    
103            public int compareTo(PollsChoice pollsChoice);
104    
105            public int hashCode();
106    
107            public String toString();
108    
109            public String toXmlString();
110    }