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

java.lang.Object
  extended by org.ow2.dragon.persistence.bo.BaseObject
      extended by org.ow2.dragon.persistence.bo.metadata.SimpleFile
All Implemented Interfaces:
java.io.Serializable

public class SimpleFile
extends BaseObject

Author:
ofabre - eBM WebSourcing
See Also:
Serialized Form

Constructor Summary
SimpleFile()
           
 
Method Summary
 boolean equals(java.lang.Object other)
          Compares object equality.
 java.sql.Blob getContent()
           
 ContentTypeConstants.FILE_TYPE getFileType()
           
 java.lang.String getId()
           
 int hashCode()
          When you override equals, you should override hashCode.
 void setContent(java.sql.Blob content)
           
 void setFileType(ContentTypeConstants.FILE_TYPE fileType)
           
 void setId(java.lang.String id)
           
 java.lang.String toString()
          Returns a multi-line String with key=value pairs.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleFile

public SimpleFile()
Method Detail

getContent

public java.sql.Blob getContent()

getFileType

public ContentTypeConstants.FILE_TYPE getFileType()

getId

public java.lang.String getId()
Specified by:
getId in class BaseObject

setContent

public void setContent(java.sql.Blob content)

setFileType

public void setFileType(ContentTypeConstants.FILE_TYPE fileType)

setId

public void setId(java.lang.String id)
Specified by:
setId in class BaseObject

toString

public java.lang.String toString()
Description copied from class: BaseObject
Returns a multi-line String with key=value pairs.

Specified by:
toString in class BaseObject
Returns:
a String representation of this class.
See Also:
Object.toString()

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 eBMWebsourcing. All Rights Reserved.