Liferay 6.1.2-ce-ga3

com.liferay.portlet.documentlibrary.model
Class DLFileVersionWrapper

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

public class DLFileVersionWrapper
extends Object
implements DLFileVersion, ModelWrapper<DLFileVersion>

This class is a wrapper for DLFileVersion.

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

Constructor Summary
DLFileVersionWrapper(DLFileVersion dlFileVersion)
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(DLFileVersion dlFileVersion)
           
 boolean equals(Object obj)
           
 boolean getApproved()
          Deprecated. Renamed to isApproved()
 String getChangeLog()
          Returns the change log of this document library file version.
 String getChecksum()
           
 long getCompanyId()
          Returns the company ID of this document library file version.
 InputStream getContentStream(boolean incrementCounter)
           
 Date getCreateDate()
          Returns the create date of this document library file version.
 String getDescription()
          Returns the description of this document library file version.
 ExpandoBridge getExpandoBridge()
          Returns the expando bridge for this model instance.
 String getExtension()
          Returns the extension of this document library file version.
 String getExtraSettings()
          Returns the extra settings of this document library file version.
 UnicodeProperties getExtraSettingsProperties()
           
 DLFileEntry getFileEntry()
           
 long getFileEntryId()
          Returns the file entry ID of this document library file version.
 long getFileEntryTypeId()
          Returns the file entry type ID of this document library file version.
 long getFileVersionId()
          Returns the file version ID of this document library file version.
 DLFolder getFolder()
           
 long getFolderId()
          Returns the folder ID of this document library file version.
 long getGroupId()
          Returns the group ID of this document library file version.
 String getIcon()
           
 String getMimeType()
          Returns the mime type of this document library file version.
 Map<String,Object> getModelAttributes()
           
 Class<?> getModelClass()
           
 String getModelClassName()
           
 Date getModifiedDate()
          Returns the modified date of this document library file version.
 long getPrimaryKey()
          Returns the primary key of this document library file version.
 Serializable getPrimaryKeyObj()
          Returns the primary key of this model instance.
 long getRepositoryId()
          Returns the repository ID of this document library file version.
 long getSize()
          Returns the size of this document library file version.
 int getStatus()
          Returns the status of this document library file version.
 long getStatusByUserId()
          Returns the status by user ID of this document library file version.
 String getStatusByUserName()
          Returns the status by user name of this document library file version.
 String getStatusByUserUuid()
          Returns the status by user uuid of this document library file version.
 Date getStatusDate()
          Returns the status date of this document library file version.
 String getTitle()
          Returns the title of this document library file version.
 long getUserId()
          Returns the user ID of this document library file version.
 String getUserName()
          Returns the user name of this document library file version.
 String getUserUuid()
          Returns the user uuid of this document library file version.
 String getUuid()
          Returns the uuid of this document library file version.
 String getVersion()
          Returns the version of this document library file version.
 DLFileVersion getWrappedDLFileVersion()
          Deprecated. Renamed to getWrappedModel()
 DLFileVersion getWrappedModel()
           
 int hashCode()
           
 boolean isApproved()
          Returns true if this document library file version is approved.
 boolean isCachedModel()
          Returns true if this model instance was retrieved from the entity cache.
 boolean isDenied()
          Returns true if this document library file version is denied.
 boolean isDraft()
          Returns true if this document library file version is a draft.
 boolean isEscapedModel()
          Returns true if this model instance is escaped.
 boolean isExpired()
          Returns true if this document library file version is expired.
 boolean isInactive()
          Returns true if this document library file version is inactive.
 boolean isIncomplete()
          Returns true if this document library file version is incomplete.
 boolean isNew()
          Returns true if this model instance does not yet exist in the database.
 boolean isPending()
          Returns true if this document library file version is pending.
 boolean isScheduled()
          Returns true if this document library file version 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 setChangeLog(String changeLog)
          Sets the change log of this document library file version.
 void setChecksum(String checksum)
           
 void setCompanyId(long companyId)
          Sets the company ID of this document library file version.
 void setCreateDate(Date createDate)
          Sets the create date of this document library file version.
 void setDescription(String description)
          Sets the description of this document library file version.
 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 document library file version.
 void setExtraSettings(String extraSettings)
          Sets the extra settings of this document library file version.
 void setExtraSettingsProperties(UnicodeProperties extraSettingsProperties)
           
 void setFileEntryId(long fileEntryId)
          Sets the file entry ID of this document library file version.
 void setFileEntryTypeId(long fileEntryTypeId)
          Sets the file entry type ID of this document library file version.
 void setFileVersionId(long fileVersionId)
          Sets the file version ID of this document library file version.
 void setFolderId(long folderId)
          Sets the folder ID of this document library file version.
 void setGroupId(long groupId)
          Sets the group ID of this document library file version.
 void setMimeType(String mimeType)
          Sets the mime type of this document library file version.
 void setModelAttributes(Map<String,Object> attributes)
           
 void setModifiedDate(Date modifiedDate)
          Sets the modified date of this document library 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 document library file version.
 void setPrimaryKeyObj(Serializable primaryKeyObj)
          Sets the primary key of this model instance.
 void setRepositoryId(long repositoryId)
          Sets the repository ID of this document library file version.
 void setSize(long size)
          Sets the size of this document library file version.
 void setStatus(int status)
          Sets the status of this document library file version.
 void setStatusByUserId(long statusByUserId)
          Sets the status by user ID of this document library file version.
 void setStatusByUserName(String statusByUserName)
          Sets the status by user name of this document library file version.
 void setStatusByUserUuid(String statusByUserUuid)
          Sets the status by user uuid of this document library file version.
 void setStatusDate(Date statusDate)
          Sets the status date of this document library file version.
 void setTitle(String title)
          Sets the title of this document library file version.
 void setUserId(long userId)
          Sets the user ID of this document library file version.
 void setUserName(String userName)
          Sets the user name of this document library file version.
 void setUserUuid(String userUuid)
          Sets the user uuid of this document library file version.
 void setUuid(String uuid)
          Sets the uuid of this document library file version.
 void setVersion(String version)
          Sets the version of this document library 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()
           
 DLFileVersion 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

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

getModelAttributes

public Map<String,Object> getModelAttributes()
Specified by:
getModelAttributes in interface BaseModel<DLFileVersion>

setModelAttributes

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

getPrimaryKey

public long getPrimaryKey()
Returns the primary key of this document library file version.

Specified by:
getPrimaryKey in interface DLFileVersionModel
Returns:
the primary key of this document library file version

setPrimaryKey

public void setPrimaryKey(long primaryKey)
Sets the primary key of this document library file version.

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

getUuid

public String getUuid()
Returns the uuid of this document library file version.

Specified by:
getUuid in interface DLFileVersionModel
Returns:
the uuid of this document library file version

setUuid

public void setUuid(String uuid)
Sets the uuid of this document library file version.

Specified by:
setUuid in interface DLFileVersionModel
Parameters:
uuid - the uuid of this document library file version

getFileVersionId

public long getFileVersionId()
Returns the file version ID of this document library file version.

Specified by:
getFileVersionId in interface DLFileVersionModel
Returns:
the file version ID of this document library file version

setFileVersionId

public void setFileVersionId(long fileVersionId)
Sets the file version ID of this document library file version.

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

getGroupId

public long getGroupId()
Returns the group ID of this document library file version.

Specified by:
getGroupId in interface GroupedModel
Specified by:
getGroupId in interface DLFileVersionModel
Returns:
the group ID of this document library file version

setGroupId

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

Specified by:
setGroupId in interface GroupedModel
Specified by:
setGroupId in interface DLFileVersionModel
Parameters:
groupId - the group ID of this document library file version

getCompanyId

public long getCompanyId()
Returns the company ID of this document library file version.

Specified by:
getCompanyId in interface AuditedModel
Specified by:
getCompanyId in interface DLFileVersionModel
Returns:
the company ID of this document library file version

setCompanyId

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

Specified by:
setCompanyId in interface AuditedModel
Specified by:
setCompanyId in interface DLFileVersionModel
Parameters:
companyId - the company ID of this document library file version

getUserId

public long getUserId()
Returns the user ID of this document library file version.

Specified by:
getUserId in interface AuditedModel
Specified by:
getUserId in interface DLFileVersionModel
Returns:
the user ID of this document library file version

setUserId

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

Specified by:
setUserId in interface AuditedModel
Specified by:
setUserId in interface DLFileVersionModel
Parameters:
userId - the user ID of this document library file version

getUserUuid

public String getUserUuid()
                   throws SystemException
Returns the user uuid of this document library file version.

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

setUserUuid

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

Specified by:
setUserUuid in interface AuditedModel
Specified by:
setUserUuid in interface DLFileVersionModel
Parameters:
userUuid - the user uuid of this document library file version

getUserName

public String getUserName()
Returns the user name of this document library file version.

Specified by:
getUserName in interface AuditedModel
Specified by:
getUserName in interface DLFileVersionModel
Returns:
the user name of this document library file version

setUserName

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

Specified by:
setUserName in interface AuditedModel
Specified by:
setUserName in interface DLFileVersionModel
Parameters:
userName - the user name of this document library file version

getCreateDate

public Date getCreateDate()
Returns the create date of this document library file version.

Specified by:
getCreateDate in interface AuditedModel
Specified by:
getCreateDate in interface DLFileVersionModel
Returns:
the create date of this document library file version

setCreateDate

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

Specified by:
setCreateDate in interface AuditedModel
Specified by:
setCreateDate in interface DLFileVersionModel
Parameters:
createDate - the create date of this document library file version

getModifiedDate

public Date getModifiedDate()
Returns the modified date of this document library file version.

Specified by:
getModifiedDate in interface AuditedModel
Specified by:
getModifiedDate in interface DLFileVersionModel
Returns:
the modified date of this document library file version

setModifiedDate

public void setModifiedDate(Date modifiedDate)
Sets the modified date of this document library file version.

Specified by:
setModifiedDate in interface AuditedModel
Specified by:
setModifiedDate in interface DLFileVersionModel
Parameters:
modifiedDate - the modified date of this document library file version

getRepositoryId

public long getRepositoryId()
Returns the repository ID of this document library file version.

Specified by:
getRepositoryId in interface DLFileVersionModel
Returns:
the repository ID of this document library file version

setRepositoryId

public void setRepositoryId(long repositoryId)
Sets the repository ID of this document library file version.

Specified by:
setRepositoryId in interface DLFileVersionModel
Parameters:
repositoryId - the repository ID of this document library file version

getFolderId

public long getFolderId()
Returns the folder ID of this document library file version.

Specified by:
getFolderId in interface DLFileVersionModel
Returns:
the folder ID of this document library file version

setFolderId

public void setFolderId(long folderId)
Sets the folder ID of this document library file version.

Specified by:
setFolderId in interface DLFileVersionModel
Parameters:
folderId - the folder ID of this document library file version

getFileEntryId

public long getFileEntryId()
Returns the file entry ID of this document library file version.

Specified by:
getFileEntryId in interface DLFileVersionModel
Returns:
the file entry ID of this document library file version

setFileEntryId

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

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

getExtension

public String getExtension()
Returns the extension of this document library file version.

Specified by:
getExtension in interface DLFileVersionModel
Returns:
the extension of this document library file version

setExtension

public void setExtension(String extension)
Sets the extension of this document library file version.

Specified by:
setExtension in interface DLFileVersionModel
Parameters:
extension - the extension of this document library file version

getMimeType

public String getMimeType()
Returns the mime type of this document library file version.

Specified by:
getMimeType in interface DLFileVersionModel
Returns:
the mime type of this document library file version

setMimeType

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

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

getTitle

public String getTitle()
Returns the title of this document library file version.

Specified by:
getTitle in interface DLFileVersionModel
Returns:
the title of this document library file version

setTitle

public void setTitle(String title)
Sets the title of this document library file version.

Specified by:
setTitle in interface DLFileVersionModel
Parameters:
title - the title of this document library file version

getDescription

public String getDescription()
Returns the description of this document library file version.

Specified by:
getDescription in interface DLFileVersionModel
Returns:
the description of this document library file version

setDescription

public void setDescription(String description)
Sets the description of this document library file version.

Specified by:
setDescription in interface DLFileVersionModel
Parameters:
description - the description of this document library file version

getChangeLog

public String getChangeLog()
Returns the change log of this document library file version.

Specified by:
getChangeLog in interface DLFileVersionModel
Returns:
the change log of this document library file version

setChangeLog

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

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

getExtraSettings

public String getExtraSettings()
Returns the extra settings of this document library file version.

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

setExtraSettings

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

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

getFileEntryTypeId

public long getFileEntryTypeId()
Returns the file entry type ID of this document library file version.

Specified by:
getFileEntryTypeId in interface DLFileVersionModel
Returns:
the file entry type ID of this document library file version

setFileEntryTypeId

public void setFileEntryTypeId(long fileEntryTypeId)
Sets the file entry type ID of this document library file version.

Specified by:
setFileEntryTypeId in interface DLFileVersionModel
Parameters:
fileEntryTypeId - the file entry type ID of this document library file version

getVersion

public String getVersion()
Returns the version of this document library file version.

Specified by:
getVersion in interface DLFileVersionModel
Returns:
the version of this document library file version

setVersion

public void setVersion(String version)
Sets the version of this document library file version.

Specified by:
setVersion in interface DLFileVersionModel
Parameters:
version - the version of this document library file version

getSize

public long getSize()
Returns the size of this document library file version.

Specified by:
getSize in interface DLFileVersionModel
Returns:
the size of this document library file version

setSize

public void setSize(long size)
Sets the size of this document library file version.

Specified by:
setSize in interface DLFileVersionModel
Parameters:
size - the size of this document library file version

getStatus

public int getStatus()
Returns the status of this document library file version.

Specified by:
getStatus in interface WorkflowedModel
Specified by:
getStatus in interface DLFileVersionModel
Returns:
the status of this document library file version

setStatus

public void setStatus(int status)
Sets the status of this document library file version.

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

getStatusByUserId

public long getStatusByUserId()
Returns the status by user ID of this document library file version.

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

setStatusByUserId

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

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

getStatusByUserUuid

public String getStatusByUserUuid()
                           throws SystemException
Returns the status by user uuid of this document library file version.

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

setStatusByUserUuid

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

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

getStatusByUserName

public String getStatusByUserName()
Returns the status by user name of this document library file version.

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

setStatusByUserName

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

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

getStatusDate

public Date getStatusDate()
Returns the status date of this document library file version.

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

setStatusDate

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

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

getApproved

public boolean getApproved()
Deprecated. Renamed to isApproved()

Specified by:
getApproved in interface DLFileVersionModel

isApproved

public boolean isApproved()
Returns true if this document library file version is approved.

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

isDenied

public boolean isDenied()
Returns true if this document library file version is denied.

Specified by:
isDenied in interface DLFileVersionModel
Returns:
true if this document library file version is denied; false otherwise

isDraft

public boolean isDraft()
Returns true if this document library file version is a draft.

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

isExpired

public boolean isExpired()
Returns true if this document library file version is expired.

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

isInactive

public boolean isInactive()
Returns true if this document library file version is inactive.

Specified by:
isInactive in interface DLFileVersionModel
Returns:
true if this document library file version is inactive; false otherwise

isIncomplete

public boolean isIncomplete()
Returns true if this document library file version is incomplete.

Specified by:
isIncomplete in interface DLFileVersionModel
Returns:
true if this document library file version is incomplete; false otherwise

isPending

public boolean isPending()
Returns true if this document library file version is pending.

Specified by:
isPending in interface WorkflowedModel
Specified by:
isPending in interface DLFileVersionModel
Returns:
true if this document library file version is pending; false otherwise

isScheduled

public boolean isScheduled()
Returns true if this document library file version is scheduled.

Specified by:
isScheduled in interface DLFileVersionModel
Returns:
true if this document library file version 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<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

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

toUnescapedModel

public DLFileVersion toUnescapedModel()
Specified by:
toUnescapedModel in interface BaseModel<DLFileVersion>
Specified by:
toUnescapedModel in interface DLFileVersionModel

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

getChecksum

public String getChecksum()
                   throws PortalException,
                          SystemException
Specified by:
getChecksum in interface DLFileVersion
Throws:
PortalException
SystemException

getContentStream

public InputStream getContentStream(boolean incrementCounter)
                             throws PortalException,
                                    SystemException
Specified by:
getContentStream in interface DLFileVersion
Throws:
PortalException
SystemException

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

getFolder

public DLFolder getFolder()
Specified by:
getFolder in interface DLFileVersion

getIcon

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

setChecksum

public void setChecksum(String checksum)
                 throws PortalException,
                        SystemException
Specified by:
setChecksum in interface DLFileVersion
Throws:
PortalException
SystemException

setExtraSettingsProperties

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

equals

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

getWrappedDLFileVersion

public DLFileVersion getWrappedDLFileVersion()
Deprecated. Renamed to getWrappedModel()


getWrappedModel

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

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.1.2-ce-ga3