org.ow2.dragon.persistence.bo.common
Class TModel
java.lang.Object
org.ow2.dragon.persistence.bo.common.BaseObject
org.ow2.dragon.persistence.bo.common.SearchableBaseObject
org.ow2.dragon.persistence.bo.common.TModel
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- Binding, Category, Identifier, ServiceInterface, Standard, VersionedSpecification
public class TModel
- 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 |
TModel
public TModel(Name name,
boolean deleted,
java.util.List<Description> descriptions,
java.util.List<SimpleFile> overviewDocs,
java.util.List<KeyedReference> identifierBag,
CategoryBag categoryBag)
TModel
public TModel()
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
addDescription
public void addDescription(Description description)
addOverviewDoc
public void addOverviewDoc(SimpleFile overviewDoc)
addIdentifier
public void addIdentifier(KeyedReference identifier)
getName
public Name getName()
setName
public void setName(Name name)
isDeleted
public boolean isDeleted()
setDeleted
public void setDeleted(boolean deleted)
getDescriptions
public java.util.List<Description> getDescriptions()
setDescriptions
public void setDescriptions(java.util.List<Description> descriptions)
getOverviewDocs
public java.util.List<SimpleFile> getOverviewDocs()
setOverviewDocs
public void setOverviewDocs(java.util.List<SimpleFile> overviewDocs)
getIdentifierBag
public java.util.List<KeyedReference> getIdentifierBag()
setIdentifierBag
public void setIdentifierBag(java.util.List<KeyedReference> identifierBag)
getCategoryBag
public CategoryBag getCategoryBag()
setCategoryBag
public void setCategoryBag(CategoryBag categoryBag)
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()
getVersion
public java.sql.Timestamp getVersion()
setVersion
public void setVersion(java.sql.Timestamp version)
Copyright © 2008-2009 eBMWebsourcing. All Rights Reserved.