|
Liferay 6.2-ce-ga5 | |||||||||
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
@ProviderType 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)
|
boolean |
equals(Object obj)
|
PollsChoice |
getChoice()
|
long |
getChoiceId()
Returns the choice ID of this polls vote. |
long |
getCompanyId()
Returns the company ID of this polls vote. |
Date |
getCreateDate()
Returns the create date of this polls vote. |
ExpandoBridge |
getExpandoBridge()
Returns the expando bridge for this model instance. |
long |
getGroupId()
Returns the group ID of this polls vote. |
Map<String,Object> |
getModelAttributes()
|
Class<?> |
getModelClass()
|
String |
getModelClassName()
|
Date |
getModifiedDate()
Returns the modified date of this polls vote. |
long |
getPrimaryKey()
Returns the primary key of this polls vote. |
Serializable |
getPrimaryKeyObj()
Returns the primary key of this model instance. |
long |
getQuestionId()
Returns the question ID of this polls vote. |
StagedModelType |
getStagedModelType()
|
long |
getUserId()
Returns the user ID of this polls vote. |
String |
getUserName()
Returns the user name of this polls vote. |
String |
getUserUuid()
Returns the user uuid of this polls vote. |
String |
getUuid()
Returns the uuid of this polls vote. |
Date |
getVoteDate()
Returns the vote date of this polls vote. |
long |
getVoteId()
Returns the vote ID of this polls vote. |
PollsVote |
getWrappedModel()
|
PollsVote |
getWrappedPollsVote()
Deprecated. As of 6.1.0, replaced by getWrappedModel() |
int |
hashCode()
|
boolean |
isCachedModel()
Returns true if this model instance was retrieved from the
entity cache. |
boolean |
isEscapedModel()
Returns true if this model instance is escaped. |
boolean |
isNew()
Returns true if this model instance does not yet exist in
the database. |
void |
persist()
Updates this model instance in the database or adds it if it does not yet exist. |
void |
resetOriginalValues()
Reset all original fields to current values. |
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 |
setCompanyId(long companyId)
Sets the company ID of this polls vote. |
void |
setCreateDate(Date createDate)
Sets the create date of this polls vote. |
void |
setExpandoBridgeAttributes(BaseModel<?> baseModel)
|
void |
setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
|
void |
setExpandoBridgeAttributes(ServiceContext serviceContext)
Sets the expando bridge attributes for this model instance to the attributes stored in the service context. |
void |
setGroupId(long groupId)
Sets the group ID of this polls vote. |
void |
setModelAttributes(Map<String,Object> attributes)
|
void |
setModifiedDate(Date modifiedDate)
Sets the modified date of this polls vote. |
void |
setNew(boolean n)
Sets whether this model instance does not yet exist in the database. |
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this polls vote. |
void |
setPrimaryKeyObj(Serializable primaryKeyObj)
Sets the primary key of this model instance. |
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 |
setUserName(String userName)
Sets the user name of this polls vote. |
void |
setUserUuid(String userUuid)
Sets the user uuid of this polls vote. |
void |
setUuid(String uuid)
Sets the 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. |
CacheModel<PollsVote> |
toCacheModel()
Returns a cache model object for this entity used by entity cache. |
PollsVote |
toEscapedModel()
Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler . |
String |
toString()
|
PollsVote |
toUnescapedModel()
|
String |
toXmlString()
Returns the XML representation of this model instance. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PollsVoteWrapper(PollsVote pollsVote)
Method Detail |
---|
public Class<?> getModelClass()
getModelClass
in interface ClassedModel
public String getModelClassName()
getModelClassName
in interface ClassedModel
public Map<String,Object> getModelAttributes()
getModelAttributes
in interface BaseModel<PollsVote>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<PollsVote>
public long getPrimaryKey()
getPrimaryKey
in interface PollsVoteModel
public void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface PollsVoteModel
primaryKey
- the primary key of this polls votepublic String getUuid()
getUuid
in interface StagedModel
getUuid
in interface PollsVoteModel
public void setUuid(String uuid)
setUuid
in interface StagedModel
setUuid
in interface PollsVoteModel
uuid
- the uuid of this polls votepublic long getVoteId()
getVoteId
in interface PollsVoteModel
public void setVoteId(long voteId)
setVoteId
in interface PollsVoteModel
voteId
- the vote ID of this polls votepublic long getGroupId()
getGroupId
in interface GroupedModel
getGroupId
in interface PollsVoteModel
public void setGroupId(long groupId)
setGroupId
in interface GroupedModel
setGroupId
in interface PollsVoteModel
groupId
- the group ID of this polls votepublic long getCompanyId()
getCompanyId
in interface AuditedModel
getCompanyId
in interface StagedModel
getCompanyId
in interface PollsVoteModel
public void setCompanyId(long companyId)
setCompanyId
in interface AuditedModel
setCompanyId
in interface StagedModel
setCompanyId
in interface PollsVoteModel
companyId
- the company ID of this polls votepublic long getUserId()
getUserId
in interface AuditedModel
getUserId
in interface PollsVoteModel
public void setUserId(long userId)
setUserId
in interface AuditedModel
setUserId
in interface PollsVoteModel
userId
- the user ID of this polls votepublic String getUserUuid() throws SystemException
getUserUuid
in interface AuditedModel
getUserUuid
in interface PollsVoteModel
SystemException
- if a system exception occurredpublic void setUserUuid(String userUuid)
setUserUuid
in interface AuditedModel
setUserUuid
in interface PollsVoteModel
userUuid
- the user uuid of this polls votepublic String getUserName()
getUserName
in interface AuditedModel
getUserName
in interface PollsVoteModel
public void setUserName(String userName)
setUserName
in interface AuditedModel
setUserName
in interface PollsVoteModel
userName
- the user name of this polls votepublic Date getCreateDate()
getCreateDate
in interface AuditedModel
getCreateDate
in interface StagedModel
getCreateDate
in interface PollsVoteModel
public void setCreateDate(Date createDate)
setCreateDate
in interface AuditedModel
setCreateDate
in interface StagedModel
setCreateDate
in interface PollsVoteModel
createDate
- the create date of this polls votepublic Date getModifiedDate()
getModifiedDate
in interface AuditedModel
getModifiedDate
in interface StagedModel
getModifiedDate
in interface PollsVoteModel
public void setModifiedDate(Date modifiedDate)
setModifiedDate
in interface AuditedModel
setModifiedDate
in interface StagedModel
setModifiedDate
in interface PollsVoteModel
modifiedDate
- the modified date of this polls votepublic long getQuestionId()
getQuestionId
in interface PollsVoteModel
public void setQuestionId(long questionId)
setQuestionId
in interface PollsVoteModel
questionId
- the question ID of this polls votepublic long getChoiceId()
getChoiceId
in interface PollsVoteModel
public void setChoiceId(long choiceId)
setChoiceId
in interface PollsVoteModel
choiceId
- the choice ID of this polls votepublic Date getVoteDate()
getVoteDate
in interface PollsVoteModel
public void setVoteDate(Date voteDate)
setVoteDate
in interface PollsVoteModel
voteDate
- the vote date of this polls votepublic boolean isNew()
BaseModel
true
if this model instance does not yet exist in
the database.
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
true
if this model instance was retrieved from the
entity cache.
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
true
if this model instance is escaped.
isEscapedModel
in interface BaseModel<PollsVote>
isEscapedModel
in interface PollsVoteModel
true
if this model instance is escaped;
false
otherwisepublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<PollsVote>
getPrimaryKeyObj
in interface ClassedModel
getPrimaryKeyObj
in interface PollsVoteModel
public void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj
in interface BaseModel<PollsVote>
setPrimaryKeyObj
in interface ClassedModel
setPrimaryKeyObj
in interface PollsVoteModel
primaryKeyObj
- the primary key of this model instancepublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<PollsVote>
getExpandoBridge
in interface ClassedModel
getExpandoBridge
in interface PollsVoteModel
public void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes
in interface BaseModel<PollsVote>
setExpandoBridgeAttributes
in interface PollsVoteModel
public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes
in interface BaseModel<PollsVote>
setExpandoBridgeAttributes
in interface PollsVoteModel
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<PollsVote>
setExpandoBridgeAttributes
in interface PollsVoteModel
serviceContext
- the service context to be appliedServiceContext.getExpandoBridgeAttributes(
)
public Object clone()
BaseModel
clone
in interface BaseModel<PollsVote>
clone
in interface StagedModel
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 CacheModel<PollsVote> toCacheModel()
BaseModel
toCacheModel
in interface BaseModel<PollsVote>
toCacheModel
in interface PollsVoteModel
public PollsVote toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.
toEscapedModel
in interface BaseModel<PollsVote>
toEscapedModel
in interface PollsVoteModel
AutoEscapeBeanHandler
public PollsVote toUnescapedModel()
toUnescapedModel
in interface BaseModel<PollsVote>
toUnescapedModel
in interface PollsVoteModel
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 void persist() throws SystemException
PersistedModel
persist
in interface PersistedModel
SystemException
- if a system exception occurredpublic PollsChoice getChoice() throws PortalException, SystemException
getChoice
in interface PollsVote
PortalException
SystemException
public boolean equals(Object obj)
equals
in class Object
public StagedModelType getStagedModelType()
getStagedModelType
in interface StagedModel
public PollsVote getWrappedPollsVote()
getWrappedModel()
public PollsVote getWrappedModel()
getWrappedModel
in interface ModelWrapper<PollsVote>
public void resetOriginalValues()
BaseModel
resetOriginalValues
in interface BaseModel<PollsVote>
|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |