|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portlet.polls.model.PollsVoteWrapper
public class PollsVoteWrapper
This class is a wrapper for PollsVote
.
PollsVote
,
Serialized FormConstructor Summary | |
---|---|
PollsVoteWrapper(PollsVote pollsVote)
|
Method Summary | |
---|---|
Object |
clone()
Creates a shallow clone of this model instance. |
int |
compareTo(PollsVote pollsVote)
|
PollsChoice |
getChoice()
|
long |
getChoiceId()
Gets the choice id of this polls vote. |
ExpandoBridge |
getExpandoBridge()
Gets the expando bridge for this model instance. |
long |
getPrimaryKey()
Gets the primary key of this polls vote. |
Serializable |
getPrimaryKeyObj()
Gets the primary key of this model instance. |
long |
getQuestionId()
Gets the question id of this polls vote. |
long |
getUserId()
Gets the user id of this polls vote. |
String |
getUserUuid()
Gets the user uuid of this polls vote. |
Date |
getVoteDate()
Gets the vote date of this polls vote. |
long |
getVoteId()
Gets the vote id of this polls vote. |
PollsVote |
getWrappedPollsVote()
|
int |
hashCode()
|
boolean |
isCachedModel()
Determines if this model instance was retrieved from the entity cache. |
boolean |
isEscapedModel()
Determines if this model instance is escaped. |
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)
Sets the choice id of this polls vote. |
void |
setEscapedModel(boolean escapedModel)
Sets whether this model instance is escaped, meaning that all strings returned from getter methods are HTML safe. |
void |
setExpandoBridgeAttributes(ServiceContext serviceContext)
Sets the expando bridge attributes for this model instance to the attributes stored in the service context. |
void |
setNew(boolean n)
Sets whether this model instance does not yet exist in the database. |
void |
setPrimaryKey(long pk)
Sets the primary key of this polls vote |
void |
setQuestionId(long questionId)
Sets the question id of this polls vote. |
void |
setUserId(long userId)
Sets the user id of this polls vote. |
void |
setUserUuid(String userUuid)
Sets the user uuid of this polls vote. |
void |
setVoteDate(Date voteDate)
Sets the vote date of this polls vote. |
void |
setVoteId(long voteId)
Sets the vote id of this polls vote. |
PollsVote |
toEscapedModel()
Gets a copy of this polls vote as an escaped model instance by wrapping it with an AutoEscapeBeanHandler . |
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 PollsVoteWrapper(PollsVote pollsVote)
Method Detail |
---|
public long getPrimaryKey()
PollsVoteModel
getPrimaryKey
in interface PollsVoteModel
public void setPrimaryKey(long pk)
PollsVoteModel
setPrimaryKey
in interface PollsVoteModel
pk
- the primary key of this polls votepublic long getVoteId()
PollsVoteModel
getVoteId
in interface PollsVoteModel
public void setVoteId(long voteId)
PollsVoteModel
setVoteId
in interface PollsVoteModel
voteId
- the vote id of this polls votepublic long getUserId()
PollsVoteModel
getUserId
in interface PollsVoteModel
public void setUserId(long userId)
PollsVoteModel
setUserId
in interface PollsVoteModel
userId
- the user id of this polls votepublic String getUserUuid() throws SystemException
PollsVoteModel
getUserUuid
in interface PollsVoteModel
SystemException
- if a system exception occurredpublic void setUserUuid(String userUuid)
PollsVoteModel
setUserUuid
in interface PollsVoteModel
userUuid
- the user uuid of this polls votepublic long getQuestionId()
PollsVoteModel
getQuestionId
in interface PollsVoteModel
public void setQuestionId(long questionId)
PollsVoteModel
setQuestionId
in interface PollsVoteModel
questionId
- the question id of this polls votepublic long getChoiceId()
PollsVoteModel
getChoiceId
in interface PollsVoteModel
public void setChoiceId(long choiceId)
PollsVoteModel
setChoiceId
in interface PollsVoteModel
choiceId
- the choice id of this polls votepublic Date getVoteDate()
PollsVoteModel
getVoteDate
in interface PollsVoteModel
public void setVoteDate(Date voteDate)
PollsVoteModel
setVoteDate
in interface PollsVoteModel
voteDate
- the vote date of this polls votepublic PollsVote toEscapedModel()
PollsVoteModel
AutoEscapeBeanHandler
.
toEscapedModel
in interface PollsVoteModel
AutoEscapeBeanHandler
public boolean isNew()
BaseModel
isNew
in interface BaseModel<PollsVote>
isNew
in interface PollsVoteModel
true
if this model instance does not yet exist in
the database; false
otherwisepublic void setNew(boolean n)
BaseModel
setNew
in interface BaseModel<PollsVote>
setNew
in interface PollsVoteModel
n
- whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModel
isCachedModel
in interface BaseModel<PollsVote>
isCachedModel
in interface PollsVoteModel
true
if this model instance was retrieved from the
entity cache; false
otherwiseBaseModel.setCachedModel(boolean)
public void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel
in interface BaseModel<PollsVote>
setCachedModel
in interface PollsVoteModel
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
public boolean isEscapedModel()
BaseModel
isEscapedModel
in interface BaseModel<PollsVote>
isEscapedModel
in interface PollsVoteModel
true
if this model instance is escaped;
false
otherwiseBaseModel.setEscapedModel(boolean)
public void setEscapedModel(boolean escapedModel)
BaseModel
A model instance can be made escaped by wrapping it with an HTML auto
escape handler using its toEscapedModel
method. For example,
UserModel.toEscapedModel()
.
setEscapedModel
in interface BaseModel<PollsVote>
setEscapedModel
in interface PollsVoteModel
escapedModel
- whether this model instance is escapedAutoEscapeBeanHandler
public Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<PollsVote>
getPrimaryKeyObj
in interface PollsVoteModel
public ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<PollsVote>
getExpandoBridge
in interface PollsVoteModel
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<PollsVote>
setExpandoBridgeAttributes
in interface PollsVoteModel
serviceContext
- the service context to retrieve the expando bridge
attributes fromServiceContext.getExpandoBridgeAttributes(
)
public Object clone()
BaseModel
clone
in interface BaseModel<PollsVote>
clone
in interface PollsVoteModel
clone
in class Object
public int compareTo(PollsVote pollsVote)
compareTo
in interface PollsVoteModel
compareTo
in interface Comparable<PollsVote>
public int hashCode()
hashCode
in interface PollsVoteModel
hashCode
in class Object
public String toString()
toString
in interface PollsVoteModel
toString
in class Object
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<PollsVote>
toXmlString
in interface PollsVoteModel
public PollsChoice getChoice() throws PortalException, SystemException
getChoice
in interface PollsVote
PortalException
SystemException
public PollsVote getWrappedPollsVote()
|
Liferay 6.0.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |