|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portlet.documentlibrary.model.DLContentWrapper
@ProviderType public class DLContentWrapper
This class is a wrapper for DLContent
.
DLContent
,
Serialized FormConstructor 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. 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(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. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DLContentWrapper(DLContent dlContent)
Method Detail |
---|
public Class<?> getModelClass()
getModelClass
in interface ClassedModel
public String getModelClassName()
getModelClassName
in interface ClassedModel
public Map<String,Object> getModelAttributes()
getModelAttributes
in interface BaseModel<DLContent>
public void setModelAttributes(Map<String,Object> attributes)
setModelAttributes
in interface BaseModel<DLContent>
public long getPrimaryKey()
getPrimaryKey
in interface DLContentModel
public void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface DLContentModel
primaryKey
- the primary key of this document library contentpublic long getContentId()
getContentId
in interface DLContentModel
public void setContentId(long contentId)
setContentId
in interface DLContentModel
contentId
- the content ID of this document library contentpublic long getGroupId()
getGroupId
in interface DLContentModel
public void setGroupId(long groupId)
setGroupId
in interface DLContentModel
groupId
- the group ID of this document library contentpublic long getCompanyId()
getCompanyId
in interface DLContentModel
public void setCompanyId(long companyId)
setCompanyId
in interface DLContentModel
companyId
- the company ID of this document library contentpublic long getRepositoryId()
getRepositoryId
in interface DLContentModel
public void setRepositoryId(long repositoryId)
setRepositoryId
in interface DLContentModel
repositoryId
- the repository ID of this document library contentpublic String getPath()
getPath
in interface DLContentModel
public void setPath(String path)
setPath
in interface DLContentModel
path
- the path of this document library contentpublic String getVersion()
getVersion
in interface DLContentModel
public void setVersion(String version)
setVersion
in interface DLContentModel
version
- the version of this document library contentpublic Blob getData()
getData
in interface DLContentModel
public void setData(Blob data)
setData
in interface DLContentModel
data
- the data of this document library contentpublic long getSize()
getSize
in interface DLContentModel
public void setSize(long size)
setSize
in interface DLContentModel
size
- the size of this document library contentpublic boolean isNew()
BaseModel
true
if this model instance does not yet exist in
the database.
isNew
in interface BaseModel<DLContent>
isNew
in interface DLContentModel
true
if this model instance does not yet exist in
the database; false
otherwisepublic void setNew(boolean n)
BaseModel
setNew
in interface BaseModel<DLContent>
setNew
in interface DLContentModel
n
- whether this model instance does not yet exist in the databasepublic boolean isCachedModel()
BaseModel
true
if this model instance was retrieved from the
entity cache.
isCachedModel
in interface BaseModel<DLContent>
isCachedModel
in interface DLContentModel
true
if this model instance was retrieved from the
entity cache; false
otherwiseBaseModel.setCachedModel(boolean)
public void setCachedModel(boolean cachedModel)
BaseModel
setCachedModel
in interface BaseModel<DLContent>
setCachedModel
in interface DLContentModel
cachedModel
- whether this model instance was retrieved from the
entity cacheEntityCache
public boolean isEscapedModel()
BaseModel
true
if this model instance is escaped.
isEscapedModel
in interface BaseModel<DLContent>
isEscapedModel
in interface DLContentModel
true
if this model instance is escaped;
false
otherwisepublic Serializable getPrimaryKeyObj()
BaseModel
getPrimaryKeyObj
in interface BaseModel<DLContent>
getPrimaryKeyObj
in interface ClassedModel
getPrimaryKeyObj
in interface DLContentModel
public void setPrimaryKeyObj(Serializable primaryKeyObj)
BaseModel
setPrimaryKeyObj
in interface BaseModel<DLContent>
setPrimaryKeyObj
in interface ClassedModel
setPrimaryKeyObj
in interface DLContentModel
primaryKeyObj
- the primary key of this model instancepublic ExpandoBridge getExpandoBridge()
BaseModel
getExpandoBridge
in interface BaseModel<DLContent>
getExpandoBridge
in interface ClassedModel
getExpandoBridge
in interface DLContentModel
public void setExpandoBridgeAttributes(BaseModel<?> baseModel)
setExpandoBridgeAttributes
in interface BaseModel<DLContent>
setExpandoBridgeAttributes
in interface DLContentModel
public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge)
setExpandoBridgeAttributes
in interface BaseModel<DLContent>
setExpandoBridgeAttributes
in interface DLContentModel
public void setExpandoBridgeAttributes(ServiceContext serviceContext)
BaseModel
setExpandoBridgeAttributes
in interface BaseModel<DLContent>
setExpandoBridgeAttributes
in interface DLContentModel
serviceContext
- the service context to be appliedServiceContext.getExpandoBridgeAttributes(
)
public Object clone()
BaseModel
clone
in interface BaseModel<DLContent>
clone
in interface DLContentModel
clone
in class Object
public int compareTo(DLContent dlContent)
compareTo
in interface DLContentModel
compareTo
in interface Comparable<DLContent>
public int hashCode()
hashCode
in interface DLContentModel
hashCode
in class Object
public CacheModel<DLContent> toCacheModel()
BaseModel
toCacheModel
in interface BaseModel<DLContent>
toCacheModel
in interface DLContentModel
public DLContent toEscapedModel()
BaseModel
AutoEscapeBeanHandler
.
toEscapedModel
in interface BaseModel<DLContent>
toEscapedModel
in interface DLContentModel
AutoEscapeBeanHandler
public DLContent toUnescapedModel()
toUnescapedModel
in interface BaseModel<DLContent>
toUnescapedModel
in interface DLContentModel
public String toString()
toString
in interface DLContentModel
toString
in class Object
public String toXmlString()
BaseModel
toXmlString
in interface BaseModel<DLContent>
toXmlString
in interface DLContentModel
public void persist() throws SystemException
PersistedModel
persist
in interface PersistedModel
SystemException
- if a system exception occurredpublic boolean equals(Object obj)
equals
in class Object
public DLContent getWrappedDLContent()
getWrappedModel()
public DLContent getWrappedModel()
getWrappedModel
in interface ModelWrapper<DLContent>
public void resetOriginalValues()
BaseModel
resetOriginalValues
in interface BaseModel<DLContent>
|
Liferay 6.2-ce-ga5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |