@ProviderType public class AttachmentWrapper extends java.lang.Object implements Attachment, com.liferay.portal.kernel.model.ModelWrapper<Attachment>
This class is a wrapper for Attachment.
Attachment,
Serialized FormATTACHMENT_ID_ACCESSOR| Constructor and Description |
|---|
AttachmentWrapper(Attachment attachment) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone() |
int |
compareTo(Attachment attachment) |
boolean |
equals(java.lang.Object obj) |
long |
getAccountId()
Returns the account ID of this attachment.
|
long |
getAttachmentId()
Returns the attachment ID of this attachment.
|
long |
getCompanyId()
Returns the company ID of this attachment.
|
java.lang.String |
getContentPath()
Returns the content path of this attachment.
|
com.liferay.expando.kernel.model.ExpandoBridge |
getExpandoBridge() |
java.lang.String |
getFileName()
Returns the file name of this attachment.
|
long |
getFolderId()
Returns the folder ID of this attachment.
|
long |
getMessageId()
Returns the message ID of this attachment.
|
java.util.Map<java.lang.String,java.lang.Object> |
getModelAttributes() |
java.lang.Class<?> |
getModelClass() |
java.lang.String |
getModelClassName() |
long |
getPrimaryKey()
Returns the primary key of this attachment.
|
java.io.Serializable |
getPrimaryKeyObj() |
long |
getSize()
Returns the size of this attachment.
|
long |
getUserId()
Returns the user ID of this attachment.
|
java.lang.String |
getUserUuid()
Returns the user uuid of this attachment.
|
Attachment |
getWrappedModel() |
int |
hashCode() |
boolean |
isCachedModel() |
boolean |
isEntityCacheEnabled() |
boolean |
isEscapedModel() |
boolean |
isFinderCacheEnabled() |
boolean |
isNew() |
void |
persist() |
void |
resetOriginalValues() |
void |
setAccountId(long accountId)
Sets the account ID of this attachment.
|
void |
setAttachmentId(long attachmentId)
Sets the attachment ID of this attachment.
|
void |
setCachedModel(boolean cachedModel) |
void |
setCompanyId(long companyId)
Sets the company ID of this attachment.
|
void |
setContentPath(java.lang.String contentPath)
Sets the content path of this attachment.
|
void |
setExpandoBridgeAttributes(com.liferay.portal.kernel.model.BaseModel<?> baseModel) |
void |
setExpandoBridgeAttributes(com.liferay.expando.kernel.model.ExpandoBridge expandoBridge) |
void |
setExpandoBridgeAttributes(com.liferay.portal.kernel.service.ServiceContext serviceContext) |
void |
setFileName(java.lang.String fileName)
Sets the file name of this attachment.
|
void |
setFolderId(long folderId)
Sets the folder ID of this attachment.
|
void |
setMessageId(long messageId)
Sets the message ID of this attachment.
|
void |
setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes) |
void |
setNew(boolean n) |
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this attachment.
|
void |
setPrimaryKeyObj(java.io.Serializable primaryKeyObj) |
void |
setSize(long size)
Sets the size of this attachment.
|
void |
setUserId(long userId)
Sets the user ID of this attachment.
|
void |
setUserUuid(java.lang.String userUuid)
Sets the user uuid of this attachment.
|
com.liferay.portal.kernel.model.CacheModel<Attachment> |
toCacheModel() |
Attachment |
toEscapedModel() |
java.lang.String |
toString() |
Attachment |
toUnescapedModel() |
java.lang.String |
toXmlString() |
public AttachmentWrapper(Attachment attachment)
public java.lang.Class<?> getModelClass()
getModelClass in interface com.liferay.portal.kernel.model.ClassedModelpublic java.lang.String getModelClassName()
getModelClassName in interface com.liferay.portal.kernel.model.ClassedModelpublic java.util.Map<java.lang.String,java.lang.Object> getModelAttributes()
getModelAttributes in interface com.liferay.portal.kernel.model.BaseModel<Attachment>public void setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
setModelAttributes in interface com.liferay.portal.kernel.model.BaseModel<Attachment>public Attachment toEscapedModel()
toEscapedModel in interface AttachmentModeltoEscapedModel in interface com.liferay.portal.kernel.model.BaseModel<Attachment>public Attachment toUnescapedModel()
toUnescapedModel in interface AttachmentModeltoUnescapedModel in interface com.liferay.portal.kernel.model.BaseModel<Attachment>public boolean isCachedModel()
isCachedModel in interface AttachmentModelisCachedModel in interface com.liferay.portal.kernel.model.BaseModel<Attachment>public boolean isEscapedModel()
isEscapedModel in interface AttachmentModelisEscapedModel in interface com.liferay.portal.kernel.model.BaseModel<Attachment>public boolean isNew()
isNew in interface AttachmentModelisNew in interface com.liferay.portal.kernel.model.BaseModel<Attachment>public com.liferay.expando.kernel.model.ExpandoBridge getExpandoBridge()
getExpandoBridge in interface AttachmentModelgetExpandoBridge in interface com.liferay.portal.kernel.model.BaseModel<Attachment>getExpandoBridge in interface com.liferay.portal.kernel.model.ClassedModelpublic com.liferay.portal.kernel.model.CacheModel<Attachment> toCacheModel()
toCacheModel in interface AttachmentModeltoCacheModel in interface com.liferay.portal.kernel.model.BaseModel<Attachment>public int compareTo(Attachment attachment)
compareTo in interface AttachmentModelcompareTo in interface java.lang.Comparable<Attachment>public int hashCode()
hashCode in interface AttachmentModelhashCode in class java.lang.Objectpublic java.io.Serializable getPrimaryKeyObj()
getPrimaryKeyObj in interface AttachmentModelgetPrimaryKeyObj in interface com.liferay.portal.kernel.model.BaseModel<Attachment>getPrimaryKeyObj in interface com.liferay.portal.kernel.model.ClassedModelpublic java.lang.Object clone()
clone in interface AttachmentModelclone in interface com.liferay.portal.kernel.model.BaseModel<Attachment>clone in class java.lang.Objectpublic java.lang.String getContentPath()
getContentPath in interface AttachmentModelpublic java.lang.String getFileName()
getFileName in interface AttachmentModelpublic java.lang.String getUserUuid()
getUserUuid in interface AttachmentModelpublic java.lang.String toString()
toString in interface AttachmentModeltoString in class java.lang.Objectpublic java.lang.String toXmlString()
toXmlString in interface AttachmentModeltoXmlString in interface com.liferay.portal.kernel.model.BaseModel<Attachment>public long getAccountId()
getAccountId in interface AttachmentModelpublic long getAttachmentId()
getAttachmentId in interface AttachmentModelpublic long getCompanyId()
getCompanyId in interface AttachmentModelgetCompanyId in interface com.liferay.portal.kernel.model.ShardedModelpublic long getFolderId()
getFolderId in interface AttachmentModelpublic long getMessageId()
getMessageId in interface AttachmentModelpublic long getPrimaryKey()
getPrimaryKey in interface AttachmentModelpublic long getSize()
getSize in interface AttachmentModelpublic long getUserId()
getUserId in interface AttachmentModelpublic void persist()
persist in interface com.liferay.portal.kernel.model.PersistedModelpublic void setAccountId(long accountId)
setAccountId in interface AttachmentModelaccountId - the account ID of this attachmentpublic void setAttachmentId(long attachmentId)
setAttachmentId in interface AttachmentModelattachmentId - the attachment ID of this attachmentpublic void setCachedModel(boolean cachedModel)
setCachedModel in interface AttachmentModelsetCachedModel in interface com.liferay.portal.kernel.model.BaseModel<Attachment>public void setCompanyId(long companyId)
setCompanyId in interface AttachmentModelsetCompanyId in interface com.liferay.portal.kernel.model.ShardedModelcompanyId - the company ID of this attachmentpublic void setContentPath(java.lang.String contentPath)
setContentPath in interface AttachmentModelcontentPath - the content path of this attachmentpublic void setExpandoBridgeAttributes(com.liferay.expando.kernel.model.ExpandoBridge expandoBridge)
setExpandoBridgeAttributes in interface AttachmentModelsetExpandoBridgeAttributes in interface com.liferay.portal.kernel.model.BaseModel<Attachment>public void setExpandoBridgeAttributes(com.liferay.portal.kernel.model.BaseModel<?> baseModel)
setExpandoBridgeAttributes in interface AttachmentModelsetExpandoBridgeAttributes in interface com.liferay.portal.kernel.model.BaseModel<Attachment>public void setExpandoBridgeAttributes(com.liferay.portal.kernel.service.ServiceContext serviceContext)
setExpandoBridgeAttributes in interface AttachmentModelsetExpandoBridgeAttributes in interface com.liferay.portal.kernel.model.BaseModel<Attachment>public void setFileName(java.lang.String fileName)
setFileName in interface AttachmentModelfileName - the file name of this attachmentpublic void setFolderId(long folderId)
setFolderId in interface AttachmentModelfolderId - the folder ID of this attachmentpublic void setMessageId(long messageId)
setMessageId in interface AttachmentModelmessageId - the message ID of this attachmentpublic void setNew(boolean n)
setNew in interface AttachmentModelsetNew in interface com.liferay.portal.kernel.model.BaseModel<Attachment>public void setPrimaryKey(long primaryKey)
setPrimaryKey in interface AttachmentModelprimaryKey - the primary key of this attachmentpublic void setPrimaryKeyObj(java.io.Serializable primaryKeyObj)
setPrimaryKeyObj in interface AttachmentModelsetPrimaryKeyObj in interface com.liferay.portal.kernel.model.BaseModel<Attachment>setPrimaryKeyObj in interface com.liferay.portal.kernel.model.ClassedModelpublic void setSize(long size)
setSize in interface AttachmentModelsize - the size of this attachmentpublic void setUserId(long userId)
setUserId in interface AttachmentModeluserId - the user ID of this attachmentpublic void setUserUuid(java.lang.String userUuid)
setUserUuid in interface AttachmentModeluserUuid - the user uuid of this attachmentpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic Attachment getWrappedModel()
getWrappedModel in interface com.liferay.portal.kernel.model.ModelWrapper<Attachment>public boolean isEntityCacheEnabled()
isEntityCacheEnabled in interface com.liferay.portal.kernel.model.BaseModel<Attachment>public boolean isFinderCacheEnabled()
isFinderCacheEnabled in interface com.liferay.portal.kernel.model.BaseModel<Attachment>public void resetOriginalValues()
resetOriginalValues in interface com.liferay.portal.kernel.model.BaseModel<Attachment>