Class MongoScoreDao
java.lang.Object
dev.getelements.elements.dao.mongo.MongoScoreDao
- All Implemented Interfaces:
ScoreDao
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateOrUpdateScore
(String leaderboardNameOrId, Score score) Creates an instance ofScore
, or updates the instance if the same leaderboard andProfile
are specified byScore.getProfile()
.dev.morphia.Datastore
void
setBeanMapper
(MapperRegistry beanMapperRegistry) void
setDatastore
(dev.morphia.Datastore datastore) void
setMongoDBUtils
(MongoDBUtils mongoDBUtils) void
setMongoLeaderboardDao
(MongoLeaderboardDao mongoLeaderboardDao) void
setMongoProfileDao
(MongoProfileDao mongoProfileDao) void
setValidationHelper
(ValidationHelper validationHelper)
-
Constructor Details
-
MongoScoreDao
public MongoScoreDao()
-
-
Method Details
-
createOrUpdateScore
Description copied from interface:ScoreDao
Creates an instance ofScore
, or updates the instance if the same leaderboard andProfile
are specified byScore.getProfile()
.- Specified by:
createOrUpdateScore
in interfaceScoreDao
- Parameters:
leaderboardNameOrId
- the value ofLeaderboard.getId()
orLeaderboard.getName()
score
- theScore
to specify- Returns:
- the
Score
as it was written to the database.
-
getDatastore
public dev.morphia.Datastore getDatastore() -
setDatastore
@Inject public void setDatastore(dev.morphia.Datastore datastore) -
getValidationHelper
-
setValidationHelper
-
getMongoProfileDao
-
setMongoProfileDao
-
getMongoLeaderboardDao
-
setMongoLeaderboardDao
-
getBeanMapper
-
setBeanMapper
-
getMongoDBUtils
-
setMongoDBUtils
-