Liferay 6.2-ce-ga5

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, StagedGroupedModel, StagedModel, TrashedModel, TreeModel, WorkflowedModel, BookmarksEntry, BookmarksEntryModel, Serializable, Cloneable, Comparable<BookmarksEntry>

@ProviderType
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
 String buildTreePath()
           
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(BookmarksEntry bookmarksEntry)
           
 boolean equals(Object obj)
           
 boolean getApproved()
          Deprecated. As of 6.1.0, replaced by isApproved()
 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.
 StagedModelType getStagedModelType()
           
 int getStatus()
          Returns the status of this bookmarks entry.
 long getStatusByUserId()
          Returns the status by user ID of this bookmarks entry.
 String getStatusByUserName()
          Returns the status by user name of this bookmarks entry.
 String getStatusByUserUuid()
          Returns the status by user uuid of this bookmarks entry.
 Date getStatusDate()
          Returns the status date of this bookmarks entry.
 TrashEntry getTrashEntry()
          Returns the trash entry created when this bookmarks entry was moved to the Recycle Bin.
 long getTrashEntryClassPK()
          Returns the class primary key of the trash entry for this bookmarks entry.
 TrashHandler getTrashHandler()
          Returns the trash handler for this bookmarks entry.
 String getTreePath()
          Returns the tree path 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. As of 6.1.0, replaced by getWrappedModel()
 BookmarksEntry getWrappedModel()
           
 int hashCode()
           
 boolean isApproved()
          Returns true if this bookmarks entry is approved.
 boolean isCachedModel()
          Returns true if this model instance was retrieved from the entity cache.
 boolean isDenied()
          Returns true if this bookmarks entry is denied.
 boolean isDraft()
          Returns true if this bookmarks entry is a draft.
 boolean isEscapedModel()
          Returns true if this model instance is escaped.
 boolean isExpired()
          Returns true if this bookmarks entry is expired.
 boolean isInactive()
          Returns true if this bookmarks entry is inactive.
 boolean isIncomplete()
          Returns true if this bookmarks entry is incomplete.
 boolean isInTrash()
          Returns true if this bookmarks entry is in the Recycle Bin.
 boolean isInTrashContainer()
          Returns true if the parent of this bookmarks entry is in the Recycle Bin.
 boolean isInTrashExplicitly()
           
 boolean isNew()
          Returns true if this model instance does not yet exist in the database.
 boolean isPending()
          Returns true if this bookmarks entry is pending.
 boolean isScheduled()
          Returns true if this bookmarks entry is scheduled.
 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(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 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 setStatus(int status)
          Sets the status of this bookmarks entry.
 void setStatusByUserId(long statusByUserId)
          Sets the status by user ID of this bookmarks entry.
 void setStatusByUserName(String statusByUserName)
          Sets the status by user name of this bookmarks entry.
 void setStatusByUserUuid(String statusByUserUuid)
          Sets the status by user uuid of this bookmarks entry.
 void setStatusDate(Date statusDate)
          Sets the status date of this bookmarks entry.
 void setTreePath(String treePath)
          Sets the tree path 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.
 void updateTreePath(String treePath)
           
 
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 StagedModel
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 StagedModel
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 StagedModel
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 StagedModel
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 StagedModel
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 StagedModel
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 StagedModel
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 StagedModel
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

getTreePath

public String getTreePath()
Returns the tree path of this bookmarks entry.

Specified by:
getTreePath in interface TreeModel
Specified by:
getTreePath in interface BookmarksEntryModel
Returns:
the tree path of this bookmarks entry

setTreePath

public void setTreePath(String treePath)
Sets the tree path of this bookmarks entry.

Specified by:
setTreePath in interface BookmarksEntryModel
Parameters:
treePath - the tree path 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

getStatus

public int getStatus()
Returns the status of this bookmarks entry.

Specified by:
getStatus in interface TrashedModel
Specified by:
getStatus in interface WorkflowedModel
Specified by:
getStatus in interface BookmarksEntryModel
Returns:
the status of this bookmarks entry

setStatus

public void setStatus(int status)
Sets the status of this bookmarks entry.

Specified by:
setStatus in interface WorkflowedModel
Specified by:
setStatus in interface BookmarksEntryModel
Parameters:
status - the status of this bookmarks entry

getStatusByUserId

public long getStatusByUserId()
Returns the status by user ID of this bookmarks entry.

Specified by:
getStatusByUserId in interface WorkflowedModel
Specified by:
getStatusByUserId in interface BookmarksEntryModel
Returns:
the status by user ID of this bookmarks entry

setStatusByUserId

public void setStatusByUserId(long statusByUserId)
Sets the status by user ID of this bookmarks entry.

Specified by:
setStatusByUserId in interface WorkflowedModel
Specified by:
setStatusByUserId in interface BookmarksEntryModel
Parameters:
statusByUserId - the status by user ID of this bookmarks entry

getStatusByUserUuid

public String getStatusByUserUuid()
                           throws SystemException
Returns the status by user uuid of this bookmarks entry.

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

setStatusByUserUuid

public void setStatusByUserUuid(String statusByUserUuid)
Sets the status by user uuid of this bookmarks entry.

Specified by:
setStatusByUserUuid in interface WorkflowedModel
Specified by:
setStatusByUserUuid in interface BookmarksEntryModel
Parameters:
statusByUserUuid - the status by user uuid of this bookmarks entry

getStatusByUserName

public String getStatusByUserName()
Returns the status by user name of this bookmarks entry.

Specified by:
getStatusByUserName in interface WorkflowedModel
Specified by:
getStatusByUserName in interface BookmarksEntryModel
Returns:
the status by user name of this bookmarks entry

setStatusByUserName

public void setStatusByUserName(String statusByUserName)
Sets the status by user name of this bookmarks entry.

Specified by:
setStatusByUserName in interface WorkflowedModel
Specified by:
setStatusByUserName in interface BookmarksEntryModel
Parameters:
statusByUserName - the status by user name of this bookmarks entry

getStatusDate

public Date getStatusDate()
Returns the status date of this bookmarks entry.

Specified by:
getStatusDate in interface WorkflowedModel
Specified by:
getStatusDate in interface BookmarksEntryModel
Returns:
the status date of this bookmarks entry

setStatusDate

public void setStatusDate(Date statusDate)
Sets the status date of this bookmarks entry.

Specified by:
setStatusDate in interface WorkflowedModel
Specified by:
setStatusDate in interface BookmarksEntryModel
Parameters:
statusDate - the status date of this bookmarks entry

getTrashEntry

public TrashEntry getTrashEntry()
                         throws PortalException,
                                SystemException
Returns the trash entry created when this bookmarks entry was moved to the Recycle Bin. The trash entry may belong to one of the ancestors of this bookmarks entry.

Specified by:
getTrashEntry in interface TrashedModel
Specified by:
getTrashEntry in interface BookmarksEntryModel
Returns:
the trash entry created when this bookmarks entry was moved to the Recycle Bin
Throws:
SystemException - if a system exception occurred
PortalException

getTrashEntryClassPK

public long getTrashEntryClassPK()
Returns the class primary key of the trash entry for this bookmarks entry.

Specified by:
getTrashEntryClassPK in interface TrashedModel
Specified by:
getTrashEntryClassPK in interface BookmarksEntryModel
Returns:
the class primary key of the trash entry for this bookmarks entry

getTrashHandler

public TrashHandler getTrashHandler()
Returns the trash handler for this bookmarks entry.

Specified by:
getTrashHandler in interface TrashedModel
Specified by:
getTrashHandler in interface BookmarksEntryModel
Returns:
the trash handler for this bookmarks entry

isInTrash

public boolean isInTrash()
Returns true if this bookmarks entry is in the Recycle Bin.

Specified by:
isInTrash in interface TrashedModel
Specified by:
isInTrash in interface BookmarksEntryModel
Returns:
true if this bookmarks entry is in the Recycle Bin; false otherwise

isInTrashContainer

public boolean isInTrashContainer()
Returns true if the parent of this bookmarks entry is in the Recycle Bin.

Specified by:
isInTrashContainer in interface TrashedModel
Specified by:
isInTrashContainer in interface BookmarksEntryModel
Returns:
true if the parent of this bookmarks entry is in the Recycle Bin; false otherwise
Throws:
SystemException - if a system exception occurred

getApproved

public boolean getApproved()
Deprecated. As of 6.1.0, replaced by isApproved()

Specified by:
getApproved in interface WorkflowedModel
Specified by:
getApproved in interface BookmarksEntryModel

isApproved

public boolean isApproved()
Returns true if this bookmarks entry is approved.

Specified by:
isApproved in interface WorkflowedModel
Specified by:
isApproved in interface BookmarksEntryModel
Returns:
true if this bookmarks entry is approved; false otherwise

isDenied

public boolean isDenied()
Returns true if this bookmarks entry is denied.

Specified by:
isDenied in interface WorkflowedModel
Specified by:
isDenied in interface BookmarksEntryModel
Returns:
true if this bookmarks entry is denied; false otherwise

isDraft

public boolean isDraft()
Returns true if this bookmarks entry is a draft.

Specified by:
isDraft in interface WorkflowedModel
Specified by:
isDraft in interface BookmarksEntryModel
Returns:
true if this bookmarks entry is a draft; false otherwise

isExpired

public boolean isExpired()
Returns true if this bookmarks entry is expired.

Specified by:
isExpired in interface WorkflowedModel
Specified by:
isExpired in interface BookmarksEntryModel
Returns:
true if this bookmarks entry is expired; false otherwise

isInactive

public boolean isInactive()
Returns true if this bookmarks entry is inactive.

Specified by:
isInactive in interface WorkflowedModel
Specified by:
isInactive in interface BookmarksEntryModel
Returns:
true if this bookmarks entry is inactive; false otherwise

isIncomplete

public boolean isIncomplete()
Returns true if this bookmarks entry is incomplete.

Specified by:
isIncomplete in interface WorkflowedModel
Specified by:
isIncomplete in interface BookmarksEntryModel
Returns:
true if this bookmarks entry is incomplete; false otherwise

isPending

public boolean isPending()
Returns true if this bookmarks entry is pending.

Specified by:
isPending in interface WorkflowedModel
Specified by:
isPending in interface BookmarksEntryModel
Returns:
true if this bookmarks entry is pending; false otherwise

isScheduled

public boolean isScheduled()
Returns true if this bookmarks entry is scheduled.

Specified by:
isScheduled in interface WorkflowedModel
Specified by:
isScheduled in interface BookmarksEntryModel
Returns:
true if this bookmarks entry is scheduled; false otherwise

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 TreeModel
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(BaseModel<?> baseModel)
Specified by:
setExpandoBridgeAttributes in interface BaseModel<BookmarksEntry>
Specified by:
setExpandoBridgeAttributes in interface BookmarksEntryModel

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
Specified by:
setExpandoBridgeAttributes in interface BaseModel<BookmarksEntry>
Specified by:
setExpandoBridgeAttributes in interface BookmarksEntryModel

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 to be applied
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 StagedModel
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

updateTreePath

public void updateTreePath(String treePath)
                    throws SystemException
Specified by:
updateTreePath in interface TreeModel
Throws:
SystemException

buildTreePath

public String buildTreePath()
                     throws PortalException,
                            SystemException
Specified by:
buildTreePath in interface TreeModel
Specified by:
buildTreePath in interface BookmarksEntry
Throws:
PortalException
SystemException

getFolder

public BookmarksFolder getFolder()
                          throws PortalException,
                                 SystemException
Specified by:
getFolder in interface BookmarksEntry
Throws:
PortalException
SystemException

isInTrashExplicitly

public boolean isInTrashExplicitly()
                            throws SystemException
Specified by:
isInTrashExplicitly in interface BookmarksEntry
Throws:
SystemException

equals

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

getStagedModelType

public StagedModelType getStagedModelType()
Specified by:
getStagedModelType in interface StagedModel

getWrappedBookmarksEntry

public BookmarksEntry getWrappedBookmarksEntry()
Deprecated. As of 6.1.0, replaced by 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.2-ce-ga5