Liferay 6.1.2-ce-ga3

com.liferay.portlet.polls.model.impl
Class PollsVoteModelImpl

java.lang.Object
  extended by com.liferay.portal.model.impl.BaseModelImpl<PollsVote>
      extended by com.liferay.portlet.polls.model.impl.PollsVoteModelImpl
All Implemented Interfaces:
AuditedModel, BaseModel<PollsVote>, ClassedModel, PollsVoteModel, Serializable, Cloneable, Comparable<PollsVote>
Direct Known Subclasses:
PollsVoteBaseImpl

@JSON(strict=true)
public class PollsVoteModelImpl
extends BaseModelImpl<PollsVote>
implements PollsVoteModel

The base model implementation for the PollsVote service. Represents a row in the "PollsVote" database table, with each column mapped to a property of this class.

This implementation and its corresponding interface PollsVoteModel exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in PollsVoteImpl.

See Also:
PollsVoteImpl, PollsVote, PollsVoteModel, Serialized Form
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Field Summary
static long CHOICEID_COLUMN_BITMASK
           
static boolean COLUMN_BITMASK_ENABLED
           
static String DATA_SOURCE
           
static boolean ENTITY_CACHE_ENABLED
           
static boolean FINDER_CACHE_ENABLED
           
static long LOCK_EXPIRATION_TIME
           
static long QUESTIONID_COLUMN_BITMASK
           
static String SESSION_FACTORY
           
static Object[][] TABLE_COLUMNS
           
static String TABLE_NAME
           
static String TABLE_SQL_CREATE
           
static String TABLE_SQL_DROP
           
static String TX_MANAGER
           
static long USERID_COLUMN_BITMASK
           
 
Constructor Summary
PollsVoteModelImpl()
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(PollsVote pollsVote)
           
 boolean equals(Object obj)
           
 long getChoiceId()
          Returns the choice ID of this polls vote.
 long getColumnBitmask()
           
 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.
 Map<String,Object> getModelAttributes()
           
 Class<?> getModelClass()
           
 String getModelClassName()
           
 Date getModifiedDate()
          Returns the modified date of this polls vote.
 long getOriginalChoiceId()
           
 long getOriginalQuestionId()
           
 long getOriginalUserId()
           
 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.
 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.
 Date getVoteDate()
          Returns the vote date of this polls vote.
 long getVoteId()
          Returns the vote ID of this polls vote.
 int hashCode()
           
 void resetOriginalValues()
          Reset all original fields to current values.
 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(ServiceContext serviceContext)
          Sets the expando bridge attributes for this model instance to the attributes stored in the service context.
 void setModelAttributes(Map<String,Object> attributes)
           
 void setModifiedDate(Date modifiedDate)
          Sets the modified date of this polls vote.
 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 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.
static PollsVote toModel(PollsVoteSoap soapModel)
          Converts the soap model instance into a normal model instance.
static List<PollsVote> toModels(PollsVoteSoap[] soapModels)
          Converts the soap model instances into normal model instances.
 String toString()
           
 PollsVote toUnescapedModel()
           
 String toXmlString()
          Returns the XML representation of this model instance.
 
Methods inherited from class com.liferay.portal.model.impl.BaseModelImpl
getLocale, isCachedModel, isEscapedModel, isNew, setCachedModel, setNew
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.liferay.portlet.polls.model.PollsVoteModel
isCachedModel, isEscapedModel, isNew, setCachedModel, setNew
 

Field Detail

TABLE_NAME

public static final String TABLE_NAME
See Also:
Constant Field Values

TABLE_COLUMNS

public static final Object[][] TABLE_COLUMNS

TABLE_SQL_CREATE

public static final String TABLE_SQL_CREATE
See Also:
Constant Field Values

TABLE_SQL_DROP

public static final String TABLE_SQL_DROP
See Also:
Constant Field Values

DATA_SOURCE

public static final String DATA_SOURCE
See Also:
Constant Field Values

SESSION_FACTORY

public static final String SESSION_FACTORY
See Also:
Constant Field Values

TX_MANAGER

public static final String TX_MANAGER
See Also:
Constant Field Values

ENTITY_CACHE_ENABLED

public static final boolean ENTITY_CACHE_ENABLED

FINDER_CACHE_ENABLED

public static final boolean FINDER_CACHE_ENABLED

COLUMN_BITMASK_ENABLED

public static final boolean COLUMN_BITMASK_ENABLED

CHOICEID_COLUMN_BITMASK

public static long CHOICEID_COLUMN_BITMASK

QUESTIONID_COLUMN_BITMASK

public static long QUESTIONID_COLUMN_BITMASK

USERID_COLUMN_BITMASK

public static long USERID_COLUMN_BITMASK

LOCK_EXPIRATION_TIME

public static final long LOCK_EXPIRATION_TIME
Constructor Detail

PollsVoteModelImpl

public PollsVoteModelImpl()
Method Detail

toModel

public static PollsVote toModel(PollsVoteSoap soapModel)
Converts the soap model instance into a normal model instance.

Parameters:
soapModel - the soap model instance to convert
Returns:
the normal model instance

toModels

public static List<PollsVote> toModels(PollsVoteSoap[] soapModels)
Converts the soap model instances into normal model instances.

Parameters:
soapModels - the soap model instances to convert
Returns:
the normal model instances

getPrimaryKey

public long getPrimaryKey()
Description copied from interface: PollsVoteModel
Returns the primary key of this polls vote.

Specified by:
getPrimaryKey in interface PollsVoteModel
Returns:
the primary key of this polls vote

setPrimaryKey

public void setPrimaryKey(long primaryKey)
Description copied from interface: PollsVoteModel
Sets the primary key of this polls vote.

Specified by:
setPrimaryKey in interface PollsVoteModel
Parameters:
primaryKey - the primary key of this polls vote

getPrimaryKeyObj

public Serializable getPrimaryKeyObj()
Description copied from interface: BaseModel
Returns the primary key of this model instance.

Specified by:
getPrimaryKeyObj in interface BaseModel<PollsVote>
Specified by:
getPrimaryKeyObj in interface ClassedModel
Specified by:
getPrimaryKeyObj in interface PollsVoteModel
Returns:
the primary key of this model instance

setPrimaryKeyObj

public void setPrimaryKeyObj(Serializable primaryKeyObj)
Description copied from interface: BaseModel
Sets the primary key of this model instance.

Specified by:
setPrimaryKeyObj in interface BaseModel<PollsVote>
Specified by:
setPrimaryKeyObj in interface ClassedModel
Specified by:
setPrimaryKeyObj in interface PollsVoteModel
Parameters:
primaryKeyObj - the primary key of this model instance

getModelClass

public Class<?> getModelClass()
Specified by:
getModelClass in interface ClassedModel

getModelClassName

public String getModelClassName()
Specified by:
getModelClassName in interface ClassedModel

getModelAttributes

public Map<String,Object> getModelAttributes()
Specified by:
getModelAttributes in interface BaseModel<PollsVote>
Overrides:
getModelAttributes in class BaseModelImpl<PollsVote>

setModelAttributes

public void setModelAttributes(Map<String,Object> attributes)
Specified by:
setModelAttributes in interface BaseModel<PollsVote>
Overrides:
setModelAttributes in class BaseModelImpl<PollsVote>

getVoteId

@JSON
public long getVoteId()
Description copied from interface: PollsVoteModel
Returns the vote ID of this polls vote.

Specified by:
getVoteId in interface PollsVoteModel
Returns:
the vote ID of this polls vote

setVoteId

public void setVoteId(long voteId)
Description copied from interface: PollsVoteModel
Sets the vote ID of this polls vote.

Specified by:
setVoteId in interface PollsVoteModel
Parameters:
voteId - the vote ID of this polls vote

getCompanyId

@JSON
public long getCompanyId()
Description copied from interface: PollsVoteModel
Returns the company ID of this polls vote.

Specified by:
getCompanyId in interface AuditedModel
Specified by:
getCompanyId in interface PollsVoteModel
Returns:
the company ID of this polls vote

setCompanyId

public void setCompanyId(long companyId)
Description copied from interface: PollsVoteModel
Sets the company ID of this polls vote.

Specified by:
setCompanyId in interface AuditedModel
Specified by:
setCompanyId in interface PollsVoteModel
Parameters:
companyId - the company ID of this polls vote

getUserId

@JSON
public long getUserId()
Description copied from interface: PollsVoteModel
Returns the user ID of this polls vote.

Specified by:
getUserId in interface AuditedModel
Specified by:
getUserId in interface PollsVoteModel
Returns:
the user ID of this polls vote

setUserId

public void setUserId(long userId)
Description copied from interface: PollsVoteModel
Sets the user ID of this polls vote.

Specified by:
setUserId in interface AuditedModel
Specified by:
setUserId in interface PollsVoteModel
Parameters:
userId - the user ID of this polls vote

getUserUuid

public String getUserUuid()
                   throws SystemException
Description copied from interface: PollsVoteModel
Returns the user uuid of this polls vote.

Specified by:
getUserUuid in interface AuditedModel
Specified by:
getUserUuid in interface PollsVoteModel
Returns:
the user uuid of this polls vote
Throws:
SystemException - if a system exception occurred

setUserUuid

public void setUserUuid(String userUuid)
Description copied from interface: PollsVoteModel
Sets the user uuid of this polls vote.

Specified by:
setUserUuid in interface AuditedModel
Specified by:
setUserUuid in interface PollsVoteModel
Parameters:
userUuid - the user uuid of this polls vote

getOriginalUserId

public long getOriginalUserId()

getUserName

@JSON
public String getUserName()
Description copied from interface: PollsVoteModel
Returns the user name of this polls vote.

Specified by:
getUserName in interface AuditedModel
Specified by:
getUserName in interface PollsVoteModel
Returns:
the user name of this polls vote

setUserName

public void setUserName(String userName)
Description copied from interface: PollsVoteModel
Sets the user name of this polls vote.

Specified by:
setUserName in interface AuditedModel
Specified by:
setUserName in interface PollsVoteModel
Parameters:
userName - the user name of this polls vote

getCreateDate

@JSON
public Date getCreateDate()
Description copied from interface: PollsVoteModel
Returns the create date of this polls vote.

Specified by:
getCreateDate in interface AuditedModel
Specified by:
getCreateDate in interface PollsVoteModel
Returns:
the create date of this polls vote

setCreateDate

public void setCreateDate(Date createDate)
Description copied from interface: PollsVoteModel
Sets the create date of this polls vote.

Specified by:
setCreateDate in interface AuditedModel
Specified by:
setCreateDate in interface PollsVoteModel
Parameters:
createDate - the create date of this polls vote

getModifiedDate

@JSON
public Date getModifiedDate()
Description copied from interface: PollsVoteModel
Returns the modified date of this polls vote.

Specified by:
getModifiedDate in interface AuditedModel
Specified by:
getModifiedDate in interface PollsVoteModel
Returns:
the modified date of this polls vote

setModifiedDate

public void setModifiedDate(Date modifiedDate)
Description copied from interface: PollsVoteModel
Sets the modified date of this polls vote.

Specified by:
setModifiedDate in interface AuditedModel
Specified by:
setModifiedDate in interface PollsVoteModel
Parameters:
modifiedDate - the modified date of this polls vote

getQuestionId

@JSON
public long getQuestionId()
Description copied from interface: PollsVoteModel
Returns the question ID of this polls vote.

Specified by:
getQuestionId in interface PollsVoteModel
Returns:
the question ID of this polls vote

setQuestionId

public void setQuestionId(long questionId)
Description copied from interface: PollsVoteModel
Sets the question ID of this polls vote.

Specified by:
setQuestionId in interface PollsVoteModel
Parameters:
questionId - the question ID of this polls vote

getOriginalQuestionId

public long getOriginalQuestionId()

getChoiceId

@JSON
public long getChoiceId()
Description copied from interface: PollsVoteModel
Returns the choice ID of this polls vote.

Specified by:
getChoiceId in interface PollsVoteModel
Returns:
the choice ID of this polls vote

setChoiceId

public void setChoiceId(long choiceId)
Description copied from interface: PollsVoteModel
Sets the choice ID of this polls vote.

Specified by:
setChoiceId in interface PollsVoteModel
Parameters:
choiceId - the choice ID of this polls vote

getOriginalChoiceId

public long getOriginalChoiceId()

getVoteDate

@JSON
public Date getVoteDate()
Description copied from interface: PollsVoteModel
Returns the vote date of this polls vote.

Specified by:
getVoteDate in interface PollsVoteModel
Returns:
the vote date of this polls vote

setVoteDate

public void setVoteDate(Date voteDate)
Description copied from interface: PollsVoteModel
Sets the vote date of this polls vote.

Specified by:
setVoteDate in interface PollsVoteModel
Parameters:
voteDate - the vote date of this polls vote

getColumnBitmask

public long getColumnBitmask()

getExpandoBridge

public ExpandoBridge getExpandoBridge()
Description copied from interface: BaseModel
Returns the expando bridge for this model instance.

Specified by:
getExpandoBridge in interface BaseModel<PollsVote>
Specified by:
getExpandoBridge in interface ClassedModel
Specified by:
getExpandoBridge in interface PollsVoteModel
Overrides:
getExpandoBridge in class BaseModelImpl<PollsVote>
Returns:
the expando bridge for this model instance

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(ServiceContext serviceContext)
Description copied from interface: BaseModel
Sets the expando bridge attributes for this model instance to the attributes stored in the service context.

Specified by:
setExpandoBridgeAttributes in interface BaseModel<PollsVote>
Specified by:
setExpandoBridgeAttributes in interface PollsVoteModel
Overrides:
setExpandoBridgeAttributes in class BaseModelImpl<PollsVote>
Parameters:
serviceContext - the service context
See Also:
ServiceContext.getExpandoBridgeAttributes( )

toEscapedModel

public PollsVote toEscapedModel()
Description copied from interface: BaseModel
Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.

Specified by:
toEscapedModel in interface BaseModel<PollsVote>
Specified by:
toEscapedModel in interface PollsVoteModel
Overrides:
toEscapedModel in class BaseModelImpl<PollsVote>
Returns:
the escaped model instance
See Also:
AutoEscapeBeanHandler

toUnescapedModel

public PollsVote toUnescapedModel()
Specified by:
toUnescapedModel in interface BaseModel<PollsVote>
Specified by:
toUnescapedModel in interface PollsVoteModel
Overrides:
toUnescapedModel in class BaseModelImpl<PollsVote>

clone

public Object clone()
Description copied from interface: BaseModel
Creates a shallow clone of this model instance.

Specified by:
clone in interface BaseModel<PollsVote>
Specified by:
clone in interface PollsVoteModel
Specified by:
clone in class BaseModelImpl<PollsVote>
Returns:
the shallow clone of this model instance

compareTo

public int compareTo(PollsVote pollsVote)
Specified by:
compareTo in interface PollsVoteModel
Specified by:
compareTo in interface Comparable<PollsVote>

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Specified by:
hashCode in interface PollsVoteModel
Overrides:
hashCode in class Object

resetOriginalValues

public void resetOriginalValues()
Description copied from interface: BaseModel
Reset all original fields to current values.

Specified by:
resetOriginalValues in interface BaseModel<PollsVote>
Overrides:
resetOriginalValues in class BaseModelImpl<PollsVote>

toCacheModel

public CacheModel<PollsVote> toCacheModel()
Description copied from interface: BaseModel
Returns a cache model object for this entity used by entity cache.

Specified by:
toCacheModel in interface BaseModel<PollsVote>
Specified by:
toCacheModel in interface PollsVoteModel
Overrides:
toCacheModel in class BaseModelImpl<PollsVote>
Returns:
the cache model object

toString

public String toString()
Specified by:
toString in interface PollsVoteModel
Overrides:
toString in class Object

toXmlString

public String toXmlString()
Description copied from interface: BaseModel
Returns the XML representation of this model instance.

Specified by:
toXmlString in interface BaseModel<PollsVote>
Specified by:
toXmlString in interface PollsVoteModel
Returns:
the XML representation of this model instance

Liferay 6.1.2-ce-ga3