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.ClassedModel
public java.lang.String getModelClassName()
getModelClassName
in interface com.liferay.portal.kernel.model.ClassedModel
public 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 java.lang.Object clone()
clone
in interface AttachmentModel
clone
in interface com.liferay.portal.kernel.model.BaseModel<Attachment>
clone
in class java.lang.Object
public int compareTo(Attachment attachment)
compareTo
in interface AttachmentModel
compareTo
in interface java.lang.Comparable<Attachment>
public long getAccountId()
getAccountId
in interface AttachmentModel
public long getAttachmentId()
getAttachmentId
in interface AttachmentModel
public long getCompanyId()
getCompanyId
in interface AttachmentModel
getCompanyId
in interface com.liferay.portal.kernel.model.ShardedModel
public java.lang.String getContentPath()
getContentPath
in interface AttachmentModel
public com.liferay.expando.kernel.model.ExpandoBridge getExpandoBridge()
getExpandoBridge
in interface AttachmentModel
getExpandoBridge
in interface com.liferay.portal.kernel.model.BaseModel<Attachment>
getExpandoBridge
in interface com.liferay.portal.kernel.model.ClassedModel
public java.lang.String getFileName()
getFileName
in interface AttachmentModel
public long getFolderId()
getFolderId
in interface AttachmentModel
public long getMessageId()
getMessageId
in interface AttachmentModel
public long getPrimaryKey()
getPrimaryKey
in interface AttachmentModel
public java.io.Serializable getPrimaryKeyObj()
getPrimaryKeyObj
in interface AttachmentModel
getPrimaryKeyObj
in interface com.liferay.portal.kernel.model.BaseModel<Attachment>
getPrimaryKeyObj
in interface com.liferay.portal.kernel.model.ClassedModel
public long getSize()
getSize
in interface AttachmentModel
public long getUserId()
getUserId
in interface AttachmentModel
public java.lang.String getUserUuid()
getUserUuid
in interface AttachmentModel
public int hashCode()
hashCode
in interface AttachmentModel
hashCode
in class java.lang.Object
public boolean isCachedModel()
isCachedModel
in interface AttachmentModel
isCachedModel
in interface com.liferay.portal.kernel.model.BaseModel<Attachment>
public boolean isEscapedModel()
isEscapedModel
in interface AttachmentModel
isEscapedModel
in interface com.liferay.portal.kernel.model.BaseModel<Attachment>
public boolean isNew()
isNew
in interface AttachmentModel
isNew
in interface com.liferay.portal.kernel.model.BaseModel<Attachment>
public void persist()
persist
in interface com.liferay.portal.kernel.model.PersistedModel
public void setAccountId(long accountId)
setAccountId
in interface AttachmentModel
accountId
- the account ID of this attachmentpublic void setAttachmentId(long attachmentId)
setAttachmentId
in interface AttachmentModel
attachmentId
- the attachment ID of this attachmentpublic void setCachedModel(boolean cachedModel)
setCachedModel
in interface AttachmentModel
setCachedModel
in interface com.liferay.portal.kernel.model.BaseModel<Attachment>
public void setCompanyId(long companyId)
setCompanyId
in interface AttachmentModel
setCompanyId
in interface com.liferay.portal.kernel.model.ShardedModel
companyId
- the company ID of this attachmentpublic void setContentPath(java.lang.String contentPath)
setContentPath
in interface AttachmentModel
contentPath
- the content path of this attachmentpublic void setExpandoBridgeAttributes(com.liferay.portal.kernel.model.BaseModel<?> baseModel)
setExpandoBridgeAttributes
in interface AttachmentModel
setExpandoBridgeAttributes
in interface com.liferay.portal.kernel.model.BaseModel<Attachment>
public void setExpandoBridgeAttributes(com.liferay.expando.kernel.model.ExpandoBridge expandoBridge)
setExpandoBridgeAttributes
in interface AttachmentModel
setExpandoBridgeAttributes
in interface com.liferay.portal.kernel.model.BaseModel<Attachment>
public void setExpandoBridgeAttributes(com.liferay.portal.kernel.service.ServiceContext serviceContext)
setExpandoBridgeAttributes
in interface AttachmentModel
setExpandoBridgeAttributes
in interface com.liferay.portal.kernel.model.BaseModel<Attachment>
public void setFileName(java.lang.String fileName)
setFileName
in interface AttachmentModel
fileName
- the file name of this attachmentpublic void setFolderId(long folderId)
setFolderId
in interface AttachmentModel
folderId
- the folder ID of this attachmentpublic void setMessageId(long messageId)
setMessageId
in interface AttachmentModel
messageId
- the message ID of this attachmentpublic void setNew(boolean n)
setNew
in interface AttachmentModel
setNew
in interface com.liferay.portal.kernel.model.BaseModel<Attachment>
public void setPrimaryKey(long primaryKey)
setPrimaryKey
in interface AttachmentModel
primaryKey
- the primary key of this attachmentpublic void setPrimaryKeyObj(java.io.Serializable primaryKeyObj)
setPrimaryKeyObj
in interface AttachmentModel
setPrimaryKeyObj
in interface com.liferay.portal.kernel.model.BaseModel<Attachment>
setPrimaryKeyObj
in interface com.liferay.portal.kernel.model.ClassedModel
public void setSize(long size)
setSize
in interface AttachmentModel
size
- the size of this attachmentpublic void setUserId(long userId)
setUserId
in interface AttachmentModel
userId
- the user ID of this attachmentpublic void setUserUuid(java.lang.String userUuid)
setUserUuid
in interface AttachmentModel
userUuid
- the user uuid of this attachmentpublic com.liferay.portal.kernel.model.CacheModel<Attachment> toCacheModel()
toCacheModel
in interface AttachmentModel
toCacheModel
in interface com.liferay.portal.kernel.model.BaseModel<Attachment>
public Attachment toEscapedModel()
toEscapedModel
in interface AttachmentModel
toEscapedModel
in interface com.liferay.portal.kernel.model.BaseModel<Attachment>
public java.lang.String toString()
toString
in interface AttachmentModel
toString
in class java.lang.Object
public Attachment toUnescapedModel()
toUnescapedModel
in interface AttachmentModel
toUnescapedModel
in interface com.liferay.portal.kernel.model.BaseModel<Attachment>
public java.lang.String toXmlString()
toXmlString
in interface AttachmentModel
toXmlString
in interface com.liferay.portal.kernel.model.BaseModel<Attachment>
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public 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>