org.ow2.dragon.persistence.bo.common
Class LinkedEntity

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.common.LinkedEntity
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
CommunityObj, Party

public class LinkedEntity
extends SearchableBaseObject

Author:
ofabre - ebmwebsourcing
See Also:
Serialized Form

Constructor Summary
LinkedEntity()
           
 
Method Summary
 void addFromLink(Link link)
           
 void addToLink(Link link)
           
 boolean equals(java.lang.Object other)
          Compares object equality.
 java.util.Set<Link> getFromLinks()
           
 java.util.Set<Link> getToLinks()
           
 int hashCode()
          When you override equals, you should override hashCode.
 void setFromLinks(java.util.Set<Link> fromLinks)
           
 void setToLinks(java.util.Set<Link> toLinks)
           
 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

LinkedEntity

public LinkedEntity()
Method Detail

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

addFromLink

public void addFromLink(Link link)

addToLink

public void addToLink(Link link)

getFromLinks

public java.util.Set<Link> getFromLinks()

setFromLinks

public void setFromLinks(java.util.Set<Link> fromLinks)

getToLinks

public java.util.Set<Link> getToLinks()

setToLinks

public void setToLinks(java.util.Set<Link> toLinks)

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()


Copyright © 2008-2009 eBMWebsourcing. All Rights Reserved.