|
Liferay 6.0.3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portlet.polls.model.PollsChoiceWrapper
public class PollsChoiceWrapper
This class is a wrapper for PollsChoice.
PollsChoice,
Serialized Form| Constructor Summary | |
|---|---|
PollsChoiceWrapper(PollsChoice pollsChoice)
|
|
| Method Summary | |
|---|---|
Object |
clone()
Creates a shallow clone of this model instance. |
int |
compareTo(PollsChoice pollsChoice)
|
long |
getChoiceId()
|
String |
getDescription()
|
String |
getDescription(Locale locale)
|
String |
getDescription(Locale locale,
boolean useDefault)
|
String |
getDescription(String languageId)
|
String |
getDescription(String languageId,
boolean useDefault)
|
Map<Locale,String> |
getDescriptionMap()
|
ExpandoBridge |
getExpandoBridge()
Gets the expando bridge for this model instance. |
String |
getName()
|
long |
getPrimaryKey()
|
Serializable |
getPrimaryKeyObj()
Gets the primary key for this model instance. |
long |
getQuestionId()
|
String |
getUuid()
|
int |
getVotesCount()
|
PollsChoice |
getWrappedPollsChoice()
|
int |
hashCode()
|
boolean |
isCachedModel()
Determines if this model instance was retrieved from the entity cache. |
boolean |
isEscapedModel()
Determines if this model instance has been wrapped with an HTML auto escape handler. |
boolean |
isNew()
Determines if this model instance does not yet exist in the database. |
void |
setCachedModel(boolean cachedModel)
Sets whether this model instance was retrieved from the entity cache. |
void |
setChoiceId(long choiceId)
|
void |
setDescription(Locale locale,
String description)
|
void |
setDescription(String description)
|
void |
setDescriptionMap(Map<Locale,String> descriptionMap)
|
void |
setEscapedModel(boolean escapedModel)
Sets whether this model instance has been wrapped with an HTML auto escape handler. |
void |
setExpandoBridgeAttributes(ServiceContext serviceContext)
Sets the expando bridge attributes for this model instance to the attributes stored in the service context. |
void |
setName(String name)
|
void |
setNew(boolean n)
Sets whether this model instance does not yet exist in the database. |
void |
setPrimaryKey(long pk)
|
void |
setQuestionId(long questionId)
|
void |
setUuid(String uuid)
|
PollsChoice |
toEscapedModel()
|
String |
toString()
|
String |
toXmlString()
Gets the XML representation of this model instance. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PollsChoiceWrapper(PollsChoice pollsChoice)
| Method Detail |
|---|
public long getPrimaryKey()
getPrimaryKey in interface PollsChoiceModelpublic void setPrimaryKey(long pk)
setPrimaryKey in interface PollsChoiceModelpublic String getUuid()
getUuid in interface PollsChoiceModelpublic void setUuid(String uuid)
setUuid in interface PollsChoiceModelpublic long getChoiceId()
getChoiceId in interface PollsChoiceModelpublic void setChoiceId(long choiceId)
setChoiceId in interface PollsChoiceModelpublic long getQuestionId()
getQuestionId in interface PollsChoiceModelpublic void setQuestionId(long questionId)
setQuestionId in interface PollsChoiceModelpublic String getName()
getName in interface PollsChoiceModelpublic void setName(String name)
setName in interface PollsChoiceModelpublic String getDescription()
getDescription in interface PollsChoiceModelpublic String getDescription(Locale locale)
getDescription in interface PollsChoiceModel
public String getDescription(Locale locale,
boolean useDefault)
getDescription in interface PollsChoiceModelpublic String getDescription(String languageId)
getDescription in interface PollsChoiceModel
public String getDescription(String languageId,
boolean useDefault)
getDescription in interface PollsChoiceModelpublic Map<Locale,String> getDescriptionMap()
getDescriptionMap in interface PollsChoiceModelpublic void setDescription(String description)
setDescription in interface PollsChoiceModel
public void setDescription(Locale locale,
String description)
setDescription in interface PollsChoiceModelpublic void setDescriptionMap(Map<Locale,String> descriptionMap)
setDescriptionMap in interface PollsChoiceModelpublic PollsChoice toEscapedModel()
toEscapedModel in interface PollsChoiceModelpublic boolean isNew()
BaseModel
isNew in interface BaseModel<PollsChoice>isNew in interface PollsChoiceModeltrue if this model instance does not yet exist in
the database; false otherwisepublic void setNew(boolean n)
BaseModel
setNew in interface BaseModel<PollsChoice>setNew in interface PollsChoiceModeln - whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModel
isCachedModel in interface BaseModel<PollsChoice>isCachedModel in interface PollsChoiceModeltrue if this model instance was retrieved from the
entity cache; false otherwiseBaseModel.setCachedModel(boolean)public void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel in interface BaseModel<PollsChoice>setCachedModel in interface PollsChoiceModelcachedModel - whether this model instance was retrieved from the
entity cacheEntityCachepublic boolean isEscapedModel()
BaseModel
isEscapedModel in interface BaseModel<PollsChoice>isEscapedModel in interface PollsChoiceModeltrue if this model instance has been wrapped with an
HTML auto escape handler; false otherwiseBaseModel.setEscapedModel(boolean)public void setEscapedModel(boolean escapedModel)
BaseModel
A model instance can be wrapped with an HTML auto escape handler using
its toEscapedModel method. For example, UserModel.toEscapedModel().
setEscapedModel in interface BaseModel<PollsChoice>setEscapedModel in interface PollsChoiceModelescapedModel - whether this model instance has been wrapped with an
HTML auto escape handlerAutoEscapeBeanHandlerpublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj in interface BaseModel<PollsChoice>getPrimaryKeyObj in interface PollsChoiceModelpublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge in interface BaseModel<PollsChoice>getExpandoBridge in interface PollsChoiceModelpublic void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes in interface BaseModel<PollsChoice>setExpandoBridgeAttributes in interface PollsChoiceModelserviceContext - the service context to retrieve the expando bridge
attributes fromServiceContext.getExpandoBridgeAttributes(
)public Object clone()
BaseModel
clone in interface BaseModel<PollsChoice>clone in interface PollsChoiceModelclone in class Objectpublic int compareTo(PollsChoice pollsChoice)
compareTo in interface PollsChoiceModelcompareTo in interface Comparable<PollsChoice>public int hashCode()
hashCode in interface PollsChoiceModelhashCode in class Objectpublic String toString()
toString in interface PollsChoiceModeltoString in class Objectpublic String toXmlString()
BaseModel
toXmlString in interface BaseModel<PollsChoice>toXmlString in interface PollsChoiceModel
public int getVotesCount()
throws SystemException
getVotesCount in interface PollsChoiceSystemExceptionpublic PollsChoice getWrappedPollsChoice()
|
Liferay 6.0.3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||