public class AttachmentWrapper extends com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<Attachment> 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 |
---|---|
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.
|
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() |
long |
getPrimaryKey()
Returns the primary key of this attachment.
|
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.
|
void |
persist() |
void |
setAccountId(long accountId)
Sets the account ID of this attachment.
|
void |
setAttachmentId(long attachmentId)
Sets the attachment ID of this attachment.
|
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 |
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 |
setPrimaryKey(long primaryKey)
Sets the primary key of this attachment.
|
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.
|
protected AttachmentWrapper |
wrap(Attachment attachment) |
clone, compareTo, equals, getExpandoBridge, getModelClass, getModelClassName, getPrimaryKeyObj, getWrappedModel, hashCode, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toString, toUnescapedModel, toXmlString
finalize, getClass, notify, notifyAll, wait, wait, wait
clone, getAttributeGetterFunctions, getAttributeSetterBiConsumers, getExpandoBridge, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel, toXmlString
public AttachmentWrapper(Attachment attachment)
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 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 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 long getSize()
getSize
in interface AttachmentModel
public long getUserId()
getUserId
in interface AttachmentModel
public java.lang.String getUserUuid()
getUserUuid
in interface AttachmentModel
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 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 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 setPrimaryKey(long primaryKey)
setPrimaryKey
in interface AttachmentModel
primaryKey
- the primary key of this attachmentpublic 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 attachmentprotected AttachmentWrapper wrap(Attachment attachment)
wrap
in class com.liferay.portal.kernel.model.wrapper.BaseModelWrapper<Attachment>