use of com.djrapitops.plan.extension.implementation.storage.transactions.providers.StoreTableProviderTransaction in project Plan by plan-player-analytics.
the class DataValueGatherer method storePlayerTable.
private void storePlayerTable(Parameters parameters, Conditions conditions, TableDataValue data) {
ProviderInformation information = data.getInformation();
Table value = getValue(conditions, data, information);
if (value == null)
return;
Database db = dbSystem.getDatabase();
for (Icon icon : value.getIcons()) {
if (icon != null)
db.executeTransaction(new StoreIconTransaction(icon));
}
db.executeTransaction(new StoreTableProviderTransaction(information, parameters, value));
db.executeTransaction(new StorePlayerTableResultTransaction(information, parameters, value));
}
use of com.djrapitops.plan.extension.implementation.storage.transactions.providers.StoreTableProviderTransaction in project Plan by plan-player-analytics.
the class DataValueGatherer method storeTable.
private void storeTable(Parameters parameters, Conditions conditions, TableDataValue data) {
ProviderInformation information = data.getInformation();
Table value = getValue(conditions, data, information);
if (value == null)
return;
Database db = dbSystem.getDatabase();
for (Icon icon : value.getIcons()) {
if (icon != null)
db.executeTransaction(new StoreIconTransaction(icon));
}
db.executeTransaction(new StoreTableProviderTransaction(information, parameters, value));
db.executeTransaction(new StoreServerTableResultTransaction(information, parameters, value));
}
Aggregations