Class SQLConverter
java.lang.Object
com.ordwen.odailyquests.commands.admin.convert.SQLConverter
- Direct Known Subclasses:
YAMLtoMySQLConverter,YAMLtoSQLiteConverter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconvertData(org.bukkit.configuration.file.FileConfiguration progressionFile, SQLManager sqlManager) Converts a YAML progression file to SQL rows.
-
Constructor Details
-
SQLConverter
public SQLConverter()
-
-
Method Details
-
convertData
protected void convertData(org.bukkit.configuration.file.FileConfiguration progressionFile, SQLManager sqlManager) Converts a YAML progression file to SQL rows.For each player UUID found in the YAML configuration, this method reads:
- timestamp and achievement counters
- all quest progressions
PlayerQuestsinstance and persists it through the providedSQLManager.- Parameters:
progressionFile- the YAML progression configurationsqlManager- the SQL manager used to save progressions
-