Gets a Lottery object from the database given its lotteryId.
The Lottery object with the specified lotteryId if it exists. null otherwise.
null
The lotteryId to search for.
lotteryId