public class DrawImpl extends Object implements Draw
Constructor and Description |
---|
DrawImpl(Urn id,
Urn sportId,
List<Locale> locales,
SportEventCache sportEventCache,
SportEntityFactory sportEntityFactory,
ExceptionHandlingStrategy exceptionHandlingStrategy) |
Modifier and Type | Method and Description |
---|---|
Integer |
getDisplayId()
Returns the display id
|
Urn |
getId()
Returns an
Urn uniquely identifying the tournament associated with the current instance |
Lottery |
getLottery()
Returns the associated lottery
|
String |
getName(Locale locale)
Returns the sport event name
|
Urn |
getReplacedBy()
Returns the
Urn specifying the replacement sport event for the current instance |
List<DrawResult> |
getResults()
Returns a list of draw results
|
Date |
getScheduledEndTime()
Returns the
Date specifying when the sport event associated with the current
instance was scheduled to end |
Date |
getScheduledTime()
Returns the
Date specifying when the sport event associated with the current
instance was scheduled |
Urn |
getSportId()
Returns the associated sport identifier
(This method its overridden because the superclass SportEvent does not contain the sportId in all cases)
|
DrawStatus |
getStatus()
Returns the status of the draw
|
Boolean |
isStartTimeTbd()
Returns the
Boolean specifying if the start time to be determined is set for the current instance |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getId
public DrawImpl(Urn id, Urn sportId, List<Locale> locales, SportEventCache sportEventCache, SportEntityFactory sportEntityFactory, ExceptionHandlingStrategy exceptionHandlingStrategy)
public DrawStatus getStatus()
public List<DrawResult> getResults()
getResults
in interface Draw
public Lottery getLottery()
getLottery
in interface Draw
public String getName(Locale locale)
getName
in interface SportEvent
locale
- the Locale
in which the name should be providedpublic Date getScheduledTime()
Date
specifying when the sport event associated with the current
instance was scheduledgetScheduledTime
in interface SportEvent
Date
instance specifying when the sport event associated with the current
instance was scheduledpublic Date getScheduledEndTime()
Date
specifying when the sport event associated with the current
instance was scheduled to endgetScheduledEndTime
in interface SportEvent
Date
instance specifying when the sport event associated with the current
instance was scheduled to endpublic Boolean isStartTimeTbd()
Boolean
specifying if the start time to be determined is set for the current instanceisStartTimeTbd
in interface SportEvent
Boolean
specifying if the start time to be determined is set for the current instancepublic Urn getReplacedBy()
Urn
specifying the replacement sport event for the current instancegetReplacedBy
in interface SportEvent
Urn
specifying the replacement sport event for the current instancepublic Urn getSportId()
getSportId
in interface SportEvent
public Integer getDisplayId()
getDisplayId
in interface Draw
public Urn getId()
Urn
uniquely identifying the tournament associated with the current instancegetId
in interface SportEvent
Urn
uniquely identifying the tournament associated with the current instanceCopyright © 2016–2025. All rights reserved.