@ProviderType public class DLContentWrapper extends Object implements DLContent, ModelWrapper<DLContent>
This class is a wrapper for DLContent.
DLContent,
Serialized FormCONTENT_ID_ACCESSOR| Constructor and Description |
|---|
DLContentWrapper(DLContent dlContent) |
| Modifier and Type | Method and Description |
|---|---|
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 |
getWrappedModel() |
int |
hashCode() |
boolean |
isCachedModel()
Returns
true if this model instance was retrieved from the
entity cache. |
boolean |
isEntityCacheEnabled()
Returns
true if this model's entity cache is enabled. |
boolean |
isEscapedModel()
Returns
true if this model instance is escaped. |
boolean |
isFinderCacheEnabled()
Returns
true if this model's finder cache is enabled. |
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(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 |
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.
|
public DLContentWrapper(DLContent dlContent)
public Class<?> getModelClass()
getModelClass in interface ClassedModelpublic String getModelClassName()
getModelClassName in interface ClassedModelpublic Map<String,Object> getModelAttributes()
getModelAttributes in interface BaseModel<DLContent>public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes in interface BaseModel<DLContent>public DLContent toEscapedModel()
BaseModelAutoEscapeBeanHandler.toEscapedModel in interface DLContentModeltoEscapedModel in interface BaseModel<DLContent>AutoEscapeBeanHandlerpublic DLContent toUnescapedModel()
toUnescapedModel in interface DLContentModeltoUnescapedModel in interface BaseModel<DLContent>public boolean isCachedModel()
BaseModeltrue if this model instance was retrieved from the
entity cache.isCachedModel in interface DLContentModelisCachedModel in interface BaseModel<DLContent>true if this model instance was retrieved from the
entity cache; false otherwiseBaseModel.setCachedModel(boolean)public boolean isEscapedModel()
BaseModeltrue if this model instance is escaped.isEscapedModel in interface DLContentModelisEscapedModel in interface BaseModel<DLContent>true if this model instance is escaped;
false otherwisepublic boolean isNew()
BaseModeltrue if this model instance does not yet exist in
the database.isNew in interface DLContentModelisNew in interface BaseModel<DLContent>true if this model instance does not yet exist in
the database; false otherwisepublic ExpandoBridge getExpandoBridge()
BaseModelgetExpandoBridge in interface DLContentModelgetExpandoBridge in interface BaseModel<DLContent>getExpandoBridge in interface ClassedModelpublic CacheModel<DLContent> toCacheModel()
BaseModeltoCacheModel in interface DLContentModeltoCacheModel in interface BaseModel<DLContent>public int compareTo(DLContent dlContent)
compareTo in interface DLContentModelcompareTo in interface Comparable<DLContent>public int hashCode()
hashCode in interface DLContentModelhashCode in class Objectpublic Serializable getPrimaryKeyObj()
BaseModelgetPrimaryKeyObj in interface DLContentModelgetPrimaryKeyObj in interface BaseModel<DLContent>getPrimaryKeyObj in interface ClassedModelpublic Object clone()
BaseModelpublic String getPath()
getPath in interface DLContentModelpublic String getVersion()
getVersion in interface DLContentModelpublic String toString()
toString in interface DLContentModeltoString in class Objectpublic String toXmlString()
BaseModeltoXmlString in interface DLContentModeltoXmlString in interface BaseModel<DLContent>public Blob getData()
getData in interface DLContentModelpublic long getCompanyId()
getCompanyId in interface DLContentModelgetCompanyId in interface ShardedModelpublic long getContentId()
getContentId in interface DLContentModelpublic long getGroupId()
getGroupId in interface DLContentModelpublic long getPrimaryKey()
getPrimaryKey in interface DLContentModelpublic long getRepositoryId()
getRepositoryId in interface DLContentModelpublic long getSize()
getSize in interface DLContentModelpublic void persist()
PersistedModelpersist in interface PersistedModelpublic void setCachedModel(boolean cachedModel)
BaseModelsetCachedModel in interface DLContentModelsetCachedModel in interface BaseModel<DLContent>cachedModel - whether this model instance was retrieved from the
entity cacheEntityCachepublic void setCompanyId(long companyId)
setCompanyId in interface DLContentModelsetCompanyId in interface ShardedModelcompanyId - the company ID of this document library contentpublic void setContentId(long contentId)
setContentId in interface DLContentModelcontentId - the content ID of this document library contentpublic void setData(Blob data)
setData in interface DLContentModeldata - the data of this document library contentpublic void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes in interface DLContentModelsetExpandoBridgeAttributes in interface BaseModel<DLContent>public void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes in interface DLContentModelsetExpandoBridgeAttributes in interface BaseModel<DLContent>public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModelsetExpandoBridgeAttributes in interface DLContentModelsetExpandoBridgeAttributes in interface BaseModel<DLContent>serviceContext - the service context to be appliedServiceContext.getExpandoBridgeAttributes()public void setGroupId(long groupId)
setGroupId in interface DLContentModelgroupId - the group ID of this document library contentpublic void setNew(boolean n)
BaseModelsetNew in interface DLContentModelsetNew in interface BaseModel<DLContent>n - whether this model instance does not yet exist in the databasepublic void setPath(String path)
setPath in interface DLContentModelpath - the path of this document library contentpublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface DLContentModelprimaryKey - the primary key of this document library contentpublic void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModelsetPrimaryKeyObj in interface DLContentModelsetPrimaryKeyObj in interface BaseModel<DLContent>setPrimaryKeyObj in interface ClassedModelprimaryKeyObj - the primary key of this model instancepublic void setRepositoryId(long repositoryId)
setRepositoryId in interface DLContentModelrepositoryId - the repository ID of this document library contentpublic void setSize(long size)
setSize in interface DLContentModelsize - the size of this document library contentpublic void setVersion(String version)
setVersion in interface DLContentModelversion - the version of this document library contentpublic DLContent getWrappedModel()
getWrappedModel in interface ModelWrapper<DLContent>public boolean isEntityCacheEnabled()
BaseModeltrue if this model's entity cache is enabled.isEntityCacheEnabled in interface BaseModel<DLContent>true if this model's entity cache is enabled;
false otherwisepublic boolean isFinderCacheEnabled()
BaseModeltrue if this model's finder cache is enabled.isFinderCacheEnabled in interface BaseModel<DLContent>true if this model's finder cache is enabled;
false otherwisepublic void resetOriginalValues()
BaseModelresetOriginalValues in interface BaseModel<DLContent>