Predictions 4.10.0.0

hirondelle.predict.main.lists
Class PredictionList

Object
  extended by hirondelle.predict.main.lists.PredictionList

public final class PredictionList
extends Object

Model Object for a list of related predictions.


Constructor Summary
PredictionList(Id aId, SafeText aTitle, DateTime aCreationDate, Id aUser)
          Constructor.
PredictionList(Id aId, SafeText aTitle, DateTime aCreationDate, Id aUser, SafeText aUserScreenName)
          Constructor for public view of a prediction list.
PredictionList(Id aId, SafeText aTitle, Id aUser)
          Constructor used when building from user input.
 
Method Summary
 boolean equals(Object aThat)
           
 DateTime getCreationDate()
          Returns null if no creation date passed to constructor.
 Id getId()
           
 SafeText getTitle()
           
 Id getUser()
           
 SafeText getUserScreenName()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PredictionList

public PredictionList(Id aId,
                      SafeText aTitle,
                      DateTime aCreationDate,
                      Id aUser)
               throws ModelCtorException
Constructor.

Parameters:
aId - Internal database primary key, optional
aTitle - Title or name of this list of predictions, required, max 50 chars, not unique for given user
aCreationDate - Date and time this prediction list was created, required. Never changes.
aUser - User id of the list owner, required
Throws:
ModelCtorException

PredictionList

public PredictionList(Id aId,
                      SafeText aTitle,
                      DateTime aCreationDate,
                      Id aUser,
                      SafeText aUserScreenName)
               throws ModelCtorException
Constructor for public view of a prediction list. This constructor has the creator's screen name as an additional parameter.

Parameters:
aId - Internal database primary key, optional
aTitle - Title or name of this list of predictions, required, max 50 chars, not unique for given user
aCreationDate - Date and time this prediction list was created, required. Never changes.
aUser - User id of the list owner, required
aUserScreenName - screen name of the owner, required
Throws:
ModelCtorException

PredictionList

public PredictionList(Id aId,
                      SafeText aTitle,
                      Id aUser)
               throws ModelCtorException
Constructor used when building from user input.

Parameters:
aId - Internal database primary key, optional
aTitle - Title or name of this list of predictions, required, max 50 chars, (not unique for given user)
aUser - User id of the list owner, required, must come from session-scope object, not from user input
Throws:
ModelCtorException
Method Detail

getId

public Id getId()

getTitle

public SafeText getTitle()

getCreationDate

public DateTime getCreationDate()
Returns null if no creation date passed to constructor.


getUser

public Id getUser()

getUserScreenName

public SafeText getUserScreenName()

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object aThat)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

Predictions 4.10.0.0

Copyright Hirondelle Systems - Generated 2013Oct19.12.27