Liferay 6.0-ee-sp2

com.liferay.portlet.documentlibrary.model
Class DLFileVersionWrapper

java.lang.Object
  extended by com.liferay.portlet.documentlibrary.model.DLFileVersionWrapper
All Implemented Interfaces:
BaseModel<DLFileVersion>, ClassedModel, PersistedModel, WorkflowedModel, DLFileVersion, DLFileVersionModel, Serializable, Cloneable, Comparable<DLFileVersion>

public class DLFileVersionWrapper
extends Object
implements DLFileVersion

This class is a wrapper for DLFileVersion.

See Also:
DLFileVersion, Serialized Form

Constructor Summary
DLFileVersionWrapper(DLFileVersion dlFileVersion)
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(DLFileVersion dlFileVersion)
           
 boolean getApproved()
          Deprecated. isApproved()
 String getChangeLog()
          Gets the change log of this d l file version.
 long getCompanyId()
          Gets the company ID of this d l file version.
 Date getCreateDate()
          Gets the create date of this d l file version.
 String getDescription()
          Gets the description of this d l file version.
 ExpandoBridge getExpandoBridge()
          Returns the expando bridge for this model instance.
 String getExtension()
          Gets the extension of this d l file version.
 String getExtraSettings()
          Gets the extra settings of this d l file version.
 UnicodeProperties getExtraSettingsProperties()
           
 DLFileEntry getFileEntry()
           
 long getFileEntryId()
          Gets the file entry ID of this d l file version.
 long getFileVersionId()
          Gets the file version ID of this d l file version.
 long getFolderId()
          Deprecated. getFileEntry()
 long getGroupId()
          Gets the group ID of this d l file version.
 String getIcon()
           
 String getMimeType()
          Gets the mime type of this d l file version.
 Class<?> getModelClass()
           
 String getModelClassName()
           
 String getName()
          Deprecated. getFileEntry()
 long getPrimaryKey()
          Gets the primary key of this d l file version.
 Serializable getPrimaryKeyObj()
          Returns the primary key of this model instance.
 long getSize()
          Gets the size of this d l file version.
 int getStatus()
          Gets the status of this d l file version.
 long getStatusByUserId()
          Gets the status by user ID of this d l file version.
 String getStatusByUserName()
          Gets the status by user name of this d l file version.
 String getStatusByUserUuid()
          Gets the status by user uuid of this d l file version.
 Date getStatusDate()
          Gets the status date of this d l file version.
 String getTitle()
          Gets the title of this d l file version.
 long getUserId()
          Gets the user ID of this d l file version.
 String getUserName()
          Gets the user name of this d l file version.
 String getUserUuid()
          Gets the user uuid of this d l file version.
 String getVersion()
          Gets the version of this d l file version.
 DLFileVersion getWrappedDLFileVersion()
           
 int hashCode()
           
 boolean isApproved()
          Determines if this d l file version is approved.
 boolean isCachedModel()
          Returns true if this model instance was retrieved from the entity cache.
 boolean isDraft()
          Determines if this d l file version is a draft.
 boolean isEscapedModel()
          Returns true if this model instance is escaped.
 boolean isExpired()
          Determines if this d l file version is expired.
 boolean isNew()
          Returns true if this model instance does not yet exist in the database.
 boolean isPending()
          Determines if this d l file version is pending.
 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 setChangeLog(String changeLog)
          Sets the change log of this d l file version.
 void setCompanyId(long companyId)
          Sets the company ID of this d l file version.
 void setCreateDate(Date createDate)
          Sets the create date of this d l file version.
 void setDescription(String description)
          Sets the description of this d l file version.
 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 setExtension(String extension)
          Sets the extension of this d l file version.
 void setExtraSettings(String extraSettings)
          Sets the extra settings of this d l file version.
 void setExtraSettingsProperties(UnicodeProperties extraSettingsProperties)
           
 void setFileEntryId(long fileEntryId)
          Sets the file entry ID of this d l file version.
 void setFileVersionId(long fileVersionId)
          Sets the file version ID of this d l file version.
 void setGroupId(long groupId)
          Sets the group ID of this d l file version.
 void setMimeType(String mimeType)
          Sets the mime type of this d l file version.
 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 d l file version
 void setPrimaryKeyObj(Serializable primaryKeyObj)
          Sets the primary key of this model instance.
 void setSize(long size)
          Sets the size of this d l file version.
 void setStatus(int status)
          Sets the status of this d l file version.
 void setStatusByUserId(long statusByUserId)
          Sets the status by user ID of this d l file version.
 void setStatusByUserName(String statusByUserName)
          Sets the status by user name of this d l file version.
 void setStatusByUserUuid(String statusByUserUuid)
          Sets the status by user uuid of this d l file version.
 void setStatusDate(Date statusDate)
          Sets the status date of this d l file version.
 void setTitle(String title)
          Sets the title of this d l file version.
 void setUserId(long userId)
          Sets the user ID of this d l file version.
 void setUserName(String userName)
          Sets the user name of this d l file version.
 void setUserUuid(String userUuid)
          Sets the user uuid of this d l file version.
 void setVersion(String version)
          Sets the version of this d l file version.
 CacheModel<DLFileVersion> toCacheModel()
          Returns a cache model object for this entity used by entity cache.
 DLFileVersion toEscapedModel()
          Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.
 String toString()
           
 String toXmlString()
          Returns the XML representation of this model instance.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DLFileVersionWrapper

public DLFileVersionWrapper(DLFileVersion dlFileVersion)
Method Detail

getModelClass

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

getModelClassName

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

getPrimaryKey

public long getPrimaryKey()
Gets the primary key of this d l file version.

Specified by:
getPrimaryKey in interface DLFileVersionModel
Returns:
the primary key of this d l file version

setPrimaryKey

public void setPrimaryKey(long primaryKey)
Sets the primary key of this d l file version

Specified by:
setPrimaryKey in interface DLFileVersionModel
Parameters:
primaryKey - the primary key of this d l file version

getFileVersionId

public long getFileVersionId()
Gets the file version ID of this d l file version.

Specified by:
getFileVersionId in interface DLFileVersionModel
Returns:
the file version ID of this d l file version

setFileVersionId

public void setFileVersionId(long fileVersionId)
Sets the file version ID of this d l file version.

Specified by:
setFileVersionId in interface DLFileVersionModel
Parameters:
fileVersionId - the file version ID of this d l file version

getGroupId

public long getGroupId()
Gets the group ID of this d l file version.

Specified by:
getGroupId in interface DLFileVersionModel
Returns:
the group ID of this d l file version

setGroupId

public void setGroupId(long groupId)
Sets the group ID of this d l file version.

Specified by:
setGroupId in interface DLFileVersionModel
Parameters:
groupId - the group ID of this d l file version

getCompanyId

public long getCompanyId()
Gets the company ID of this d l file version.

Specified by:
getCompanyId in interface DLFileVersionModel
Returns:
the company ID of this d l file version

setCompanyId

public void setCompanyId(long companyId)
Sets the company ID of this d l file version.

Specified by:
setCompanyId in interface DLFileVersionModel
Parameters:
companyId - the company ID of this d l file version

getUserId

public long getUserId()
Gets the user ID of this d l file version.

Specified by:
getUserId in interface DLFileVersionModel
Returns:
the user ID of this d l file version

setUserId

public void setUserId(long userId)
Sets the user ID of this d l file version.

Specified by:
setUserId in interface DLFileVersionModel
Parameters:
userId - the user ID of this d l file version

getUserUuid

public String getUserUuid()
                   throws SystemException
Gets the user uuid of this d l file version.

Specified by:
getUserUuid in interface DLFileVersionModel
Returns:
the user uuid of this d l file version
Throws:
SystemException - if a system exception occurred

setUserUuid

public void setUserUuid(String userUuid)
Sets the user uuid of this d l file version.

Specified by:
setUserUuid in interface DLFileVersionModel
Parameters:
userUuid - the user uuid of this d l file version

getUserName

public String getUserName()
Gets the user name of this d l file version.

Specified by:
getUserName in interface DLFileVersionModel
Returns:
the user name of this d l file version

setUserName

public void setUserName(String userName)
Sets the user name of this d l file version.

Specified by:
setUserName in interface DLFileVersionModel
Parameters:
userName - the user name of this d l file version

getCreateDate

public Date getCreateDate()
Gets the create date of this d l file version.

Specified by:
getCreateDate in interface DLFileVersionModel
Returns:
the create date of this d l file version

setCreateDate

public void setCreateDate(Date createDate)
Sets the create date of this d l file version.

Specified by:
setCreateDate in interface DLFileVersionModel
Parameters:
createDate - the create date of this d l file version

getFileEntryId

public long getFileEntryId()
Gets the file entry ID of this d l file version.

Specified by:
getFileEntryId in interface DLFileVersionModel
Returns:
the file entry ID of this d l file version

setFileEntryId

public void setFileEntryId(long fileEntryId)
Sets the file entry ID of this d l file version.

Specified by:
setFileEntryId in interface DLFileVersionModel
Parameters:
fileEntryId - the file entry ID of this d l file version

getExtension

public String getExtension()
Gets the extension of this d l file version.

Specified by:
getExtension in interface DLFileVersionModel
Returns:
the extension of this d l file version

setExtension

public void setExtension(String extension)
Sets the extension of this d l file version.

Specified by:
setExtension in interface DLFileVersionModel
Parameters:
extension - the extension of this d l file version

getMimeType

public String getMimeType()
Gets the mime type of this d l file version.

Specified by:
getMimeType in interface DLFileVersionModel
Returns:
the mime type of this d l file version

setMimeType

public void setMimeType(String mimeType)
Sets the mime type of this d l file version.

Specified by:
setMimeType in interface DLFileVersionModel
Parameters:
mimeType - the mime type of this d l file version

getTitle

public String getTitle()
Gets the title of this d l file version.

Specified by:
getTitle in interface DLFileVersionModel
Returns:
the title of this d l file version

setTitle

public void setTitle(String title)
Sets the title of this d l file version.

Specified by:
setTitle in interface DLFileVersionModel
Parameters:
title - the title of this d l file version

getDescription

public String getDescription()
Gets the description of this d l file version.

Specified by:
getDescription in interface DLFileVersionModel
Returns:
the description of this d l file version

setDescription

public void setDescription(String description)
Sets the description of this d l file version.

Specified by:
setDescription in interface DLFileVersionModel
Parameters:
description - the description of this d l file version

getChangeLog

public String getChangeLog()
Gets the change log of this d l file version.

Specified by:
getChangeLog in interface DLFileVersionModel
Returns:
the change log of this d l file version

setChangeLog

public void setChangeLog(String changeLog)
Sets the change log of this d l file version.

Specified by:
setChangeLog in interface DLFileVersionModel
Parameters:
changeLog - the change log of this d l file version

getExtraSettings

public String getExtraSettings()
Gets the extra settings of this d l file version.

Specified by:
getExtraSettings in interface DLFileVersion
Specified by:
getExtraSettings in interface DLFileVersionModel
Returns:
the extra settings of this d l file version

setExtraSettings

public void setExtraSettings(String extraSettings)
Sets the extra settings of this d l file version.

Specified by:
setExtraSettings in interface DLFileVersion
Specified by:
setExtraSettings in interface DLFileVersionModel
Parameters:
extraSettings - the extra settings of this d l file version

getVersion

public String getVersion()
Gets the version of this d l file version.

Specified by:
getVersion in interface DLFileVersionModel
Returns:
the version of this d l file version

setVersion

public void setVersion(String version)
Sets the version of this d l file version.

Specified by:
setVersion in interface DLFileVersionModel
Parameters:
version - the version of this d l file version

getSize

public long getSize()
Gets the size of this d l file version.

Specified by:
getSize in interface DLFileVersionModel
Returns:
the size of this d l file version

setSize

public void setSize(long size)
Sets the size of this d l file version.

Specified by:
setSize in interface DLFileVersionModel
Parameters:
size - the size of this d l file version

getStatus

public int getStatus()
Gets the status of this d l file version.

Specified by:
getStatus in interface WorkflowedModel
Specified by:
getStatus in interface DLFileVersionModel
Returns:
the status of this d l file version

setStatus

public void setStatus(int status)
Sets the status of this d l file version.

Specified by:
setStatus in interface WorkflowedModel
Specified by:
setStatus in interface DLFileVersionModel
Parameters:
status - the status of this d l file version

getStatusByUserId

public long getStatusByUserId()
Gets the status by user ID of this d l file version.

Specified by:
getStatusByUserId in interface WorkflowedModel
Specified by:
getStatusByUserId in interface DLFileVersionModel
Returns:
the status by user ID of this d l file version

setStatusByUserId

public void setStatusByUserId(long statusByUserId)
Sets the status by user ID of this d l file version.

Specified by:
setStatusByUserId in interface WorkflowedModel
Specified by:
setStatusByUserId in interface DLFileVersionModel
Parameters:
statusByUserId - the status by user ID of this d l file version

getStatusByUserUuid

public String getStatusByUserUuid()
                           throws SystemException
Gets the status by user uuid of this d l file version.

Specified by:
getStatusByUserUuid in interface DLFileVersionModel
Returns:
the status by user uuid of this d l file version
Throws:
SystemException - if a system exception occurred

setStatusByUserUuid

public void setStatusByUserUuid(String statusByUserUuid)
Sets the status by user uuid of this d l file version.

Specified by:
setStatusByUserUuid in interface DLFileVersionModel
Parameters:
statusByUserUuid - the status by user uuid of this d l file version

getStatusByUserName

public String getStatusByUserName()
Gets the status by user name of this d l file version.

Specified by:
getStatusByUserName in interface WorkflowedModel
Specified by:
getStatusByUserName in interface DLFileVersionModel
Returns:
the status by user name of this d l file version

setStatusByUserName

public void setStatusByUserName(String statusByUserName)
Sets the status by user name of this d l file version.

Specified by:
setStatusByUserName in interface WorkflowedModel
Specified by:
setStatusByUserName in interface DLFileVersionModel
Parameters:
statusByUserName - the status by user name of this d l file version

getStatusDate

public Date getStatusDate()
Gets the status date of this d l file version.

Specified by:
getStatusDate in interface WorkflowedModel
Specified by:
getStatusDate in interface DLFileVersionModel
Returns:
the status date of this d l file version

setStatusDate

public void setStatusDate(Date statusDate)
Sets the status date of this d l file version.

Specified by:
setStatusDate in interface WorkflowedModel
Specified by:
setStatusDate in interface DLFileVersionModel
Parameters:
statusDate - the status date of this d l file version

getApproved

public boolean getApproved()
Deprecated. isApproved()

Specified by:
getApproved in interface DLFileVersionModel

isApproved

public boolean isApproved()
Determines if this d l file version is approved.

Specified by:
isApproved in interface WorkflowedModel
Specified by:
isApproved in interface DLFileVersionModel
Returns:
true if this d l file version is approved; false otherwise

isDraft

public boolean isDraft()
Determines if this d l file version is a draft.

Specified by:
isDraft in interface WorkflowedModel
Specified by:
isDraft in interface DLFileVersionModel
Returns:
true if this d l file version is a draft; false otherwise

isExpired

public boolean isExpired()
Determines if this d l file version is expired.

Specified by:
isExpired in interface WorkflowedModel
Specified by:
isExpired in interface DLFileVersionModel
Returns:
true if this d l file version is expired; false otherwise

isPending

public boolean isPending()
Determines if this d l file version is pending.

Specified by:
isPending in interface WorkflowedModel
Specified by:
isPending in interface DLFileVersionModel
Returns:
true if this d l file version is pending; 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<DLFileVersion>
Specified by:
isNew in interface DLFileVersionModel
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<DLFileVersion>
Specified by:
setNew in interface DLFileVersionModel
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<DLFileVersion>
Specified by:
isCachedModel in interface DLFileVersionModel
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<DLFileVersion>
Specified by:
setCachedModel in interface DLFileVersionModel
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<DLFileVersion>
Specified by:
isEscapedModel in interface DLFileVersionModel
Returns:
true if this model instance is escaped; false otherwise
See Also:
BaseModel.setEscapedModel(boolean)

setEscapedModel

public void setEscapedModel(boolean escapedModel)
Description copied from interface: BaseModel
Sets whether this model instance is escaped, meaning that all strings returned from getter methods are HTML safe.

A model instance can be made escaped by wrapping it with an HTML auto escape handler using its toEscapedModel method. For example, UserModel.toEscapedModel().

Specified by:
setEscapedModel in interface BaseModel<DLFileVersion>
Specified by:
setEscapedModel in interface DLFileVersionModel
Parameters:
escapedModel - whether this model instance is escaped
See Also:
AutoEscapeBeanHandler

getPrimaryKeyObj

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

Specified by:
getPrimaryKeyObj in interface BaseModel<DLFileVersion>
Specified by:
getPrimaryKeyObj in interface ClassedModel
Specified by:
getPrimaryKeyObj in interface DLFileVersionModel
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<DLFileVersion>
Specified by:
setPrimaryKeyObj in interface ClassedModel
Specified by:
setPrimaryKeyObj in interface DLFileVersionModel
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<DLFileVersion>
Specified by:
getExpandoBridge in interface ClassedModel
Specified by:
getExpandoBridge in interface DLFileVersion
Specified by:
getExpandoBridge in interface DLFileVersionModel
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<DLFileVersion>
Specified by:
setExpandoBridgeAttributes in interface DLFileVersionModel
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<DLFileVersion>
Specified by:
clone in interface DLFileVersionModel
Overrides:
clone in class Object
Returns:
the shallow clone of this model instance

compareTo

public int compareTo(DLFileVersion dlFileVersion)
Specified by:
compareTo in interface DLFileVersionModel
Specified by:
compareTo in interface Comparable<DLFileVersion>

hashCode

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

toCacheModel

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

Specified by:
toCacheModel in interface BaseModel<DLFileVersion>
Specified by:
toCacheModel in interface DLFileVersionModel
Returns:
the cache model object

toEscapedModel

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

toString

public String toString()
Specified by:
toString in interface DLFileVersionModel
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<DLFileVersion>
Specified by:
toXmlString in interface DLFileVersionModel
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

getExtraSettingsProperties

public UnicodeProperties getExtraSettingsProperties()
Specified by:
getExtraSettingsProperties in interface DLFileVersion

getFileEntry

public DLFileEntry getFileEntry()
                         throws PortalException,
                                SystemException
Specified by:
getFileEntry in interface DLFileVersion
Throws:
PortalException
SystemException

getFolderId

public long getFolderId()
                 throws PortalException,
                        SystemException
Deprecated. getFileEntry()

Specified by:
getFolderId in interface DLFileVersion
Throws:
PortalException
SystemException

getIcon

public String getIcon()
Specified by:
getIcon in interface DLFileVersion

getName

public String getName()
               throws PortalException,
                      SystemException
Deprecated. getFileEntry()

Specified by:
getName in interface DLFileVersion
Throws:
PortalException
SystemException

setExtraSettingsProperties

public void setExtraSettingsProperties(UnicodeProperties extraSettingsProperties)
Specified by:
setExtraSettingsProperties in interface DLFileVersion

getWrappedDLFileVersion

public DLFileVersion getWrappedDLFileVersion()

resetOriginalValues

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

Specified by:
resetOriginalValues in interface BaseModel<DLFileVersion>

Liferay 6.0-ee-sp2