edu.sampleu.travel.bo
Class AttachmentSample
java.lang.Object
org.kuali.rice.krad.bo.BusinessObjectBase
org.kuali.rice.krad.bo.PersistableBusinessObjectBase
edu.sampleu.travel.bo.AttachmentSample
- All Implemented Interfaces:
- Serializable, org.apache.ojb.broker.PersistenceBrokerAware, GloballyUnique, Versioned, ModelObjectBasic, BusinessObject, PersistableAttachment, PersistableAttachmentList<MultiAttachmentSample>, PersistableBusinessObject
public class AttachmentSample
- extends PersistableBusinessObjectBase
- implements PersistableAttachment, PersistableAttachmentList<MultiAttachmentSample>
- See Also:
- Serialized Form
Methods inherited from class org.kuali.rice.krad.bo.PersistableBusinessObjectBase |
afterDelete, afterInsert, afterLookup, afterUpdate, beforeDelete, beforeInsert, beforeUpdate, getExtension, getObjectId, getPersistenceService, getPersistenceStructureService, getVersionNumber, isNewCollectionRecord, linkEditableUserFields, postLoad, postPersist, postRemove, postUpdate, prePersist, preRemove, preUpdate, refresh, refreshNonUpdateableReferences, refreshReferenceObject, setExtension, setNewCollectionRecord, setObjectId, setVersionNumber |
AttachmentSample
public AttachmentSample()
getId
public String getId()
setId
public void setId(String id)
getDescription
public String getDescription()
setDescription
public void setDescription(String description)
getFileName
public String getFileName()
- Specified by:
getFileName
in interface PersistableAttachment
setFileName
public void setFileName(String fileName)
- Specified by:
setFileName
in interface PersistableAttachment
getContentType
public String getContentType()
- Specified by:
getContentType
in interface PersistableAttachment
setContentType
public void setContentType(String contentType)
- Specified by:
setContentType
in interface PersistableAttachment
getAttachmentContent
public byte[] getAttachmentContent()
- Specified by:
getAttachmentContent
in interface PersistableAttachment
setAttachmentContent
public void setAttachmentContent(byte[] attachmentContent)
- Specified by:
setAttachmentContent
in interface PersistableAttachment
getAttachmentFile
public org.apache.struts.upload.FormFile getAttachmentFile()
setAttachmentFile
public void setAttachmentFile(org.apache.struts.upload.FormFile attachmentFile)
getAttachments
public List<MultiAttachmentSample> getAttachments()
- Specified by:
getAttachments
in interface PersistableAttachmentList<MultiAttachmentSample>
setAttachments
public void setAttachments(List<MultiAttachmentSample> attachments)
- Specified by:
setAttachments
in interface PersistableAttachmentList<MultiAttachmentSample>
toStringMapper
protected LinkedHashMap toStringMapper()
buildListOfDeletionAwareLists
public List buildListOfDeletionAwareLists()
- Description copied from interface:
PersistableBusinessObject
- If this method is not implemented appropriately for PersistableBusinessObject with collections, then PersistableBusinessObject with collections will not persist deletions correctly.
Elements that have been deleted will reappear in the DB after retrieval.
- Specified by:
buildListOfDeletionAwareLists
in interface PersistableBusinessObject
- Overrides:
buildListOfDeletionAwareLists
in class PersistableBusinessObjectBase
- Returns:
- List of collections which need to be monitored for changes by OJB
- See Also:
PersistableBusinessObject.buildListOfDeletionAwareLists()
Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.