Antura  1.1.0
Antura.Database.DatabaseManager Class Reference

Entry point for the rest of the application to access database entries. This class is responsible for loading all data and provide access to both static (learning) and dynamic (logging) data. More...

Public Member Functions

bool HasLoadedPlayerProfile ()
 
void CreateDatabaseForPlayer (PlayerProfileData playerProfileData)
 
PlayerProfileData LoadDatabaseForPlayer (string playerUuid)
 
 DatabaseManager ()
 
void UnloadCurrentProfile ()
 
void DeleteCurrentProfile ()
 
void CreateProfile ()
 
void RecreateProfile ()
 
void DropProfile ()
 
void UpdatePlayerProfileData (PlayerProfileData playerProfileData)
 
PlayerProfileData GetPlayerProfileData ()
 
string GetTableName< T > ()
 
void Insert< T > (T data)
 
void InsertOrReplace< T > (T data)
 
void InsertAll< T > (IEnumerable< T > objects)
 
void InsertOrReplaceAll< T > (IEnumerable< T > objects)
 
void DeleteAll< T > ()
 
LetterData GetLetterDataById (string id)
 
List< LetterDataFindLetterData (Predicate< LetterData > predicate)
 
List< LetterDataGetAllLetterData ()
 
WordData GetWordDataById (string id)
 
WordData GetWordDataByRandom ()
 
List< WordDataGetAllWordData ()
 
List< WordDataFindWordData (Predicate< WordData > predicate)
 
List< WordDataFindWordDataByCategory (WordDataCategory wordCategory)
 
MiniGameData GetMiniGameDataByCode (MiniGameCode code)
 
List< MiniGameDataGetActiveMinigames ()
 
List< MiniGameDataGetAllMiniGameData ()
 
List< MiniGameDataFindMiniGameData (Predicate< MiniGameData > predicate)
 
LearningBlockData GetLearningBlockDataById (string id)
 
List< LearningBlockDataFindLearningBlockData (Predicate< LearningBlockData > predicate)
 
List< LearningBlockDataGetAllLearningBlockData ()
 
List< T > GetAllData< T > (DbTables table)
 
bool HasPlaySessionDataById (string id)
 
PlaySessionData GetPlaySessionDataById (string id)
 
List< PlaySessionDataFindPlaySessionData (Predicate< PlaySessionData > predicate)
 
List< PlaySessionDataGetPlaySessionsOfLearningBlock (LearningBlockData lb)
 
List< PlaySessionDataGetAllPlaySessionData ()
 
PhraseData GetPhraseDataById (string id)
 
List< PhraseDataFindPhraseData (Predicate< PhraseData > predicate)
 
List< PhraseDataGetAllPhraseData ()
 
LocalizationData GetLocalizationDataById (string id)
 
List< LocalizationDataGetAllLocalizationData ()
 
List< LocalizationDataFindLocalizationData (Predicate< LocalizationData > predicate)
 
StageData GetStageDataById (string id)
 
List< StageDataGetAllStageData ()
 
List< StageDataFindStageData (Predicate< StageData > predicate)
 
RewardData GetRewardDataById (string id)
 
List< RewardDataGetAllRewardData ()
 
List< RewardDataFindRewardData (Predicate< RewardData > predicate)
 
List< LogInfoDataGetAllLogInfoData ()
 
List< LogMoodDataGetAllLogMoodData ()
 
List< LogVocabularyScoreDataGetAllVocabularyScoreData ()
 
List< LogPlayDataGetAllLogPlayData ()
 
List< T > GetAllDynamicData< T > ()
 
List< LogInfoDataFindLogInfoData (System.Linq.Expressions.Expression< Func< LogInfoData, bool >> expression)
 
LogInfoData GetLogInfoDataById (string id)
 
List< LogInfoDataFindLogInfoDataByQuery (string query)
 
List< LogVocabularyScoreDataFindLogVocabularyScoreDataByQuery (string query)
 
List< LogMoodDataFindLogMoodDataByQuery (string query)
 
List< LogPlayDataFindLogPlayDataByQuery (string query)
 
List< T > Query< T > (string query)
 
List< object > Query (Type t, string query)
 
List< object > FindCustomDataByQuery (SQLite.TableMapping mapping, string query)
 
List< RewardPackUnlockDataGetAllRewardPackUnlockData ()
 
void UpdateRewardPackUnlockData (RewardPackUnlockData updatedData)
 
void UpdateRewardPackUnlockDataAll (List< RewardPackUnlockData > updatedDataList)
 
bool ExportDatabaseOfPlayer (string playerUuid)
 
bool ExportJoinedDatabase (out string errorString)
 
string [] GetImportFilePaths ()
 
PlayerProfileData ImportDynamicDatabase (string importFilePath)
 

Public Attributes

const string STATIC_DATABASE_NAME = "Database"
 
const string STATIC_DATABASE_NAME_TEST = STATIC_DATABASE_NAME + "_Test"
 
List< Type > staticDataTypes
 
List< Type > dynamicDataTypes
 

Properties

DatabaseObject StaticDatabase [get]
 

Detailed Description

Entry point for the rest of the application to access database entries. This class is responsible for loading all data and provide access to both static (learning) and dynamic (logging) data.

Constructor & Destructor Documentation

◆ DatabaseManager()

Antura.Database.DatabaseManager.DatabaseManager ( )

Member Function Documentation

◆ CreateDatabaseForPlayer()

void Antura.Database.DatabaseManager.CreateDatabaseForPlayer ( PlayerProfileData  playerProfileData)

◆ CreateProfile()

void Antura.Database.DatabaseManager.CreateProfile ( )

◆ DeleteAll< T >()

void Antura.Database.DatabaseManager.DeleteAll< T > ( )
Type Constraints
T :IData 
T :new() 

◆ DeleteCurrentProfile()

void Antura.Database.DatabaseManager.DeleteCurrentProfile ( )

◆ DropProfile()

void Antura.Database.DatabaseManager.DropProfile ( )

◆ ExportDatabaseOfPlayer()

bool Antura.Database.DatabaseManager.ExportDatabaseOfPlayer ( string  playerUuid)

◆ ExportJoinedDatabase()

bool Antura.Database.DatabaseManager.ExportJoinedDatabase ( out string  errorString)

◆ FindCustomDataByQuery()

List<object> Antura.Database.DatabaseManager.FindCustomDataByQuery ( SQLite.TableMapping  mapping,
string  query 
)

◆ FindLearningBlockData()

List<LearningBlockData> Antura.Database.DatabaseManager.FindLearningBlockData ( Predicate< LearningBlockData predicate)

◆ FindLetterData()

List<LetterData> Antura.Database.DatabaseManager.FindLetterData ( Predicate< LetterData predicate)

◆ FindLocalizationData()

List<LocalizationData> Antura.Database.DatabaseManager.FindLocalizationData ( Predicate< LocalizationData predicate)

◆ FindLogInfoData()

List<LogInfoData> Antura.Database.DatabaseManager.FindLogInfoData ( System.Linq.Expressions.Expression< Func< LogInfoData, bool >>  expression)

◆ FindLogInfoDataByQuery()

List<LogInfoData> Antura.Database.DatabaseManager.FindLogInfoDataByQuery ( string  query)

◆ FindLogMoodDataByQuery()

List<LogMoodData> Antura.Database.DatabaseManager.FindLogMoodDataByQuery ( string  query)

◆ FindLogPlayDataByQuery()

List<LogPlayData> Antura.Database.DatabaseManager.FindLogPlayDataByQuery ( string  query)

◆ FindLogVocabularyScoreDataByQuery()

List<LogVocabularyScoreData> Antura.Database.DatabaseManager.FindLogVocabularyScoreDataByQuery ( string  query)

◆ FindMiniGameData()

List<MiniGameData> Antura.Database.DatabaseManager.FindMiniGameData ( Predicate< MiniGameData predicate)

◆ FindPhraseData()

List<PhraseData> Antura.Database.DatabaseManager.FindPhraseData ( Predicate< PhraseData predicate)

◆ FindPlaySessionData()

List<PlaySessionData> Antura.Database.DatabaseManager.FindPlaySessionData ( Predicate< PlaySessionData predicate)

◆ FindRewardData()

List<RewardData> Antura.Database.DatabaseManager.FindRewardData ( Predicate< RewardData predicate)

◆ FindStageData()

List<StageData> Antura.Database.DatabaseManager.FindStageData ( Predicate< StageData predicate)

◆ FindWordData()

List<WordData> Antura.Database.DatabaseManager.FindWordData ( Predicate< WordData predicate)

◆ FindWordDataByCategory()

List<WordData> Antura.Database.DatabaseManager.FindWordDataByCategory ( WordDataCategory  wordCategory)

◆ GetActiveMinigames()

List<MiniGameData> Antura.Database.DatabaseManager.GetActiveMinigames ( )

◆ GetAllData< T >()

List<T> Antura.Database.DatabaseManager.GetAllData< T > ( DbTables  table)
Type Constraints
T :IData 

◆ GetAllDynamicData< T >()

List<T> Antura.Database.DatabaseManager.GetAllDynamicData< T > ( )
Type Constraints
T :IData 
T :new() 

◆ GetAllLearningBlockData()

List<LearningBlockData> Antura.Database.DatabaseManager.GetAllLearningBlockData ( )

◆ GetAllLetterData()

List<LetterData> Antura.Database.DatabaseManager.GetAllLetterData ( )

◆ GetAllLocalizationData()

List<LocalizationData> Antura.Database.DatabaseManager.GetAllLocalizationData ( )

◆ GetAllLogInfoData()

List<LogInfoData> Antura.Database.DatabaseManager.GetAllLogInfoData ( )

◆ GetAllLogMoodData()

List<LogMoodData> Antura.Database.DatabaseManager.GetAllLogMoodData ( )

◆ GetAllLogPlayData()

List<LogPlayData> Antura.Database.DatabaseManager.GetAllLogPlayData ( )

◆ GetAllMiniGameData()

List<MiniGameData> Antura.Database.DatabaseManager.GetAllMiniGameData ( )

◆ GetAllPhraseData()

List<PhraseData> Antura.Database.DatabaseManager.GetAllPhraseData ( )

◆ GetAllPlaySessionData()

List<PlaySessionData> Antura.Database.DatabaseManager.GetAllPlaySessionData ( )

◆ GetAllRewardData()

List<RewardData> Antura.Database.DatabaseManager.GetAllRewardData ( )

◆ GetAllRewardPackUnlockData()

List<RewardPackUnlockData> Antura.Database.DatabaseManager.GetAllRewardPackUnlockData ( )

◆ GetAllStageData()

List<StageData> Antura.Database.DatabaseManager.GetAllStageData ( )

◆ GetAllVocabularyScoreData()

List<LogVocabularyScoreData> Antura.Database.DatabaseManager.GetAllVocabularyScoreData ( )

◆ GetAllWordData()

List<WordData> Antura.Database.DatabaseManager.GetAllWordData ( )

◆ GetImportFilePaths()

string [] Antura.Database.DatabaseManager.GetImportFilePaths ( )

◆ GetLearningBlockDataById()

LearningBlockData Antura.Database.DatabaseManager.GetLearningBlockDataById ( string  id)

◆ GetLetterDataById()

LetterData Antura.Database.DatabaseManager.GetLetterDataById ( string  id)

◆ GetLocalizationDataById()

LocalizationData Antura.Database.DatabaseManager.GetLocalizationDataById ( string  id)

◆ GetLogInfoDataById()

LogInfoData Antura.Database.DatabaseManager.GetLogInfoDataById ( string  id)

◆ GetMiniGameDataByCode()

MiniGameData Antura.Database.DatabaseManager.GetMiniGameDataByCode ( MiniGameCode  code)

◆ GetPhraseDataById()

PhraseData Antura.Database.DatabaseManager.GetPhraseDataById ( string  id)

◆ GetPlayerProfileData()

PlayerProfileData Antura.Database.DatabaseManager.GetPlayerProfileData ( )

◆ GetPlaySessionDataById()

PlaySessionData Antura.Database.DatabaseManager.GetPlaySessionDataById ( string  id)

◆ GetPlaySessionsOfLearningBlock()

List<PlaySessionData> Antura.Database.DatabaseManager.GetPlaySessionsOfLearningBlock ( LearningBlockData  lb)

◆ GetRewardDataById()

RewardData Antura.Database.DatabaseManager.GetRewardDataById ( string  id)

◆ GetStageDataById()

StageData Antura.Database.DatabaseManager.GetStageDataById ( string  id)

◆ GetTableName< T >()

string Antura.Database.DatabaseManager.GetTableName< T > ( )

◆ GetWordDataById()

WordData Antura.Database.DatabaseManager.GetWordDataById ( string  id)

◆ GetWordDataByRandom()

WordData Antura.Database.DatabaseManager.GetWordDataByRandom ( )

◆ HasLoadedPlayerProfile()

bool Antura.Database.DatabaseManager.HasLoadedPlayerProfile ( )

◆ HasPlaySessionDataById()

bool Antura.Database.DatabaseManager.HasPlaySessionDataById ( string  id)

◆ ImportDynamicDatabase()

PlayerProfileData Antura.Database.DatabaseManager.ImportDynamicDatabase ( string  importFilePath)

◆ Insert< T >()

void Antura.Database.DatabaseManager.Insert< T > ( data)
Type Constraints
T :IData 
T :new() 

◆ InsertAll< T >()

void Antura.Database.DatabaseManager.InsertAll< T > ( IEnumerable< T >  objects)
Type Constraints
T :IData 
T :new() 

◆ InsertOrReplace< T >()

void Antura.Database.DatabaseManager.InsertOrReplace< T > ( data)
Type Constraints
T :IData 
T :new() 

◆ InsertOrReplaceAll< T >()

void Antura.Database.DatabaseManager.InsertOrReplaceAll< T > ( IEnumerable< T >  objects)
Type Constraints
T :IData 
T :new() 

◆ LoadDatabaseForPlayer()

PlayerProfileData Antura.Database.DatabaseManager.LoadDatabaseForPlayer ( string  playerUuid)

◆ Query()

List<object> Antura.Database.DatabaseManager.Query ( Type  t,
string  query 
)

◆ Query< T >()

List<T> Antura.Database.DatabaseManager.Query< T > ( string  query)
Type Constraints
T :IData 
T :new() 

◆ RecreateProfile()

void Antura.Database.DatabaseManager.RecreateProfile ( )

◆ UnloadCurrentProfile()

void Antura.Database.DatabaseManager.UnloadCurrentProfile ( )

◆ UpdatePlayerProfileData()

void Antura.Database.DatabaseManager.UpdatePlayerProfileData ( PlayerProfileData  playerProfileData)

◆ UpdateRewardPackUnlockData()

void Antura.Database.DatabaseManager.UpdateRewardPackUnlockData ( RewardPackUnlockData  updatedData)

◆ UpdateRewardPackUnlockDataAll()

void Antura.Database.DatabaseManager.UpdateRewardPackUnlockDataAll ( List< RewardPackUnlockData updatedDataList)

Member Data Documentation

◆ dynamicDataTypes

List<Type> Antura.Database.DatabaseManager.dynamicDataTypes
Initial value:
= new List<Type>()
{
typeof(VocabularyScoreData),
typeof(JourneyScoreData),
typeof(MiniGameScoreData),
typeof(LogInfoData),
typeof(LogMoodData),
typeof(LogPlayData),
typeof(LogMiniGameScoreData),
typeof(LogPlaySessionScoreData),
typeof(LogVocabularyScoreData),
typeof(DatabaseInfoData),
typeof(PlayerProfileData),
typeof(RewardPackUnlockData)
}

◆ STATIC_DATABASE_NAME

const string Antura.Database.DatabaseManager.STATIC_DATABASE_NAME = "Database"

◆ STATIC_DATABASE_NAME_TEST

const string Antura.Database.DatabaseManager.STATIC_DATABASE_NAME_TEST = STATIC_DATABASE_NAME + "_Test"

◆ staticDataTypes

List<Type> Antura.Database.DatabaseManager.staticDataTypes
Initial value:
= new List<Type>()
{
typeof(StageData),
typeof(PlaySessionData),
typeof(LearningBlockData),
typeof(MiniGameData),
typeof(LetterData),
typeof(WordData),
typeof(PhraseData),
typeof(LocalizationData),
typeof(RewardData)
}

Property Documentation

◆ StaticDatabase

DatabaseObject Antura.Database.DatabaseManager.StaticDatabase
get

The documentation for this class was generated from the following file: