Liferay 6.1.2-ce-ga3

com.liferay.portlet.bookmarks.model
Class BookmarksEntryWrapper

java.lang.Object
  extended by com.liferay.portlet.bookmarks.model.BookmarksEntryWrapper
All Implemented Interfaces:
AuditedModel, BaseModel<BookmarksEntry>, ClassedModel, GroupedModel, ModelWrapper<BookmarksEntry>, PermissionedModel, PersistedModel, BookmarksEntry, BookmarksEntryModel, Serializable, Cloneable, Comparable<BookmarksEntry>

public class BookmarksEntryWrapper
extends Object
implements BookmarksEntry, ModelWrapper<BookmarksEntry>

This class is a wrapper for BookmarksEntry.

See Also:
BookmarksEntry, Serialized Form

Constructor Summary
BookmarksEntryWrapper(BookmarksEntry bookmarksEntry)
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(BookmarksEntry bookmarksEntry)
           
 boolean equals(Object obj)
           
 long getCompanyId()
          Returns the company ID of this bookmarks entry.
 Date getCreateDate()
          Returns the create date of this bookmarks entry.
 String getDescription()
          Returns the description of this bookmarks entry.
 long getEntryId()
          Returns the entry ID of this bookmarks entry.
 ExpandoBridge getExpandoBridge()
          Returns the expando bridge for this model instance.
 BookmarksFolder getFolder()
           
 long getFolderId()
          Returns the folder ID of this bookmarks entry.
 long getGroupId()
          Returns the group ID of this bookmarks entry.
 Map<String,Object> getModelAttributes()
           
 Class<?> getModelClass()
           
 String getModelClassName()
           
 Date getModifiedDate()
          Returns the modified date of this bookmarks entry.
 String getName()
          Returns the name of this bookmarks entry.
 long getPrimaryKey()
          Returns the primary key of this bookmarks entry.
 Serializable getPrimaryKeyObj()
          Returns the primary key of this model instance.
 int getPriority()
          Returns the priority of this bookmarks entry.
 long getResourceBlockId()
          Returns the resource block ID of this bookmarks entry.
 String getUrl()
          Returns the url of this bookmarks entry.
 long getUserId()
          Returns the user ID of this bookmarks entry.
 String getUserName()
          Returns the user name of this bookmarks entry.
 String getUserUuid()
          Returns the user uuid of this bookmarks entry.
 String getUuid()
          Returns the uuid of this bookmarks entry.
 int getVisits()
          Returns the visits of this bookmarks entry.
 BookmarksEntry getWrappedBookmarksEntry()
          Deprecated. Renamed to getWrappedModel()
 BookmarksEntry 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 setCompanyId(long companyId)
          Sets the company ID of this bookmarks entry.
 void setCreateDate(Date createDate)
          Sets the create date of this bookmarks entry.
 void setDescription(String description)
          Sets the description of this bookmarks entry.
 void setEntryId(long entryId)
          Sets the entry ID of this bookmarks entry.
 void setExpandoBridgeAttributes(ServiceContext serviceContext)
          Sets the expando bridge attributes for this model instance to the attributes stored in the service context.
 void setFolderId(long folderId)
          Sets the folder ID of this bookmarks entry.
 void setGroupId(long groupId)
          Sets the group ID of this bookmarks entry.
 void setModelAttributes(Map<String,Object> attributes)
           
 void setModifiedDate(Date modifiedDate)
          Sets the modified date of this bookmarks entry.
 void setName(String name)
          Sets the name of this bookmarks entry.
 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 bookmarks entry.
 void setPrimaryKeyObj(Serializable primaryKeyObj)
          Sets the primary key of this model instance.
 void setPriority(int priority)
          Sets the priority of this bookmarks entry.
 void setResourceBlockId(long resourceBlockId)
          Sets the resource block ID of this bookmarks entry.
 void setUrl(String url)
          Sets the url of this bookmarks entry.
 void setUserId(long userId)
          Sets the user ID of this bookmarks entry.
 void setUserName(String userName)
          Sets the user name of this bookmarks entry.
 void setUserUuid(String userUuid)
          Sets the user uuid of this bookmarks entry.
 void setUuid(String uuid)
          Sets the uuid of this bookmarks entry.
 void setVisits(int visits)
          Sets the visits of this bookmarks entry.
 CacheModel<BookmarksEntry> toCacheModel()
          Returns a cache model object for this entity used by entity cache.
 BookmarksEntry toEscapedModel()
          Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.
 String toString()
           
 BookmarksEntry 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

BookmarksEntryWrapper

public BookmarksEntryWrapper(BookmarksEntry bookmarksEntry)
Method Detail

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<BookmarksEntry>

setModelAttributes

public void setModelAttributes(Map<String,Object> attributes)
Specified by:
setModelAttributes in interface BaseModel<BookmarksEntry>

getPrimaryKey

public long getPrimaryKey()
Returns the primary key of this bookmarks entry.

Specified by:
getPrimaryKey in interface BookmarksEntryModel
Returns:
the primary key of this bookmarks entry

setPrimaryKey

public void setPrimaryKey(long primaryKey)
Sets the primary key of this bookmarks entry.

Specified by:
setPrimaryKey in interface BookmarksEntryModel
Parameters:
primaryKey - the primary key of this bookmarks entry

getUuid

public String getUuid()
Returns the uuid of this bookmarks entry.

Specified by:
getUuid in interface BookmarksEntryModel
Returns:
the uuid of this bookmarks entry

setUuid

public void setUuid(String uuid)
Sets the uuid of this bookmarks entry.

Specified by:
setUuid in interface BookmarksEntryModel
Parameters:
uuid - the uuid of this bookmarks entry

getEntryId

public long getEntryId()
Returns the entry ID of this bookmarks entry.

Specified by:
getEntryId in interface BookmarksEntryModel
Returns:
the entry ID of this bookmarks entry

setEntryId

public void setEntryId(long entryId)
Sets the entry ID of this bookmarks entry.

Specified by:
setEntryId in interface BookmarksEntryModel
Parameters:
entryId - the entry ID of this bookmarks entry

getGroupId

public long getGroupId()
Returns the group ID of this bookmarks entry.

Specified by:
getGroupId in interface GroupedModel
Specified by:
getGroupId in interface BookmarksEntryModel
Returns:
the group ID of this bookmarks entry

setGroupId

public void setGroupId(long groupId)
Sets the group ID of this bookmarks entry.

Specified by:
setGroupId in interface GroupedModel
Specified by:
setGroupId in interface BookmarksEntryModel
Parameters:
groupId - the group ID of this bookmarks entry

getCompanyId

public long getCompanyId()
Returns the company ID of this bookmarks entry.

Specified by:
getCompanyId in interface AuditedModel
Specified by:
getCompanyId in interface BookmarksEntryModel
Returns:
the company ID of this bookmarks entry

setCompanyId

public void setCompanyId(long companyId)
Sets the company ID of this bookmarks entry.

Specified by:
setCompanyId in interface AuditedModel
Specified by:
setCompanyId in interface BookmarksEntryModel
Parameters:
companyId - the company ID of this bookmarks entry

getUserId

public long getUserId()
Returns the user ID of this bookmarks entry.

Specified by:
getUserId in interface AuditedModel
Specified by:
getUserId in interface BookmarksEntryModel
Returns:
the user ID of this bookmarks entry

setUserId

public void setUserId(long userId)
Sets the user ID of this bookmarks entry.

Specified by:
setUserId in interface AuditedModel
Specified by:
setUserId in interface BookmarksEntryModel
Parameters:
userId - the user ID of this bookmarks entry

getUserUuid

public String getUserUuid()
                   throws SystemException
Returns the user uuid of this bookmarks entry.

Specified by:
getUserUuid in interface AuditedModel
Specified by:
getUserUuid in interface BookmarksEntryModel
Returns:
the user uuid of this bookmarks entry
Throws:
SystemException - if a system exception occurred

setUserUuid

public void setUserUuid(String userUuid)
Sets the user uuid of this bookmarks entry.

Specified by:
setUserUuid in interface AuditedModel
Specified by:
setUserUuid in interface BookmarksEntryModel
Parameters:
userUuid - the user uuid of this bookmarks entry

getUserName

public String getUserName()
Returns the user name of this bookmarks entry.

Specified by:
getUserName in interface AuditedModel
Specified by:
getUserName in interface BookmarksEntryModel
Returns:
the user name of this bookmarks entry

setUserName

public void setUserName(String userName)
Sets the user name of this bookmarks entry.

Specified by:
setUserName in interface AuditedModel
Specified by:
setUserName in interface BookmarksEntryModel
Parameters:
userName - the user name of this bookmarks entry

getCreateDate

public Date getCreateDate()
Returns the create date of this bookmarks entry.

Specified by:
getCreateDate in interface AuditedModel
Specified by:
getCreateDate in interface BookmarksEntryModel
Returns:
the create date of this bookmarks entry

setCreateDate

public void setCreateDate(Date createDate)
Sets the create date of this bookmarks entry.

Specified by:
setCreateDate in interface AuditedModel
Specified by:
setCreateDate in interface BookmarksEntryModel
Parameters:
createDate - the create date of this bookmarks entry

getModifiedDate

public Date getModifiedDate()
Returns the modified date of this bookmarks entry.

Specified by:
getModifiedDate in interface AuditedModel
Specified by:
getModifiedDate in interface BookmarksEntryModel
Returns:
the modified date of this bookmarks entry

setModifiedDate

public void setModifiedDate(Date modifiedDate)
Sets the modified date of this bookmarks entry.

Specified by:
setModifiedDate in interface AuditedModel
Specified by:
setModifiedDate in interface BookmarksEntryModel
Parameters:
modifiedDate - the modified date of this bookmarks entry

getResourceBlockId

public long getResourceBlockId()
Returns the resource block ID of this bookmarks entry.

Specified by:
getResourceBlockId in interface PermissionedModel
Specified by:
getResourceBlockId in interface BookmarksEntryModel
Returns:
the resource block ID of this bookmarks entry

setResourceBlockId

public void setResourceBlockId(long resourceBlockId)
Sets the resource block ID of this bookmarks entry.

Specified by:
setResourceBlockId in interface PermissionedModel
Specified by:
setResourceBlockId in interface BookmarksEntryModel
Parameters:
resourceBlockId - the resource block ID of this bookmarks entry

getFolderId

public long getFolderId()
Returns the folder ID of this bookmarks entry.

Specified by:
getFolderId in interface BookmarksEntryModel
Returns:
the folder ID of this bookmarks entry

setFolderId

public void setFolderId(long folderId)
Sets the folder ID of this bookmarks entry.

Specified by:
setFolderId in interface BookmarksEntryModel
Parameters:
folderId - the folder ID of this bookmarks entry

getName

public String getName()
Returns the name of this bookmarks entry.

Specified by:
getName in interface BookmarksEntryModel
Returns:
the name of this bookmarks entry

setName

public void setName(String name)
Sets the name of this bookmarks entry.

Specified by:
setName in interface BookmarksEntryModel
Parameters:
name - the name of this bookmarks entry

getUrl

public String getUrl()
Returns the url of this bookmarks entry.

Specified by:
getUrl in interface BookmarksEntryModel
Returns:
the url of this bookmarks entry

setUrl

public void setUrl(String url)
Sets the url of this bookmarks entry.

Specified by:
setUrl in interface BookmarksEntryModel
Parameters:
url - the url of this bookmarks entry

getDescription

public String getDescription()
Returns the description of this bookmarks entry.

Specified by:
getDescription in interface BookmarksEntryModel
Returns:
the description of this bookmarks entry

setDescription

public void setDescription(String description)
Sets the description of this bookmarks entry.

Specified by:
setDescription in interface BookmarksEntryModel
Parameters:
description - the description of this bookmarks entry

getVisits

public int getVisits()
Returns the visits of this bookmarks entry.

Specified by:
getVisits in interface BookmarksEntryModel
Returns:
the visits of this bookmarks entry

setVisits

public void setVisits(int visits)
Sets the visits of this bookmarks entry.

Specified by:
setVisits in interface BookmarksEntryModel
Parameters:
visits - the visits of this bookmarks entry

getPriority

public int getPriority()
Returns the priority of this bookmarks entry.

Specified by:
getPriority in interface BookmarksEntryModel
Returns:
the priority of this bookmarks entry

setPriority

public void setPriority(int priority)
Sets the priority of this bookmarks entry.

Specified by:
setPriority in interface BookmarksEntryModel
Parameters:
priority - the priority of this bookmarks entry

isNew

public boolean isNew()
Description copied from interface: BaseModel
Returns true if this model instance does not yet exist in the database.

Specified by:
isNew in interface BaseModel<BookmarksEntry>
Specified by:
isNew in interface BookmarksEntryModel
Returns:
true if this model instance does not yet exist in the database; false otherwise

setNew

public void setNew(boolean n)
Description copied from interface: BaseModel
Sets whether this model instance does not yet exist in the database.

Specified by:
setNew in interface BaseModel<BookmarksEntry>
Specified by:
setNew in interface BookmarksEntryModel
Parameters:
n - whether this model instance does not yet exist in the database

isCachedModel

public boolean isCachedModel()
Description copied from interface: BaseModel
Returns true if this model instance was retrieved from the entity cache.

Specified by:
isCachedModel in interface BaseModel<BookmarksEntry>
Specified by:
isCachedModel in interface BookmarksEntryModel
Returns:
true if this model instance was retrieved from the entity cache; false otherwise
See Also:
BaseModel.setCachedModel(boolean)

setCachedModel

public void setCachedModel(boolean cachedModel)
Description copied from interface: BaseModel
Sets whether this model instance was retrieved from the entity cache.

Specified by:
setCachedModel in interface BaseModel<BookmarksEntry>
Specified by:
setCachedModel in interface BookmarksEntryModel
Parameters:
cachedModel - whether this model instance was retrieved from the entity cache
See Also:
EntityCache

isEscapedModel

public boolean isEscapedModel()
Description copied from interface: BaseModel
Returns true if this model instance is escaped.

Specified by:
isEscapedModel in interface BaseModel<BookmarksEntry>
Specified by:
isEscapedModel in interface BookmarksEntryModel
Returns:
true if this model instance is escaped; false otherwise

getPrimaryKeyObj

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

Specified by:
getPrimaryKeyObj in interface BaseModel<BookmarksEntry>
Specified by:
getPrimaryKeyObj in interface ClassedModel
Specified by:
getPrimaryKeyObj in interface BookmarksEntryModel
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<BookmarksEntry>
Specified by:
setPrimaryKeyObj in interface ClassedModel
Specified by:
setPrimaryKeyObj in interface BookmarksEntryModel
Parameters:
primaryKeyObj - the primary key of this model instance

getExpandoBridge

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

Specified by:
getExpandoBridge in interface BaseModel<BookmarksEntry>
Specified by:
getExpandoBridge in interface ClassedModel
Specified by:
getExpandoBridge in interface BookmarksEntryModel
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<BookmarksEntry>
Specified by:
setExpandoBridgeAttributes in interface BookmarksEntryModel
Parameters:
serviceContext - the service context
See Also:
ServiceContext.getExpandoBridgeAttributes( )

clone

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

Specified by:
clone in interface BaseModel<BookmarksEntry>
Specified by:
clone in interface BookmarksEntryModel
Overrides:
clone in class Object
Returns:
the shallow clone of this model instance

compareTo

public int compareTo(BookmarksEntry bookmarksEntry)
Specified by:
compareTo in interface BookmarksEntryModel
Specified by:
compareTo in interface Comparable<BookmarksEntry>

hashCode

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

toCacheModel

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

Specified by:
toCacheModel in interface BaseModel<BookmarksEntry>
Specified by:
toCacheModel in interface BookmarksEntryModel
Returns:
the cache model object

toEscapedModel

public BookmarksEntry 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<BookmarksEntry>
Specified by:
toEscapedModel in interface BookmarksEntryModel
Returns:
the escaped model instance
See Also:
AutoEscapeBeanHandler

toUnescapedModel

public BookmarksEntry toUnescapedModel()
Specified by:
toUnescapedModel in interface BaseModel<BookmarksEntry>
Specified by:
toUnescapedModel in interface BookmarksEntryModel

toString

public String toString()
Specified by:
toString in interface BookmarksEntryModel
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<BookmarksEntry>
Specified by:
toXmlString in interface BookmarksEntryModel
Returns:
the XML representation of this model instance

persist

public void persist()
             throws SystemException
Description copied from interface: PersistedModel
Updates this model instance in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.

Specified by:
persist in interface PersistedModel
Throws:
SystemException - if a system exception occurred

getFolder

public BookmarksFolder getFolder()
Specified by:
getFolder in interface BookmarksEntry

equals

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

getWrappedBookmarksEntry

public BookmarksEntry getWrappedBookmarksEntry()
Deprecated. Renamed to getWrappedModel()


getWrappedModel

public BookmarksEntry getWrappedModel()
Specified by:
getWrappedModel in interface ModelWrapper<BookmarksEntry>

resetOriginalValues

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

Specified by:
resetOriginalValues in interface BaseModel<BookmarksEntry>

Liferay 6.1.2-ce-ga3