public class AttachmentWrapper extends BaseModelWrapper<Attachment> implements Attachment, ModelWrapper<Attachment>
This class is a wrapper for Attachment.
Attachment,
Serialized FormmodelATTACHMENT_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()
Updates this model instance in the database or adds it if it does not yet
exist.
|
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, toXmlStringfinalize, getClass, notify, notifyAll, wait, wait, waitclone, getAttributeGetterFunctions, getAttributeSetterBiConsumers, getExpandoBridge, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel, toXmlStringgetModelClass, getModelClassNamegetWrappedModelpublic AttachmentWrapper(Attachment attachment)
public java.util.Map<java.lang.String,java.lang.Object> getModelAttributes()
getModelAttributes in interface BaseModel<Attachment>public void setModelAttributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
setModelAttributes in interface BaseModel<Attachment>public long getAccountId()
getAccountId in interface AttachmentModelpublic long getAttachmentId()
getAttachmentId in interface AttachmentModelpublic long getCompanyId()
getCompanyId in interface AttachmentModelgetCompanyId in interface ShardedModelpublic java.lang.String getContentPath()
getContentPath in interface AttachmentModelpublic java.lang.String getFileName()
getFileName in interface AttachmentModelpublic 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 java.lang.String getUserUuid()
getUserUuid in interface AttachmentModelpublic void persist()
PersistedModelpersist in interface 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 setCompanyId(long companyId)
setCompanyId in interface AttachmentModelsetCompanyId in interface ShardedModelcompanyId - the company ID of this attachmentpublic void setContentPath(java.lang.String contentPath)
setContentPath in interface AttachmentModelcontentPath - the content path of this attachmentpublic 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 setPrimaryKey(long primaryKey)
setPrimaryKey in interface AttachmentModelprimaryKey - the primary key of this attachmentpublic 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 attachmentprotected AttachmentWrapper wrap(Attachment attachment)
wrap in class BaseModelWrapper<Attachment>