|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface PollsVoteModel
The base model interface for the PollsVote service. Represents a row in the "PollsVote" database table, with each column mapped to a property of this class.
This interface and its corresponding implementation com.liferay.portlet.polls.model.impl.PollsVoteModelImpl exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in com.liferay.portlet.polls.model.impl.PollsVoteImpl.
Never modify or reference this interface directly. All methods that expect a polls vote model instance should use the PollsVote interface instead.
PollsVote,
com.liferay.portlet.polls.model.impl.PollsVoteImpl,
com.liferay.portlet.polls.model.impl.PollsVoteModelImpl| Method Summary | |
|---|---|
java.lang.Object |
clone()
Creates a shallow clone of this model instance. |
int |
compareTo(PollsVote pollsVote)
|
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. |
java.io.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. |
java.lang.String |
getUserUuid()
Gets the user uuid of this polls vote. |
java.util.Date |
getVoteDate()
Gets the vote date of this polls vote. |
long |
getVoteId()
Gets the vote id of this polls vote. |
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(java.lang.String userUuid)
Sets the user uuid of this polls vote. |
void |
setVoteDate(java.util.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. |
java.lang.String |
toString()
|
java.lang.String |
toXmlString()
Gets the XML representation of this model instance. |
| Method Detail |
|---|
long getPrimaryKey()
void setPrimaryKey(long pk)
pk - the primary key of this polls votelong getVoteId()
void setVoteId(long voteId)
voteId - the vote id of this polls votelong getUserId()
void setUserId(long userId)
userId - the user id of this polls vote
java.lang.String getUserUuid()
throws SystemException
SystemException - if a system exception occurredvoid setUserUuid(java.lang.String userUuid)
userUuid - the user uuid of this polls votelong getQuestionId()
void setQuestionId(long questionId)
questionId - the question id of this polls votelong getChoiceId()
void setChoiceId(long choiceId)
choiceId - the choice id of this polls votejava.util.Date getVoteDate()
void setVoteDate(java.util.Date voteDate)
voteDate - the vote date of this polls votePollsVote toEscapedModel()
AutoEscapeBeanHandler.
AutoEscapeBeanHandlerboolean isNew()
BaseModel
isNew in interface BaseModel<PollsVote>true if this model instance does not yet exist in
the database; false otherwisevoid setNew(boolean n)
BaseModel
setNew in interface BaseModel<PollsVote>n - whether this model instance does not yet exist in the databaseboolean isCachedModel()
BaseModel
isCachedModel in interface BaseModel<PollsVote>true if this model instance was retrieved from the
entity cache; false otherwiseBaseModel.setCachedModel(boolean)void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel in interface BaseModel<PollsVote>cachedModel - whether this model instance was retrieved from the
entity cacheEntityCacheboolean isEscapedModel()
BaseModel
isEscapedModel in interface BaseModel<PollsVote>true if this model instance is escaped;
false otherwiseBaseModel.setEscapedModel(boolean)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>escapedModel - whether this model instance is escapedAutoEscapeBeanHandlerjava.io.Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj in interface BaseModel<PollsVote>ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge in interface BaseModel<PollsVote>void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes in interface BaseModel<PollsVote>serviceContext - the service context to retrieve the expando bridge
attributes fromServiceContext.getExpandoBridgeAttributes(
)java.lang.Object clone()
BaseModel
clone in interface BaseModel<PollsVote>int compareTo(PollsVote pollsVote)
compareTo in interface java.lang.Comparable<PollsVote>int hashCode()
hashCode in class java.lang.Objectjava.lang.String toString()
toString in class java.lang.Objectjava.lang.String toXmlString()
BaseModel
toXmlString in interface BaseModel<PollsVote>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||