@ProviderType public class DLContentWrapper extends java.lang.Object implements DLContent, ModelWrapper<DLContent>
This class is a wrapper for DLContent.
DLContent,
Serialized Form| Constructor and Description |
|---|
DLContentWrapper(DLContent dlContent) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Creates a shallow clone of this model instance.
|
int |
compareTo(DLContent dlContent) |
boolean |
equals(java.lang.Object obj) |
long |
getCompanyId()
Returns the company ID of this document library content.
|
long |
getContentId()
Returns the content ID of this document library content.
|
java.sql.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.
|
java.util.Map<java.lang.String,java.lang.Object> |
getModelAttributes() |
java.lang.Class<?> |
getModelClass() |
java.lang.String |
getModelClassName() |
java.lang.String |
getPath()
Returns the path of this document library content.
|
long |
getPrimaryKey()
Returns the primary key of this document library content.
|
java.io.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.
|
java.lang.String |
getVersion()
Returns the version of this document library content.
|
DLContent |
getWrappedDLContent()
Deprecated.
As of 6.1.0, replaced by
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(java.sql.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(java.util.Map<java.lang.String,java.lang.Object> attributes) |
void |
setNew(boolean n)
Sets whether this model instance does not yet exist in the database.
|
void |
setPath(java.lang.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(java.io.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(java.lang.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. |
java.lang.String |
toString() |
DLContent |
toUnescapedModel() |
java.lang.String |
toXmlString()
Returns the XML representation of this model instance.
|
public DLContentWrapper(DLContent dlContent)
public java.lang.Class<?> getModelClass()
getModelClass in interface ClassedModelpublic java.lang.String getModelClassName()
getModelClassName in interface ClassedModelpublic java.util.Map<java.lang.String,java.lang.Object> getModelAttributes()
getModelAttributes in interface BaseModel<DLContent>public void setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
setModelAttributes in interface BaseModel<DLContent>public long getPrimaryKey()
getPrimaryKey in interface DLContentModelpublic void setPrimaryKey(long primaryKey)
setPrimaryKey in interface DLContentModelprimaryKey - the primary key of this document library contentpublic long getContentId()
getContentId in interface DLContentModelpublic void setContentId(long contentId)
setContentId in interface DLContentModelcontentId - the content ID of this document library contentpublic long getGroupId()
getGroupId in interface DLContentModelpublic void setGroupId(long groupId)
setGroupId in interface DLContentModelgroupId - the group ID of this document library contentpublic long getCompanyId()
getCompanyId in interface DLContentModelpublic void setCompanyId(long companyId)
setCompanyId in interface DLContentModelcompanyId - the company ID of this document library contentpublic long getRepositoryId()
getRepositoryId in interface DLContentModelpublic void setRepositoryId(long repositoryId)
setRepositoryId in interface DLContentModelrepositoryId - the repository ID of this document library contentpublic java.lang.String getPath()
getPath in interface DLContentModelpublic void setPath(java.lang.String path)
setPath in interface DLContentModelpath - the path of this document library contentpublic java.lang.String getVersion()
getVersion in interface DLContentModelpublic void setVersion(java.lang.String version)
setVersion in interface DLContentModelversion - the version of this document library contentpublic java.sql.Blob getData()
getData in interface DLContentModelpublic void setData(java.sql.Blob data)
setData in interface DLContentModeldata - the data of this document library contentpublic long getSize()
getSize in interface DLContentModelpublic void setSize(long size)
setSize in interface DLContentModelsize - the size of this document library contentpublic boolean isNew()
BaseModeltrue if this model instance does not yet exist in
the database.isNew in interface BaseModel<DLContent>isNew in interface DLContentModeltrue if this model instance does not yet exist in
the database; false otherwisepublic void setNew(boolean n)
BaseModelsetNew in interface BaseModel<DLContent>setNew in interface DLContentModeln - whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModeltrue if this model instance was retrieved from the
entity cache.isCachedModel in interface BaseModel<DLContent>isCachedModel in interface DLContentModeltrue if this model instance was retrieved from the
entity cache; false otherwiseBaseModel.setCachedModel(boolean)public void setCachedModel(boolean cachedModel)
BaseModelsetCachedModel in interface BaseModel<DLContent>setCachedModel in interface DLContentModelcachedModel - whether this model instance was retrieved from the
entity cacheEntityCachepublic boolean isEscapedModel()
BaseModeltrue if this model instance is escaped.isEscapedModel in interface BaseModel<DLContent>isEscapedModel in interface DLContentModeltrue if this model instance is escaped;
false otherwisepublic java.io.Serializable getPrimaryKeyObj()
BaseModelgetPrimaryKeyObj in interface BaseModel<DLContent>getPrimaryKeyObj in interface ClassedModelgetPrimaryKeyObj in interface DLContentModelpublic void setPrimaryKeyObj(java.io.Serializable primaryKeyObj)
BaseModelsetPrimaryKeyObj in interface BaseModel<DLContent>setPrimaryKeyObj in interface ClassedModelsetPrimaryKeyObj in interface DLContentModelprimaryKeyObj - the primary key of this model instancepublic ExpandoBridge getExpandoBridge()
BaseModelgetExpandoBridge in interface BaseModel<DLContent>getExpandoBridge in interface ClassedModelgetExpandoBridge in interface DLContentModelpublic void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes in interface BaseModel<DLContent>setExpandoBridgeAttributes in interface DLContentModelpublic void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes in interface BaseModel<DLContent>setExpandoBridgeAttributes in interface DLContentModelpublic void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModelsetExpandoBridgeAttributes in interface BaseModel<DLContent>setExpandoBridgeAttributes in interface DLContentModelserviceContext - the service context to be appliedServiceContext.getExpandoBridgeAttributes(
)public java.lang.Object clone()
BaseModelclone in interface BaseModel<DLContent>clone in interface DLContentModelclone in class java.lang.Objectpublic int compareTo(DLContent dlContent)
compareTo in interface DLContentModelcompareTo in interface java.lang.Comparable<DLContent>public int hashCode()
hashCode in interface DLContentModelhashCode in class java.lang.Objectpublic CacheModel<DLContent> toCacheModel()
BaseModeltoCacheModel in interface BaseModel<DLContent>toCacheModel in interface DLContentModelpublic DLContent toEscapedModel()
BaseModelAutoEscapeBeanHandler.toEscapedModel in interface BaseModel<DLContent>toEscapedModel in interface DLContentModelAutoEscapeBeanHandlerpublic DLContent toUnescapedModel()
toUnescapedModel in interface BaseModel<DLContent>toUnescapedModel in interface DLContentModelpublic java.lang.String toString()
toString in interface DLContentModeltoString in class java.lang.Objectpublic java.lang.String toXmlString()
BaseModeltoXmlString in interface BaseModel<DLContent>toXmlString in interface DLContentModelpublic void persist()
throws SystemException
PersistedModelpersist in interface PersistedModelSystemException - if a system exception occurredpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic DLContent getWrappedDLContent()
getWrappedModel()public DLContent getWrappedModel()
getWrappedModel in interface ModelWrapper<DLContent>public void resetOriginalValues()
BaseModelresetOriginalValues in interface BaseModel<DLContent>