edu.sampleu.travel.bo
Class AttachmentSample

java.lang.Object
  extended by org.kuali.rice.krad.bo.BusinessObjectBase
      extended by org.kuali.rice.krad.bo.PersistableBusinessObjectBase
          extended by 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

Field Summary
 
Fields inherited from class org.kuali.rice.krad.bo.PersistableBusinessObjectBase
extension, newCollectionRecord, objectId, versionNumber
 
Constructor Summary
AttachmentSample()
           
 
Method Summary
 List buildListOfDeletionAwareLists()
          If this method is not implemented appropriately for PersistableBusinessObject with collections, then PersistableBusinessObject with collections will not persist deletions correctly.
 byte[] getAttachmentContent()
           
 org.apache.struts.upload.FormFile getAttachmentFile()
           
 List<MultiAttachmentSample> getAttachments()
           
 String getContentType()
           
 String getDescription()
           
 String getFileName()
           
 String getId()
           
 void setAttachmentContent(byte[] attachmentContent)
           
 void setAttachmentFile(org.apache.struts.upload.FormFile attachmentFile)
           
 void setAttachments(List<MultiAttachmentSample> attachments)
           
 void setContentType(String contentType)
           
 void setDescription(String description)
           
 void setFileName(String fileName)
           
 void setId(String id)
           
protected  LinkedHashMap toStringMapper()
           
 
Methods inherited from class org.kuali.rice.krad.bo.PersistableBusinessObjectBase
afterDelete, afterInsert, afterLookup, afterUpdate, beforeDelete, beforeInsert, beforeUpdate, getExtension, getLegacyDataAdapter, getObjectId, getVersionNumber, isNewCollectionRecord, linkEditableUserFields, postLoad, postPersist, postRemove, postUpdate, prePersist, preRemove, preUpdate, refresh, refreshNonUpdateableReferences, refreshReferenceObject, setExtension, setNewCollectionRecord, setObjectId, setVersionNumber
 
Methods inherited from class org.kuali.rice.krad.bo.BusinessObjectBase
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.kuali.rice.core.api.mo.ModelObjectBasic
toString
 

Constructor Detail

AttachmentSample

public AttachmentSample()
Method Detail

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


Copyright © 2005–2014 The Kuali Foundation. All rights reserved.