org.figure8.join.businessobjects.commons
Class Release

java.lang.Object
  extended by org.figure8.join.core.EntityObject
      extended by org.figure8.join.core.SortableEntityObject
          extended by org.figure8.join.businessobjects.commons.Release
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Comparable

public class Release
extends SortableEntityObject

This is an entity representing a release of the software project that is using Join for its integration phases management.
A release is defined using a name (that should be unique), a major and a minor release number (ex: "2.0"); it should also have a shipping date.

Version:
$Revision: 1.3 $
Author:
Laurent Broudoux
See Also:
Serialized Form

Constructor Summary
Release()
          Creates a new instance of Release
Release(java.lang.String name, int major, int minor, java.util.Date shippingDate)
          Creates a new instance of Release with mandatory fields.
 
Method Summary
 int getMajor()
           
 int getMinor()
           
 java.lang.String getName()
           
 java.util.Date getShippingDate()
           
 java.lang.String getStringForComparison()
          Get the comparision criterion as a string.
 void setMajor(int major)
           
 void setMinor(int minor)
           
 void setName(java.lang.String name)
           
 void setShippingDate(java.util.Date ship)
           
 
Methods inherited from class org.figure8.join.core.SortableEntityObject
compareTo
 
Methods inherited from class org.figure8.join.core.EntityObject
clone, equals, getId, hashCode, isTransient
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Release

public Release()
Creates a new instance of Release


Release

public Release(java.lang.String name,
               int major,
               int minor,
               java.util.Date shippingDate)
Creates a new instance of Release with mandatory fields.

Parameters:
name - This release name (must be unique)
major - Major version number
minor - Minor version number
shippingDate - Release shipping date
Method Detail

getName

public java.lang.String getName()
Returns:
This release name

setName

public void setName(java.lang.String name)
Parameters:
name - This release name

getMajor

public int getMajor()
Returns:
This release major number

setMajor

public void setMajor(int major)
Parameters:
major - This release major number

getMinor

public int getMinor()
Returns:
This release minor number

setMinor

public void setMinor(int minor)
Parameters:
minor - This release minor number

getShippingDate

public java.util.Date getShippingDate()
Returns:
This release shipping date

setShippingDate

public void setShippingDate(java.util.Date ship)
Parameters:
ship - This release shipping date

getStringForComparison

public java.lang.String getStringForComparison()
Get the comparision criterion as a string. Major + minor numbers here.

Specified by:
getStringForComparison in class SortableEntityObject
Returns:
The string representation of comparison and sort cirterion


Copyright © 2005-2008 Join. All Rights Reserved.