net.sf.jagzilla.hibernate
Class Product

java.lang.Object
  extended bynet.sf.jagzilla.hibernate.XmlObjectImpl
      extended bynet.sf.jagzilla.hibernate.Product
All Implemented Interfaces:
XmlObject

public class Product
extends XmlObjectImpl
implements XmlObject

represents a record in the table products.

Author:
mgriffa

Constructor Summary
Product()
           
 
Method Summary
 boolean equals(java.lang.Object o)
          Returns true if this Product is the same as the o argument.
 java.util.Set getBugs()
           
 java.util.Set getComponents()
           
 java.lang.String getDefaultMilestone()
           
 java.lang.String getDescription()
           
 java.lang.String getDisallowNew()
           
 int getMaxVotesPerBug()
           
 java.util.Set getMilestones()
           
 java.lang.String getMilestoneUrl()
           
 java.lang.String getName()
           
 java.util.Set getVersions()
           
 int getVotesPerUser()
           
 int getVotesToConfirm()
           
 void loadFromXml(java.io.Reader reader)
          load the object data from xml.
 void setBugs(java.util.Set bugs)
           
 void setComponents(java.util.Set components)
           
 void setDefaultMilestone(java.lang.String defaultMilestone)
           
 void setDescription(java.lang.String description)
           
 void setDisallowNew(java.lang.String disallowNew)
           
 void setMaxVotesPerBug(int maxVotesPerBug)
           
 void setMilestones(java.util.Set milestones)
           
 void setMilestoneUrl(java.lang.String milestoneUrl)
           
 void setName(java.lang.String name)
           
 void setVersions(java.util.Set versions)
           
 void setVotesPerUser(int votesPerUser)
          at castor.field
 void setVotesToConfirm(int votesToConfirm)
           
 java.lang.String toString()
           
 
Methods inherited from class net.sf.jagzilla.hibernate.XmlObjectImpl
getXmlString, loadObjectFromXml, setXmlString, toXml
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.sf.jagzilla.hibernate.XmlObject
getXmlString, toXml
 

Constructor Detail

Product

public Product()
Method Detail

getDefaultMilestone

public java.lang.String getDefaultMilestone()
Returns:
Returns the defaultMilestone.

setDefaultMilestone

public void setDefaultMilestone(java.lang.String defaultMilestone)
Parameters:
defaultMilestone - The defaultMilestone to set.

getDescription

public java.lang.String getDescription()
Returns:
Returns the description.

setDescription

public void setDescription(java.lang.String description)
Parameters:
description - The description to set.

getDisallowNew

public java.lang.String getDisallowNew()
Returns:
Returns the disallowNew.

setDisallowNew

public void setDisallowNew(java.lang.String disallowNew)
Parameters:
disallowNew - The disallowNew to set.

getMaxVotesPerBug

public int getMaxVotesPerBug()
Returns:
Returns the maxVotesPerBug.

setMaxVotesPerBug

public void setMaxVotesPerBug(int maxVotesPerBug)
Parameters:
maxVotesPerBug - The maxVotesPerBug to set.

getMilestoneUrl

public java.lang.String getMilestoneUrl()
Returns:
Returns the milestoneUrl.

setMilestoneUrl

public void setMilestoneUrl(java.lang.String milestoneUrl)
Parameters:
milestoneUrl - The milestoneUrl to set.

getName

public java.lang.String getName()
Returns:
Returns the name.

setName

public void setName(java.lang.String name)
Parameters:
name - The name to set.

getVotesPerUser

public int getVotesPerUser()
Returns:
Returns the votesPerUser.

setVotesPerUser

public void setVotesPerUser(int votesPerUser)
at castor.field

Parameters:
votesPerUser - The votesPerUser to set.

getVotesToConfirm

public int getVotesToConfirm()
Returns:
Returns the votesToConfirm.

setVotesToConfirm

public void setVotesToConfirm(int votesToConfirm)
Parameters:
votesToConfirm - The votesToConfirm to set.

toString

public java.lang.String toString()

getComponents

public java.util.Set getComponents()
Returns:
Returns the components.

setComponents

public void setComponents(java.util.Set components)
Parameters:
components - The components to set.

getMilestones

public java.util.Set getMilestones()
Returns:
Returns the milestones.

setMilestones

public void setMilestones(java.util.Set milestones)
Parameters:
milestones - The milestones to set.

getVersions

public java.util.Set getVersions()
Returns:
Returns the versions.

setVersions

public void setVersions(java.util.Set versions)
Parameters:
versions - The versions to set.

getBugs

public java.util.Set getBugs()
Returns:
Returns the bugs.

setBugs

public void setBugs(java.util.Set bugs)
Parameters:
bugs - The bugs to set.

loadFromXml

public void loadFromXml(java.io.Reader reader)
                 throws java.io.IOException,
                        MappingException,
                        MarshalException,
                        ValidationException
Description copied from interface: XmlObject
load the object data from xml. This method internally uses castor to unmarshall the object form XML.

Specified by:
loadFromXml in interface XmlObject
Parameters:
reader - a reader containing a parseable xml
Throws:
java.io.IOException
MappingException
MarshalException
ValidationException

equals

public boolean equals(java.lang.Object o)
Returns true if this Product is the same as the o argument.

Overrides:
equals in class XmlObjectImpl
Returns:
true if this Product is the same as the o argument.


Distributed under the GPL. By Miguel Griffa. See the Jagzilla project page for more info.