org.ow2.dragon.persistence.bo.metadata
Class SimpleFile
java.lang.Object
org.ow2.dragon.persistence.bo.common.BaseObject
org.ow2.dragon.persistence.bo.common.SearchableBaseObject
org.ow2.dragon.persistence.bo.metadata.SimpleFile
- All Implemented Interfaces:
- java.io.Serializable
public class SimpleFile
- extends SearchableBaseObject
- Author:
- ofabre - eBM WebSourcing
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
SimpleFile
public SimpleFile()
addDescription
public void addDescription(Description description)
addImportedFile
public void addImportedFile(SimpleFile file)
getContent
public java.sql.Blob getContent()
getFileType
public org.ow2.dragon.util.ContentType getFileType()
setContent
public void setContent(java.sql.Blob content)
setFileType
public void setFileType(org.ow2.dragon.util.ContentType fileType)
getAuthor
public java.lang.String getAuthor()
setAuthor
public void setAuthor(java.lang.String author)
getTitle
public java.lang.String getTitle()
setTitle
public void setTitle(java.lang.String title)
getExtractedContent
public java.lang.String getExtractedContent()
setExtractedContent
public void setExtractedContent(java.lang.String extractedContent)
getImportedFiles
public java.util.Set<SimpleFile> getImportedFiles()
setImportedFiles
public void setImportedFiles(java.util.Set<SimpleFile> importedFiles)
getFileName
public java.lang.String getFileName()
setFileName
public void setFileName(java.lang.String fileName)
getDescriptions
public java.util.List<Description> getDescriptions()
setDescriptions
public void setDescriptions(java.util.List<Description> descriptions)
toString
public java.lang.String toString()
- Description copied from class:
BaseObject
- Returns a multi-line String with key=value pairs.
- Overrides:
toString in class SearchableBaseObject
- Returns:
- a String representation of this class.
- See Also:
Object.toString()
getLocation
public java.lang.String getLocation()
setLocation
public void setLocation(java.lang.String location)
getUseType
public org.ow2.dragon.util.UDDIUseType getUseType()
setUseType
public void setUseType(org.ow2.dragon.util.UDDIUseType useType)
equals
public boolean equals(java.lang.Object other)
- Description copied from class:
BaseObject
- Compares object equality. When using Hibernate, the primary key should
not be a part of this comparison.
- Specified by:
equals in class BaseObject
- Parameters:
other - object to compare to
- Returns:
- true/false based on equality tests
hashCode
public int hashCode()
- Description copied from class:
BaseObject
- When you override equals, you should override hashCode. See "Why are
equals() and hashCode() importation" for more information:
http://www.hibernate.org/109.html
- Specified by:
hashCode in class BaseObject
- Returns:
- hashCode
Copyright © 2008-2009 eBMWebsourcing. All Rights Reserved.