org.aspsimon.termcomp.entity
Class Deadline

java.lang.Object
  extended by org.aspsimon.termcomp.entity.Deadline
All Implemented Interfaces:
java.io.Serializable

public class Deadline
extends java.lang.Object
implements java.io.Serializable

Represents a deadline during which submission of tools is not possible. Use DeadlineHelper.isEnforcing() in a JBoss Seam context to determine if a deadline is currently active.

Version:
$Revision: 104 $
Author:
binabik
See Also:
Serialized Form

Constructor Summary
Deadline()
           
 
Method Summary
 java.lang.Long getDeadlineId()
          Get the unique identifier for this deadline.
 java.util.Date getEndDeadline()
          Get the end date and time for this deadline.
 java.lang.String getName()
          Get a description of this deadline.
 java.util.Date getStartDeadline()
          Get the start date and time for this deadline.
 void setDeadlineId(java.lang.Long deadlineId)
          Set the unique identifier for this Deadline.
 void setEndDeadline(java.util.Date endDeadline)
          Set the end date and time for this deadline.
 void setName(java.lang.String description)
          Set a description for this deadline.
 void setStartDeadline(java.util.Date startDeadline)
          Set the starting date and time for this deadline.
 java.lang.String toString()
          A human-readable description of this enforcing period.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Deadline

public Deadline()
Method Detail

getDeadlineId

public java.lang.Long getDeadlineId()
Get the unique identifier for this deadline.

Returns:
A DB-generated identifier for internally referencing this Deadline. Globally unique.

getEndDeadline

public java.util.Date getEndDeadline()
Get the end date and time for this deadline.

Returns:
The time this deadline ends.

getName

public java.lang.String getName()
Get a description of this deadline.

Returns:
The reason for this deadline.

getStartDeadline

public java.util.Date getStartDeadline()
Get the start date and time for this deadline.

Returns:
The time this deadline starts.

setDeadlineId

public void setDeadlineId(java.lang.Long deadlineId)
Set the unique identifier for this Deadline. Must be globally unique, otherwise the database will complain heavily. There is normally no need to actually use this call in normal programming.

Parameters:
deadlineId - The globally unique identifier for this Deadline.

setEndDeadline

public void setEndDeadline(java.util.Date endDeadline)
Set the end date and time for this deadline.

Parameters:
endDeadline - The date and time to end the enforcing period.

setName

public void setName(java.lang.String description)
Set a description for this deadline.

Parameters:
description - The description to set.

setStartDeadline

public void setStartDeadline(java.util.Date startDeadline)
Set the starting date and time for this deadline.

Parameters:
startDeadline - The date and time to start the enforcing period.

toString

public java.lang.String toString()
A human-readable description of this enforcing period.

Overrides:
toString in class java.lang.Object
Returns:
The description and the start and end dates.