org.ow2.dragon.persistence.bo.metadata
Class SimpleFile

java.lang.Object
  extended by org.ow2.dragon.persistence.bo.common.BaseObject
      extended by org.ow2.dragon.persistence.bo.common.SearchableBaseObject
          extended by 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

Constructor Summary
SimpleFile()
           
 
Method Summary
 void addDescription(Description description)
           
 void addImportedFile(SimpleFile file)
           
 boolean equals(java.lang.Object other)
          Compares object equality.
 java.lang.String getAuthor()
           
 java.sql.Blob getContent()
           
 java.util.List<Description> getDescriptions()
           
 java.lang.String getExtractedContent()
           
 java.lang.String getFileName()
           
 org.ow2.dragon.util.ContentType getFileType()
           
 java.util.Set<SimpleFile> getImportedFiles()
           
 java.lang.String getLocation()
           
 java.lang.String getTitle()
           
 org.ow2.dragon.util.UDDIUseType getUseType()
           
 int hashCode()
          When you override equals, you should override hashCode.
 void setAuthor(java.lang.String author)
           
 void setContent(java.sql.Blob content)
           
 void setDescriptions(java.util.List<Description> descriptions)
           
 void setExtractedContent(java.lang.String extractedContent)
           
 void setFileName(java.lang.String fileName)
           
 void setFileType(org.ow2.dragon.util.ContentType fileType)
           
 void setImportedFiles(java.util.Set<SimpleFile> importedFiles)
           
 void setLocation(java.lang.String location)
           
 void setTitle(java.lang.String title)
           
 void setUseType(org.ow2.dragon.util.UDDIUseType useType)
           
 java.lang.String toString()
          Returns a multi-line String with key=value pairs.
 
Methods inherited from class org.ow2.dragon.persistence.bo.common.SearchableBaseObject
getId, setId
 
Methods inherited from class org.ow2.dragon.persistence.bo.common.BaseObject
getCreated, getLastUpdated, setCreated, setLastUpdated
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleFile

public SimpleFile()
Method Detail

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.