@Entity public class Attachment extends PersistableBusinessObjectBase
extension, versionNumber| Constructor and Description | 
|---|
| Attachment()Default constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| InputStream | getAttachmentContents() | 
| String | getAttachmentFileName()Gets the attachmentFileName attribute. | 
| Long | getAttachmentFileSize()Gets the attachmentFileSize attribute. | 
| String | getAttachmentFileSizeWithUnits()Returns the size of the attachment with units (byte, kilobyte, ...) | 
| String | getAttachmentIdentifier()Gets the attachmentIdentifier attribute. | 
| String | getAttachmentMimeTypeCode()Gets the attachmentMimeTypeCode attribute. | 
| String | getAttachmentTypeCode()Gets the attachmentTypeCode attribute. | 
| Note | getNote()Gets the note attribute. | 
| Long | getNoteIdentifier()Gets the noteIdentifier attribute. | 
| boolean | isComplete() | 
| void | setAttachmentFileName(String attachmentFileName)Sets the attachmentFileName attribute. | 
| void | setAttachmentFileSize(Long attachmentFileSize)Sets the attachmentFileSize attribute. | 
| void | setAttachmentIdentifier(String attachmentIdentifier)Sets the attachmentIdentifier attribute. | 
| void | setAttachmentMimeTypeCode(String attachmentMimeTypeCode)Sets the attachmentMimeTypeCode attribute. | 
| void | setAttachmentTypeCode(String attachmentTypeCode)Sets the attachmentTypeCode attribute. | 
| void | setNote(Note note)Sets the note attribute value. | 
| void | setNoteIdentifier(Long noteIdentifier)Sets the noteIdentifier attribute. | 
afterDelete, afterInsert, afterLookup, afterUpdate, beforeDelete, beforeInsert, beforeUpdate, buildListOfDeletionAwareLists, getExtension, getObjectId, getPersistenceService, getPersistenceStructureService, getVersionNumber, isNewCollectionRecord, linkEditableUserFields, postLoad, postPersist, postRemove, postUpdate, prePersist, preRemove, preUpdate, refresh, refreshNonUpdateableReferences, refreshReferenceObject, setExtension, setNewCollectionRecord, setObjectId, setVersionNumbertoStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waittoStringpublic Attachment()
public Long getNoteIdentifier()
public void setNoteIdentifier(Long noteIdentifier)
noteIdentifier - The noteIdentifier to set.public String getAttachmentMimeTypeCode()
public void setAttachmentMimeTypeCode(String attachmentMimeTypeCode)
attachmentMimeTypeCode - The attachmentMimeTypeCode to set.public String getAttachmentFileName()
public void setAttachmentFileName(String attachmentFileName)
attachmentFileName - The attachmentFileName to set.public String getAttachmentIdentifier()
public void setAttachmentIdentifier(String attachmentIdentifier)
attachmentIdentifier - The attachmentIdentifier to set.public Long getAttachmentFileSize()
public void setAttachmentFileSize(Long attachmentFileSize)
attachmentFileSize - The attachmentFileSize to set.public String getAttachmentFileSizeWithUnits()
public String getAttachmentTypeCode()
public void setAttachmentTypeCode(String attachmentTypeCode)
attachmentTypeCode - The attachmentTypeCode to set.public void setNote(Note note)
note - The note to set.public boolean isComplete()
public InputStream getAttachmentContents() throws IOException
IOExceptionCopyright © 2005-2015 The Kuali Foundation. All Rights Reserved.