edu.sampleu.travel.bo
Class AttachmentSample

java.lang.Object
  extended by org.kuali.rice.kns.bo.BusinessObjectBase
      extended by org.kuali.rice.kns.bo.PersistableBusinessObjectBase
          extended by edu.sampleu.travel.bo.AttachmentSample
All Implemented Interfaces:
Serializable, org.apache.ojb.broker.PersistenceBrokerAware, BusinessObject, PersistableAttachment, PersistableBusinessObject

public class AttachmentSample
extends PersistableBusinessObjectBase
implements PersistableAttachment

See Also:
Serialized Form

Field Summary
private  byte[] attachmentContent
           
private  org.apache.struts.upload.FormFile attachmentFile
           
private  String contentType
           
private  String description
           
private  String fileName
           
private  String id
           
private  List<MultiAttachmentSample> multiAttachment
           
 
Fields inherited from class org.kuali.rice.kns.bo.PersistableBusinessObjectBase
extension, 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()
           
 String getContentType()
           
 String getDescription()
           
 String getFileName()
           
 String getId()
           
 List<MultiAttachmentSample> getMultiAttachment()
           
 void setAttachmentContent(byte[] attachmentContent)
           
 void setAttachmentFile(org.apache.struts.upload.FormFile attachmentFile)
           
 void setContentType(String contentType)
           
 void setDescription(String description)
           
 void setFileName(String fileName)
           
 void setId(String id)
           
 void setMultiAttachment(List<MultiAttachmentSample> multiAttachment)
           
protected  LinkedHashMap toStringMapper()
           
 
Methods inherited from class org.kuali.rice.kns.bo.PersistableBusinessObjectBase
addNote, afterDelete, afterInsert, afterLookup, afterUpdate, beforeDelete, beforeInsert, beforeInsert, beforeUpdate, beforeUpdate, deleteNote, getAttachmentService, getBoNote, getBoNotes, getExtension, getNoteService, getObjectId, getPersistenceService, getPersistenceStructureService, getVersionNumber, isAutoIncrementSet, isBoNotesSupport, isNewCollectionRecord, linkEditableUserFields, refresh, refreshNonUpdateableReferences, refreshReferenceObject, setAutoIncrementSet, setBoNotes, setExtension, setNewCollectionRecord, setObjectId, setVersionNumber, supportsBoNotes
 
Methods inherited from class org.kuali.rice.kns.bo.BusinessObjectBase
prepareForWorkflow, toString, toStringBuilder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.kuali.rice.kns.bo.BusinessObject
prepareForWorkflow
 

Field Detail

id

private String id

description

private String description

fileName

private String fileName

contentType

private String contentType

attachmentContent

private byte[] attachmentContent

attachmentFile

private transient org.apache.struts.upload.FormFile attachmentFile

multiAttachment

private List<MultiAttachmentSample> multiAttachment
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)

getMultiAttachment

public List<MultiAttachmentSample> getMultiAttachment()

setMultiAttachment

public void setMultiAttachment(List<MultiAttachmentSample> multiAttachment)

toStringMapper

protected LinkedHashMap toStringMapper()
Specified by:
toStringMapper in class BusinessObjectBase
Returns:
Map containing the fieldValues of the key fields for this class, indexed by fieldName

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 © 2004-2011 The Kuali Foundation. All Rights Reserved.