com.danube.scrumworks.api.wso
Class ThemeWSO

java.lang.Object
  extended by com.danube.scrumworks.api.wso.ThemeWSO
All Implemented Interfaces:
java.io.Serializable

public final class ThemeWSO
extends java.lang.Object
implements java.io.Serializable

Base class for the theme WSO classes.

See Also:
Serialized Form

Constructor Summary
ThemeWSO()
          Constructs a new ThemeWSO with default values for all fields.
ThemeWSO(java.lang.Long id, java.lang.String name, java.lang.Long productId, java.lang.Long programId)
          Constructs a new ThemeWSO.
 
Method Summary
 boolean equals(java.lang.Object other)
          
 java.lang.Long getId()
           
 java.lang.String getName()
           
 java.lang.Long getProductId()
           
 java.lang.Long getProgramId()
           
 int hashCode()
          
 void setId(java.lang.Long id)
          Sets the theme's unique database ID.
 void setName(java.lang.String name)
          Sets the theme's name.
 void setProductId(java.lang.Long productId)
          Sets the ID of the product with which this theme is associated.
 void setProgramId(java.lang.Long programId)
          Sets the program ID.
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ThemeWSO

public ThemeWSO()
Constructs a new ThemeWSO with default values for all fields.


ThemeWSO

public ThemeWSO(java.lang.Long id,
                java.lang.String name,
                java.lang.Long productId,
                java.lang.Long programId)
Constructs a new ThemeWSO. You should only specify one of product/program ID.

Parameters:
id - uniquely identifies the theme.
name - the theme's name.
productId - identifies the product, if this is a product theme.
programId - identifies the program, if this is a program theme.
Method Detail

getName

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

getId

public java.lang.Long getId()
Returns:
the theme's unique database ID.

setName

public void setName(java.lang.String name)
Sets the theme's name.

Parameters:
name - the new name (may be null).

setId

public void setId(java.lang.Long id)
Sets the theme's unique database ID.

Parameters:
id - the new ID (may be null).

setProductId

public void setProductId(java.lang.Long productId)
Sets the ID of the product with which this theme is associated.

Parameters:
productId - the new product ID.

getProductId

public java.lang.Long getProductId()
Returns:
the ID of the product with which this theme is associated.

setProgramId

public void setProgramId(java.lang.Long programId)
Sets the program ID.

Parameters:
programId - the new program ID (may be null).

getProgramId

public java.lang.Long getProgramId()
Returns:
the program ID.

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object other)

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()

Overrides:
hashCode in class java.lang.Object