Liferay 6.1.2-ce-ga3

com.liferay.portlet.documentlibrary.model
Class DLContentWrapper

java.lang.Object
  extended by com.liferay.portlet.documentlibrary.model.DLContentWrapper
All Implemented Interfaces:
BaseModel<DLContent>, ClassedModel, ModelWrapper<DLContent>, PersistedModel, DLContent, DLContentModel, Serializable, Cloneable, Comparable<DLContent>

public class DLContentWrapper
extends Object
implements DLContent, ModelWrapper<DLContent>

This class is a wrapper for DLContent.

See Also:
DLContent, Serialized Form

Constructor Summary
DLContentWrapper(DLContent dlContent)
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(DLContent dlContent)
           
 boolean equals(Object obj)
           
 long getCompanyId()
          Returns the company ID of this document library content.
 long getContentId()
          Returns the content ID of this document library content.
 Blob getData()
          Returns the data of this document library content.
 ExpandoBridge getExpandoBridge()
          Returns the expando bridge for this model instance.
 long getGroupId()
          Returns the group ID of this document library content.
 Map<String,Object> getModelAttributes()
           
 Class<?> getModelClass()
           
 String getModelClassName()
           
 String getPath()
          Returns the path of this document library content.
 long getPrimaryKey()
          Returns the primary key of this document library content.
 Serializable getPrimaryKeyObj()
          Returns the primary key of this model instance.
 long getRepositoryId()
          Returns the repository ID of this document library content.
 long getSize()
          Returns the size of this document library content.
 String getVersion()
          Returns the version of this document library content.
 DLContent getWrappedDLContent()
          Deprecated. Renamed to getWrappedModel()
 DLContent getWrappedModel()
           
 int hashCode()
           
 boolean isCachedModel()
          Returns true if this model instance was retrieved from the entity cache.
 boolean isEscapedModel()
          Returns true if this model instance is escaped.
 boolean isNew()
          Returns true if this model instance does not yet exist in the database.
 void persist()
          Updates this model instance in the database or adds it if it does not yet exist.
 void resetOriginalValues()
          Reset all original fields to current values.
 void setCachedModel(boolean cachedModel)
          Sets whether this model instance was retrieved from the entity cache.
 void setCompanyId(long companyId)
          Sets the company ID of this document library content.
 void setContentId(long contentId)
          Sets the content ID of this document library content.
 void setData(Blob data)
          Sets the data of this document library content.
 void setExpandoBridgeAttributes(ServiceContext serviceContext)
          Sets the expando bridge attributes for this model instance to the attributes stored in the service context.
 void setGroupId(long groupId)
          Sets the group ID of this document library content.
 void setModelAttributes(Map<String,Object> attributes)
           
 void setNew(boolean n)
          Sets whether this model instance does not yet exist in the database.
 void setPath(String path)
          Sets the path of this document library content.
 void setPrimaryKey(long primaryKey)
          Sets the primary key of this document library content.
 void setPrimaryKeyObj(Serializable primaryKeyObj)
          Sets the primary key of this model instance.
 void setRepositoryId(long repositoryId)
          Sets the repository ID of this document library content.
 void setSize(long size)
          Sets the size of this document library content.
 void setVersion(String version)
          Sets the version of this document library content.
 CacheModel<DLContent> toCacheModel()
          Returns a cache model object for this entity used by entity cache.
 DLContent toEscapedModel()
          Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.
 String toString()
           
 DLContent 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

DLContentWrapper

public DLContentWrapper(DLContent dlContent)
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<DLContent>

setModelAttributes

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

getPrimaryKey

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

Specified by:
getPrimaryKey in interface DLContentModel
Returns:
the primary key of this document library content

setPrimaryKey

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

Specified by:
setPrimaryKey in interface DLContentModel
Parameters:
primaryKey - the primary key of this document library content

getContentId

public long getContentId()
Returns the content ID of this document library content.

Specified by:
getContentId in interface DLContentModel
Returns:
the content ID of this document library content

setContentId

public void setContentId(long contentId)
Sets the content ID of this document library content.

Specified by:
setContentId in interface DLContentModel
Parameters:
contentId - the content ID of this document library content

getGroupId

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

Specified by:
getGroupId in interface DLContentModel
Returns:
the group ID of this document library content

setGroupId

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

Specified by:
setGroupId in interface DLContentModel
Parameters:
groupId - the group ID of this document library content

getCompanyId

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

Specified by:
getCompanyId in interface DLContentModel
Returns:
the company ID of this document library content

setCompanyId

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

Specified by:
setCompanyId in interface DLContentModel
Parameters:
companyId - the company ID of this document library content

getRepositoryId

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

Specified by:
getRepositoryId in interface DLContentModel
Returns:
the repository ID of this document library content

setRepositoryId

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

Specified by:
setRepositoryId in interface DLContentModel
Parameters:
repositoryId - the repository ID of this document library content

getPath

public String getPath()
Returns the path of this document library content.

Specified by:
getPath in interface DLContentModel
Returns:
the path of this document library content

setPath

public void setPath(String path)
Sets the path of this document library content.

Specified by:
setPath in interface DLContentModel
Parameters:
path - the path of this document library content

getVersion

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

Specified by:
getVersion in interface DLContentModel
Returns:
the version of this document library content

setVersion

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

Specified by:
setVersion in interface DLContentModel
Parameters:
version - the version of this document library content

getData

public Blob getData()
Returns the data of this document library content.

Specified by:
getData in interface DLContentModel
Returns:
the data of this document library content

setData

public void setData(Blob data)
Sets the data of this document library content.

Specified by:
setData in interface DLContentModel
Parameters:
data - the data of this document library content

getSize

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

Specified by:
getSize in interface DLContentModel
Returns:
the size of this document library content

setSize

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

Specified by:
setSize in interface DLContentModel
Parameters:
size - the size of this document library content

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<DLContent>
Specified by:
isNew in interface DLContentModel
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<DLContent>
Specified by:
setNew in interface DLContentModel
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<DLContent>
Specified by:
isCachedModel in interface DLContentModel
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<DLContent>
Specified by:
setCachedModel in interface DLContentModel
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<DLContent>
Specified by:
isEscapedModel in interface DLContentModel
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<DLContent>
Specified by:
getPrimaryKeyObj in interface ClassedModel
Specified by:
getPrimaryKeyObj in interface DLContentModel
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<DLContent>
Specified by:
setPrimaryKeyObj in interface ClassedModel
Specified by:
setPrimaryKeyObj in interface DLContentModel
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<DLContent>
Specified by:
getExpandoBridge in interface ClassedModel
Specified by:
getExpandoBridge in interface DLContentModel
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<DLContent>
Specified by:
setExpandoBridgeAttributes in interface DLContentModel
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<DLContent>
Specified by:
clone in interface DLContentModel
Overrides:
clone in class Object
Returns:
the shallow clone of this model instance

compareTo

public int compareTo(DLContent dlContent)
Specified by:
compareTo in interface DLContentModel
Specified by:
compareTo in interface Comparable<DLContent>

hashCode

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

toCacheModel

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

Specified by:
toCacheModel in interface BaseModel<DLContent>
Specified by:
toCacheModel in interface DLContentModel
Returns:
the cache model object

toEscapedModel

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

toUnescapedModel

public DLContent toUnescapedModel()
Specified by:
toUnescapedModel in interface BaseModel<DLContent>
Specified by:
toUnescapedModel in interface DLContentModel

toString

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

equals

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

getWrappedDLContent

public DLContent getWrappedDLContent()
Deprecated. Renamed to getWrappedModel()


getWrappedModel

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

resetOriginalValues

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

Specified by:
resetOriginalValues in interface BaseModel<DLContent>

Liferay 6.1.2-ce-ga3