From 45fd3cc53715c651127082e4aabea5de5c05aca9 Mon Sep 17 00:00:00 2001 From: Shaun Bennett Date: Tue, 24 Feb 2015 21:03:59 -0500 Subject: [PATCH] Revert "Update JOOQ files, update IntelliJ config file for JIRA" This reverts commit db3f2989c0c006b717f79216c64f9720d0e4ef09. --- Plugins/.idea/misc.xml | 3 - .../src/mineplex/core/MiniPlugin.java | 6 +- .../src/mineplex/database/Account.java | 10 +- .../src/mineplex/database/Keys.java | 42 +- .../src/mineplex/database/Tables.java | 30 +- .../database/tables/AccountFriend.java | 7 +- .../database/tables/AccountIgnore.java | 104 ----- .../database/tables/AccountPreferences.java | 27 +- .../database/tables/AccountStats.java | 4 +- .../mineplex/database/tables/ClanEnemies.java | 137 ------ .../src/mineplex/database/tables/Clans.java | 7 +- .../mineplex/database/tables/GamePlayers.java | 117 ++++++ .../src/mineplex/database/tables/Games.java | 119 ++++++ .../src/mineplex/database/tables/Polls.java | 7 +- .../database/tables/RankBenefits.java | 104 +++++ .../tables/TournamentLeaderboard.java | 132 ++++++ .../tables/records/AccountFriendRecord.java | 58 +-- .../records/AccountPreferencesRecord.java | 218 +--------- .../tables/records/ClanEnemiesRecord.java | 394 ------------------ .../database/tables/records/ClansRecord.java | 58 +-- .../tables/records/GamePlayersRecord.java | 234 +++++++++++ .../database/tables/records/GamesRecord.java | 314 ++++++++++++++ .../database/tables/records/PollsRecord.java | 58 +-- ...oreRecord.java => RankBenefitsRecord.java} | 62 +-- .../records/TournamentLeaderboardRecord.java | 354 ++++++++++++++++ 25 files changed, 1502 insertions(+), 1104 deletions(-) delete mode 100644 Plugins/Mineplex.Database/src/mineplex/database/tables/AccountIgnore.java delete mode 100644 Plugins/Mineplex.Database/src/mineplex/database/tables/ClanEnemies.java create mode 100644 Plugins/Mineplex.Database/src/mineplex/database/tables/GamePlayers.java create mode 100644 Plugins/Mineplex.Database/src/mineplex/database/tables/Games.java create mode 100644 Plugins/Mineplex.Database/src/mineplex/database/tables/RankBenefits.java create mode 100644 Plugins/Mineplex.Database/src/mineplex/database/tables/TournamentLeaderboard.java delete mode 100644 Plugins/Mineplex.Database/src/mineplex/database/tables/records/ClanEnemiesRecord.java create mode 100644 Plugins/Mineplex.Database/src/mineplex/database/tables/records/GamePlayersRecord.java create mode 100644 Plugins/Mineplex.Database/src/mineplex/database/tables/records/GamesRecord.java rename Plugins/Mineplex.Database/src/mineplex/database/tables/records/{AccountIgnoreRecord.java => RankBenefitsRecord.java} (57%) create mode 100644 Plugins/Mineplex.Database/src/mineplex/database/tables/records/TournamentLeaderboardRecord.java diff --git a/Plugins/.idea/misc.xml b/Plugins/.idea/misc.xml index 6bb2e45e4..76fba6e9f 100644 --- a/Plugins/.idea/misc.xml +++ b/Plugins/.idea/misc.xml @@ -10,7 +10,4 @@ - - - \ No newline at end of file diff --git a/Plugins/Mineplex.Core/src/mineplex/core/MiniPlugin.java b/Plugins/Mineplex.Core/src/mineplex/core/MiniPlugin.java index e63d27f42..a4a146700 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/MiniPlugin.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/MiniPlugin.java @@ -105,17 +105,17 @@ public abstract class MiniPlugin implements Listener System.out.println(F.main(_moduleName, message)); } - public void runAsync(Runnable runnable) + protected void runAsync(Runnable runnable) { _plugin.getServer().getScheduler().runTaskAsynchronously(_plugin, runnable); } - public void runSync(Runnable runnable) + protected void runSync(Runnable runnable) { _plugin.getServer().getScheduler().runTask(_plugin, runnable); } - public void runSyncLater(Runnable runnable, long delay) + protected void runSyncLater(Runnable runnable, long delay) { _plugin.getServer().getScheduler().runTaskLater(_plugin, runnable, delay); } diff --git a/Plugins/Mineplex.Database/src/mineplex/database/Account.java b/Plugins/Mineplex.Database/src/mineplex/database/Account.java index cf38679ab..0cecaba81 100644 --- a/Plugins/Mineplex.Database/src/mineplex/database/Account.java +++ b/Plugins/Mineplex.Database/src/mineplex/database/Account.java @@ -11,7 +11,7 @@ package mineplex.database; @java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class Account extends org.jooq.impl.SchemaImpl implements java.io.Serializable, java.lang.Cloneable { - private static final long serialVersionUID = 714632936; + private static final long serialVersionUID = 1260689680; /** * The singleton instance of Account @@ -38,28 +38,30 @@ public class Account extends org.jooq.impl.SchemaImpl implements java.io.Seriali mineplex.database.tables.AccountCoinTransactions.accountCoinTransactions, mineplex.database.tables.AccountFriend.accountFriend, mineplex.database.tables.AccountGemTransactions.accountGemTransactions, - mineplex.database.tables.AccountIgnore.accountIgnore, mineplex.database.tables.AccountInventory.accountInventory, mineplex.database.tables.AccountPolls.accountPolls, mineplex.database.tables.AccountPreferences.accountPreferences, mineplex.database.tables.Accounts.accounts, mineplex.database.tables.AccountStats.accountStats, mineplex.database.tables.ClanAlliances.clanAlliances, - mineplex.database.tables.ClanEnemies.clanEnemies, mineplex.database.tables.Clans.clans, mineplex.database.tables.ClanTerritory.clanTerritory, mineplex.database.tables.EloRating.eloRating, mineplex.database.tables.FieldBlock.fieldBlock, mineplex.database.tables.FieldMonster.fieldMonster, mineplex.database.tables.FieldOre.fieldOre, + mineplex.database.tables.GamePlayers.gamePlayers, + mineplex.database.tables.Games.games, mineplex.database.tables.ItemCategories.itemCategories, mineplex.database.tables.Items.items, mineplex.database.tables.Mail.mail, mineplex.database.tables.Npcs.npcs, mineplex.database.tables.PlayerMap.playerMap, mineplex.database.tables.Polls.polls, + mineplex.database.tables.RankBenefits.rankBenefits, mineplex.database.tables.ServerPassword.serverPassword, mineplex.database.tables.Spawns.spawns, - mineplex.database.tables.Stats.stats); + mineplex.database.tables.Stats.stats, + mineplex.database.tables.TournamentLeaderboard.tournamentLeaderboard); } } diff --git a/Plugins/Mineplex.Database/src/mineplex/database/Keys.java b/Plugins/Mineplex.Database/src/mineplex/database/Keys.java index b83e34a9e..786311960 100644 --- a/Plugins/Mineplex.Database/src/mineplex/database/Keys.java +++ b/Plugins/Mineplex.Database/src/mineplex/database/Keys.java @@ -22,29 +22,31 @@ public class Keys { public static final org.jooq.Identity IDENTITY_accountCoinTransactions = Identities0.IDENTITY_accountCoinTransactions; public static final org.jooq.Identity IDENTITY_accountFriend = Identities0.IDENTITY_accountFriend; public static final org.jooq.Identity IDENTITY_accountGemTransactions = Identities0.IDENTITY_accountGemTransactions; - public static final org.jooq.Identity IDENTITY_accountIgnore = Identities0.IDENTITY_accountIgnore; public static final org.jooq.Identity IDENTITY_accountInventory = Identities0.IDENTITY_accountInventory; public static final org.jooq.Identity IDENTITY_accountPolls = Identities0.IDENTITY_accountPolls; public static final org.jooq.Identity IDENTITY_accountPreferences = Identities0.IDENTITY_accountPreferences; public static final org.jooq.Identity IDENTITY_accounts = Identities0.IDENTITY_accounts; public static final org.jooq.Identity IDENTITY_accountStats = Identities0.IDENTITY_accountStats; public static final org.jooq.Identity IDENTITY_clanAlliances = Identities0.IDENTITY_clanAlliances; - public static final org.jooq.Identity IDENTITY_clanEnemies = Identities0.IDENTITY_clanEnemies; public static final org.jooq.Identity IDENTITY_clans = Identities0.IDENTITY_clans; public static final org.jooq.Identity IDENTITY_clanTerritory = Identities0.IDENTITY_clanTerritory; public static final org.jooq.Identity IDENTITY_eloRating = Identities0.IDENTITY_eloRating; public static final org.jooq.Identity IDENTITY_fieldBlock = Identities0.IDENTITY_fieldBlock; public static final org.jooq.Identity IDENTITY_fieldMonster = Identities0.IDENTITY_fieldMonster; public static final org.jooq.Identity IDENTITY_fieldOre = Identities0.IDENTITY_fieldOre; + public static final org.jooq.Identity IDENTITY_gamePlayers = Identities0.IDENTITY_gamePlayers; + public static final org.jooq.Identity IDENTITY_games = Identities0.IDENTITY_games; public static final org.jooq.Identity IDENTITY_itemCategories = Identities0.IDENTITY_itemCategories; public static final org.jooq.Identity IDENTITY_items = Identities0.IDENTITY_items; public static final org.jooq.Identity IDENTITY_mail = Identities0.IDENTITY_mail; public static final org.jooq.Identity IDENTITY_npcs = Identities0.IDENTITY_npcs; public static final org.jooq.Identity IDENTITY_playerMap = Identities0.IDENTITY_playerMap; public static final org.jooq.Identity IDENTITY_polls = Identities0.IDENTITY_polls; + public static final org.jooq.Identity IDENTITY_rankBenefits = Identities0.IDENTITY_rankBenefits; public static final org.jooq.Identity IDENTITY_serverPassword = Identities0.IDENTITY_serverPassword; public static final org.jooq.Identity IDENTITY_spawns = Identities0.IDENTITY_spawns; public static final org.jooq.Identity IDENTITY_stats = Identities0.IDENTITY_stats; + public static final org.jooq.Identity IDENTITY_tournamentLeaderboard = Identities0.IDENTITY_tournamentLeaderboard; // ------------------------------------------------------------------------- // UNIQUE and PRIMARY KEY definitions @@ -55,7 +57,6 @@ public class Keys { public static final org.jooq.UniqueKey KEY_accountFriend_PRIMARY = UniqueKeys0.KEY_accountFriend_PRIMARY; public static final org.jooq.UniqueKey KEY_accountFriend_uuidIndex = UniqueKeys0.KEY_accountFriend_uuidIndex; public static final org.jooq.UniqueKey KEY_accountGemTransactions_PRIMARY = UniqueKeys0.KEY_accountGemTransactions_PRIMARY; - public static final org.jooq.UniqueKey KEY_accountIgnore_PRIMARY = UniqueKeys0.KEY_accountIgnore_PRIMARY; public static final org.jooq.UniqueKey KEY_accountInventory_PRIMARY = UniqueKeys0.KEY_accountInventory_PRIMARY; public static final org.jooq.UniqueKey KEY_accountInventory_accountItemIndex = UniqueKeys0.KEY_accountInventory_accountItemIndex; public static final org.jooq.UniqueKey KEY_accountPolls_PRIMARY = UniqueKeys0.KEY_accountPolls_PRIMARY; @@ -65,10 +66,8 @@ public class Keys { public static final org.jooq.UniqueKey KEY_accounts_PRIMARY = UniqueKeys0.KEY_accounts_PRIMARY; public static final org.jooq.UniqueKey KEY_accounts_uuidIndex = UniqueKeys0.KEY_accounts_uuidIndex; public static final org.jooq.UniqueKey KEY_accountStats_PRIMARY = UniqueKeys0.KEY_accountStats_PRIMARY; + public static final org.jooq.UniqueKey KEY_accountStats_accountStatIndex = UniqueKeys0.KEY_accountStats_accountStatIndex; public static final org.jooq.UniqueKey KEY_clanAlliances_PRIMARY = UniqueKeys0.KEY_clanAlliances_PRIMARY; - public static final org.jooq.UniqueKey KEY_clanEnemies_PRIMARY = UniqueKeys0.KEY_clanEnemies_PRIMARY; - public static final org.jooq.UniqueKey KEY_clanEnemies_unique_clanId = UniqueKeys0.KEY_clanEnemies_unique_clanId; - public static final org.jooq.UniqueKey KEY_clanEnemies_unique_otherClanId = UniqueKeys0.KEY_clanEnemies_unique_otherClanId; public static final org.jooq.UniqueKey KEY_clans_PRIMARY = UniqueKeys0.KEY_clans_PRIMARY; public static final org.jooq.UniqueKey KEY_clanTerritory_PRIMARY = UniqueKeys0.KEY_clanTerritory_PRIMARY; public static final org.jooq.UniqueKey KEY_eloRating_PRIMARY = UniqueKeys0.KEY_eloRating_PRIMARY; @@ -76,6 +75,8 @@ public class Keys { public static final org.jooq.UniqueKey KEY_fieldBlock_PRIMARY = UniqueKeys0.KEY_fieldBlock_PRIMARY; public static final org.jooq.UniqueKey KEY_fieldMonster_PRIMARY = UniqueKeys0.KEY_fieldMonster_PRIMARY; public static final org.jooq.UniqueKey KEY_fieldOre_PRIMARY = UniqueKeys0.KEY_fieldOre_PRIMARY; + public static final org.jooq.UniqueKey KEY_gamePlayers_PRIMARY = UniqueKeys0.KEY_gamePlayers_PRIMARY; + public static final org.jooq.UniqueKey KEY_games_PRIMARY = UniqueKeys0.KEY_games_PRIMARY; public static final org.jooq.UniqueKey KEY_itemCategories_PRIMARY = UniqueKeys0.KEY_itemCategories_PRIMARY; public static final org.jooq.UniqueKey KEY_itemCategories_nameIndex = UniqueKeys0.KEY_itemCategories_nameIndex; public static final org.jooq.UniqueKey KEY_items_PRIMARY = UniqueKeys0.KEY_items_PRIMARY; @@ -85,10 +86,13 @@ public class Keys { public static final org.jooq.UniqueKey KEY_playerMap_PRIMARY = UniqueKeys0.KEY_playerMap_PRIMARY; public static final org.jooq.UniqueKey KEY_playerMap_playerIndex = UniqueKeys0.KEY_playerMap_playerIndex; public static final org.jooq.UniqueKey KEY_polls_PRIMARY = UniqueKeys0.KEY_polls_PRIMARY; + public static final org.jooq.UniqueKey KEY_rankBenefits_PRIMARY = UniqueKeys0.KEY_rankBenefits_PRIMARY; public static final org.jooq.UniqueKey KEY_serverPassword_PRIMARY = UniqueKeys0.KEY_serverPassword_PRIMARY; public static final org.jooq.UniqueKey KEY_spawns_PRIMARY = UniqueKeys0.KEY_spawns_PRIMARY; public static final org.jooq.UniqueKey KEY_stats_PRIMARY = UniqueKeys0.KEY_stats_PRIMARY; public static final org.jooq.UniqueKey KEY_stats_nameIndex = UniqueKeys0.KEY_stats_nameIndex; + public static final org.jooq.UniqueKey KEY_tournamentLeaderboard_PRIMARY = UniqueKeys0.KEY_tournamentLeaderboard_PRIMARY; + public static final org.jooq.UniqueKey KEY_tournamentLeaderboard_leaderboard_account_game_UNIQUE = UniqueKeys0.KEY_tournamentLeaderboard_leaderboard_account_game_UNIQUE; // ------------------------------------------------------------------------- // FOREIGN KEY definitions @@ -106,11 +110,12 @@ public class Keys { public static final org.jooq.ForeignKey accountStats_ibfk_2 = ForeignKeys0.accountStats_ibfk_2; public static final org.jooq.ForeignKey clanAlliances_ibfk_2 = ForeignKeys0.clanAlliances_ibfk_2; public static final org.jooq.ForeignKey clanAlliances_ibfk_1 = ForeignKeys0.clanAlliances_ibfk_1; - public static final org.jooq.ForeignKey clanEnemies_ibfk_1 = ForeignKeys0.clanEnemies_ibfk_1; - public static final org.jooq.ForeignKey clanEnemies_ibfk_2 = ForeignKeys0.clanEnemies_ibfk_2; public static final org.jooq.ForeignKey clanTerritory_ibfk_1 = ForeignKeys0.clanTerritory_ibfk_1; + public static final org.jooq.ForeignKey FK_gamePlayers_games = ForeignKeys0.FK_gamePlayers_games; + public static final org.jooq.ForeignKey FK_gamePlayers_accounts = ForeignKeys0.FK_gamePlayers_accounts; public static final org.jooq.ForeignKey items_ibfk_1 = ForeignKeys0.items_ibfk_1; public static final org.jooq.ForeignKey mail_ibfk_1 = ForeignKeys0.mail_ibfk_1; + public static final org.jooq.ForeignKey FK_tournamentLeaderboard_accounts = ForeignKeys0.FK_tournamentLeaderboard_accounts; // ------------------------------------------------------------------------- // [#1459] distribute members to avoid static initialisers > 64kb @@ -121,29 +126,31 @@ public class Keys { public static org.jooq.Identity IDENTITY_accountCoinTransactions = createIdentity(mineplex.database.tables.AccountCoinTransactions.accountCoinTransactions, mineplex.database.tables.AccountCoinTransactions.accountCoinTransactions.id); public static org.jooq.Identity IDENTITY_accountFriend = createIdentity(mineplex.database.tables.AccountFriend.accountFriend, mineplex.database.tables.AccountFriend.accountFriend.id); public static org.jooq.Identity IDENTITY_accountGemTransactions = createIdentity(mineplex.database.tables.AccountGemTransactions.accountGemTransactions, mineplex.database.tables.AccountGemTransactions.accountGemTransactions.id); - public static org.jooq.Identity IDENTITY_accountIgnore = createIdentity(mineplex.database.tables.AccountIgnore.accountIgnore, mineplex.database.tables.AccountIgnore.accountIgnore.id); public static org.jooq.Identity IDENTITY_accountInventory = createIdentity(mineplex.database.tables.AccountInventory.accountInventory, mineplex.database.tables.AccountInventory.accountInventory.id); public static org.jooq.Identity IDENTITY_accountPolls = createIdentity(mineplex.database.tables.AccountPolls.accountPolls, mineplex.database.tables.AccountPolls.accountPolls.id); public static org.jooq.Identity IDENTITY_accountPreferences = createIdentity(mineplex.database.tables.AccountPreferences.accountPreferences, mineplex.database.tables.AccountPreferences.accountPreferences.id); public static org.jooq.Identity IDENTITY_accounts = createIdentity(mineplex.database.tables.Accounts.accounts, mineplex.database.tables.Accounts.accounts.id); public static org.jooq.Identity IDENTITY_accountStats = createIdentity(mineplex.database.tables.AccountStats.accountStats, mineplex.database.tables.AccountStats.accountStats.id); public static org.jooq.Identity IDENTITY_clanAlliances = createIdentity(mineplex.database.tables.ClanAlliances.clanAlliances, mineplex.database.tables.ClanAlliances.clanAlliances.id); - public static org.jooq.Identity IDENTITY_clanEnemies = createIdentity(mineplex.database.tables.ClanEnemies.clanEnemies, mineplex.database.tables.ClanEnemies.clanEnemies.id); public static org.jooq.Identity IDENTITY_clans = createIdentity(mineplex.database.tables.Clans.clans, mineplex.database.tables.Clans.clans.id); public static org.jooq.Identity IDENTITY_clanTerritory = createIdentity(mineplex.database.tables.ClanTerritory.clanTerritory, mineplex.database.tables.ClanTerritory.clanTerritory.id); public static org.jooq.Identity IDENTITY_eloRating = createIdentity(mineplex.database.tables.EloRating.eloRating, mineplex.database.tables.EloRating.eloRating.id); public static org.jooq.Identity IDENTITY_fieldBlock = createIdentity(mineplex.database.tables.FieldBlock.fieldBlock, mineplex.database.tables.FieldBlock.fieldBlock.id); public static org.jooq.Identity IDENTITY_fieldMonster = createIdentity(mineplex.database.tables.FieldMonster.fieldMonster, mineplex.database.tables.FieldMonster.fieldMonster.id); public static org.jooq.Identity IDENTITY_fieldOre = createIdentity(mineplex.database.tables.FieldOre.fieldOre, mineplex.database.tables.FieldOre.fieldOre.id); + public static org.jooq.Identity IDENTITY_gamePlayers = createIdentity(mineplex.database.tables.GamePlayers.gamePlayers, mineplex.database.tables.GamePlayers.gamePlayers.id); + public static org.jooq.Identity IDENTITY_games = createIdentity(mineplex.database.tables.Games.games, mineplex.database.tables.Games.games.id); public static org.jooq.Identity IDENTITY_itemCategories = createIdentity(mineplex.database.tables.ItemCategories.itemCategories, mineplex.database.tables.ItemCategories.itemCategories.id); public static org.jooq.Identity IDENTITY_items = createIdentity(mineplex.database.tables.Items.items, mineplex.database.tables.Items.items.id); public static org.jooq.Identity IDENTITY_mail = createIdentity(mineplex.database.tables.Mail.mail, mineplex.database.tables.Mail.mail.id); public static org.jooq.Identity IDENTITY_npcs = createIdentity(mineplex.database.tables.Npcs.npcs, mineplex.database.tables.Npcs.npcs.id); public static org.jooq.Identity IDENTITY_playerMap = createIdentity(mineplex.database.tables.PlayerMap.playerMap, mineplex.database.tables.PlayerMap.playerMap.id); public static org.jooq.Identity IDENTITY_polls = createIdentity(mineplex.database.tables.Polls.polls, mineplex.database.tables.Polls.polls.id); + public static org.jooq.Identity IDENTITY_rankBenefits = createIdentity(mineplex.database.tables.RankBenefits.rankBenefits, mineplex.database.tables.RankBenefits.rankBenefits.id); public static org.jooq.Identity IDENTITY_serverPassword = createIdentity(mineplex.database.tables.ServerPassword.serverPassword, mineplex.database.tables.ServerPassword.serverPassword.id); public static org.jooq.Identity IDENTITY_spawns = createIdentity(mineplex.database.tables.Spawns.spawns, mineplex.database.tables.Spawns.spawns.id); public static org.jooq.Identity IDENTITY_stats = createIdentity(mineplex.database.tables.Stats.stats, mineplex.database.tables.Stats.stats.id); + public static org.jooq.Identity IDENTITY_tournamentLeaderboard = createIdentity(mineplex.database.tables.TournamentLeaderboard.tournamentLeaderboard, mineplex.database.tables.TournamentLeaderboard.tournamentLeaderboard.id); } private static class UniqueKeys0 extends org.jooq.impl.AbstractKeys { @@ -152,7 +159,6 @@ public class Keys { public static final org.jooq.UniqueKey KEY_accountFriend_PRIMARY = createUniqueKey(mineplex.database.tables.AccountFriend.accountFriend, mineplex.database.tables.AccountFriend.accountFriend.id); public static final org.jooq.UniqueKey KEY_accountFriend_uuidIndex = createUniqueKey(mineplex.database.tables.AccountFriend.accountFriend, mineplex.database.tables.AccountFriend.accountFriend.uuidSource, mineplex.database.tables.AccountFriend.accountFriend.uuidTarget); public static final org.jooq.UniqueKey KEY_accountGemTransactions_PRIMARY = createUniqueKey(mineplex.database.tables.AccountGemTransactions.accountGemTransactions, mineplex.database.tables.AccountGemTransactions.accountGemTransactions.id); - public static final org.jooq.UniqueKey KEY_accountIgnore_PRIMARY = createUniqueKey(mineplex.database.tables.AccountIgnore.accountIgnore, mineplex.database.tables.AccountIgnore.accountIgnore.id); public static final org.jooq.UniqueKey KEY_accountInventory_PRIMARY = createUniqueKey(mineplex.database.tables.AccountInventory.accountInventory, mineplex.database.tables.AccountInventory.accountInventory.id); public static final org.jooq.UniqueKey KEY_accountInventory_accountItemIndex = createUniqueKey(mineplex.database.tables.AccountInventory.accountInventory, mineplex.database.tables.AccountInventory.accountInventory.accountId, mineplex.database.tables.AccountInventory.accountInventory.itemId); public static final org.jooq.UniqueKey KEY_accountPolls_PRIMARY = createUniqueKey(mineplex.database.tables.AccountPolls.accountPolls, mineplex.database.tables.AccountPolls.accountPolls.id); @@ -162,10 +168,8 @@ public class Keys { public static final org.jooq.UniqueKey KEY_accounts_PRIMARY = createUniqueKey(mineplex.database.tables.Accounts.accounts, mineplex.database.tables.Accounts.accounts.id); public static final org.jooq.UniqueKey KEY_accounts_uuidIndex = createUniqueKey(mineplex.database.tables.Accounts.accounts, mineplex.database.tables.Accounts.accounts.uuid); public static final org.jooq.UniqueKey KEY_accountStats_PRIMARY = createUniqueKey(mineplex.database.tables.AccountStats.accountStats, mineplex.database.tables.AccountStats.accountStats.id); + public static final org.jooq.UniqueKey KEY_accountStats_accountStatIndex = createUniqueKey(mineplex.database.tables.AccountStats.accountStats, mineplex.database.tables.AccountStats.accountStats.accountId, mineplex.database.tables.AccountStats.accountStats.statId); public static final org.jooq.UniqueKey KEY_clanAlliances_PRIMARY = createUniqueKey(mineplex.database.tables.ClanAlliances.clanAlliances, mineplex.database.tables.ClanAlliances.clanAlliances.id); - public static final org.jooq.UniqueKey KEY_clanEnemies_PRIMARY = createUniqueKey(mineplex.database.tables.ClanEnemies.clanEnemies, mineplex.database.tables.ClanEnemies.clanEnemies.id); - public static final org.jooq.UniqueKey KEY_clanEnemies_unique_clanId = createUniqueKey(mineplex.database.tables.ClanEnemies.clanEnemies, mineplex.database.tables.ClanEnemies.clanEnemies.clanId); - public static final org.jooq.UniqueKey KEY_clanEnemies_unique_otherClanId = createUniqueKey(mineplex.database.tables.ClanEnemies.clanEnemies, mineplex.database.tables.ClanEnemies.clanEnemies.otherClanId); public static final org.jooq.UniqueKey KEY_clans_PRIMARY = createUniqueKey(mineplex.database.tables.Clans.clans, mineplex.database.tables.Clans.clans.id); public static final org.jooq.UniqueKey KEY_clanTerritory_PRIMARY = createUniqueKey(mineplex.database.tables.ClanTerritory.clanTerritory, mineplex.database.tables.ClanTerritory.clanTerritory.id); public static final org.jooq.UniqueKey KEY_eloRating_PRIMARY = createUniqueKey(mineplex.database.tables.EloRating.eloRating, mineplex.database.tables.EloRating.eloRating.id); @@ -173,6 +177,8 @@ public class Keys { public static final org.jooq.UniqueKey KEY_fieldBlock_PRIMARY = createUniqueKey(mineplex.database.tables.FieldBlock.fieldBlock, mineplex.database.tables.FieldBlock.fieldBlock.id); public static final org.jooq.UniqueKey KEY_fieldMonster_PRIMARY = createUniqueKey(mineplex.database.tables.FieldMonster.fieldMonster, mineplex.database.tables.FieldMonster.fieldMonster.id); public static final org.jooq.UniqueKey KEY_fieldOre_PRIMARY = createUniqueKey(mineplex.database.tables.FieldOre.fieldOre, mineplex.database.tables.FieldOre.fieldOre.id); + public static final org.jooq.UniqueKey KEY_gamePlayers_PRIMARY = createUniqueKey(mineplex.database.tables.GamePlayers.gamePlayers, mineplex.database.tables.GamePlayers.gamePlayers.id); + public static final org.jooq.UniqueKey KEY_games_PRIMARY = createUniqueKey(mineplex.database.tables.Games.games, mineplex.database.tables.Games.games.id); public static final org.jooq.UniqueKey KEY_itemCategories_PRIMARY = createUniqueKey(mineplex.database.tables.ItemCategories.itemCategories, mineplex.database.tables.ItemCategories.itemCategories.id); public static final org.jooq.UniqueKey KEY_itemCategories_nameIndex = createUniqueKey(mineplex.database.tables.ItemCategories.itemCategories, mineplex.database.tables.ItemCategories.itemCategories.name); public static final org.jooq.UniqueKey KEY_items_PRIMARY = createUniqueKey(mineplex.database.tables.Items.items, mineplex.database.tables.Items.items.id); @@ -182,10 +188,13 @@ public class Keys { public static final org.jooq.UniqueKey KEY_playerMap_PRIMARY = createUniqueKey(mineplex.database.tables.PlayerMap.playerMap, mineplex.database.tables.PlayerMap.playerMap.id); public static final org.jooq.UniqueKey KEY_playerMap_playerIndex = createUniqueKey(mineplex.database.tables.PlayerMap.playerMap, mineplex.database.tables.PlayerMap.playerMap.playerName); public static final org.jooq.UniqueKey KEY_polls_PRIMARY = createUniqueKey(mineplex.database.tables.Polls.polls, mineplex.database.tables.Polls.polls.id); + public static final org.jooq.UniqueKey KEY_rankBenefits_PRIMARY = createUniqueKey(mineplex.database.tables.RankBenefits.rankBenefits, mineplex.database.tables.RankBenefits.rankBenefits.id); public static final org.jooq.UniqueKey KEY_serverPassword_PRIMARY = createUniqueKey(mineplex.database.tables.ServerPassword.serverPassword, mineplex.database.tables.ServerPassword.serverPassword.id); public static final org.jooq.UniqueKey KEY_spawns_PRIMARY = createUniqueKey(mineplex.database.tables.Spawns.spawns, mineplex.database.tables.Spawns.spawns.id); public static final org.jooq.UniqueKey KEY_stats_PRIMARY = createUniqueKey(mineplex.database.tables.Stats.stats, mineplex.database.tables.Stats.stats.id); public static final org.jooq.UniqueKey KEY_stats_nameIndex = createUniqueKey(mineplex.database.tables.Stats.stats, mineplex.database.tables.Stats.stats.name); + public static final org.jooq.UniqueKey KEY_tournamentLeaderboard_PRIMARY = createUniqueKey(mineplex.database.tables.TournamentLeaderboard.tournamentLeaderboard, mineplex.database.tables.TournamentLeaderboard.tournamentLeaderboard.id); + public static final org.jooq.UniqueKey KEY_tournamentLeaderboard_leaderboard_account_game_UNIQUE = createUniqueKey(mineplex.database.tables.TournamentLeaderboard.tournamentLeaderboard, mineplex.database.tables.TournamentLeaderboard.tournamentLeaderboard.gameId, mineplex.database.tables.TournamentLeaderboard.tournamentLeaderboard.accountId, mineplex.database.tables.TournamentLeaderboard.tournamentLeaderboard.tournamentId); } private static class ForeignKeys0 extends org.jooq.impl.AbstractKeys { @@ -201,10 +210,11 @@ public class Keys { public static final org.jooq.ForeignKey accountStats_ibfk_2 = createForeignKey(mineplex.database.Keys.KEY_stats_PRIMARY, mineplex.database.tables.AccountStats.accountStats, mineplex.database.tables.AccountStats.accountStats.statId); public static final org.jooq.ForeignKey clanAlliances_ibfk_2 = createForeignKey(mineplex.database.Keys.KEY_clans_PRIMARY, mineplex.database.tables.ClanAlliances.clanAlliances, mineplex.database.tables.ClanAlliances.clanAlliances.clanId); public static final org.jooq.ForeignKey clanAlliances_ibfk_1 = createForeignKey(mineplex.database.Keys.KEY_clans_PRIMARY, mineplex.database.tables.ClanAlliances.clanAlliances, mineplex.database.tables.ClanAlliances.clanAlliances.otherClanId); - public static final org.jooq.ForeignKey clanEnemies_ibfk_1 = createForeignKey(mineplex.database.Keys.KEY_clans_PRIMARY, mineplex.database.tables.ClanEnemies.clanEnemies, mineplex.database.tables.ClanEnemies.clanEnemies.clanId); - public static final org.jooq.ForeignKey clanEnemies_ibfk_2 = createForeignKey(mineplex.database.Keys.KEY_clans_PRIMARY, mineplex.database.tables.ClanEnemies.clanEnemies, mineplex.database.tables.ClanEnemies.clanEnemies.otherClanId); public static final org.jooq.ForeignKey clanTerritory_ibfk_1 = createForeignKey(mineplex.database.Keys.KEY_clans_PRIMARY, mineplex.database.tables.ClanTerritory.clanTerritory, mineplex.database.tables.ClanTerritory.clanTerritory.clanId); + public static final org.jooq.ForeignKey FK_gamePlayers_games = createForeignKey(mineplex.database.Keys.KEY_games_PRIMARY, mineplex.database.tables.GamePlayers.gamePlayers, mineplex.database.tables.GamePlayers.gamePlayers.gameId); + public static final org.jooq.ForeignKey FK_gamePlayers_accounts = createForeignKey(mineplex.database.Keys.KEY_accounts_PRIMARY, mineplex.database.tables.GamePlayers.gamePlayers, mineplex.database.tables.GamePlayers.gamePlayers.accountId); public static final org.jooq.ForeignKey items_ibfk_1 = createForeignKey(mineplex.database.Keys.KEY_itemCategories_PRIMARY, mineplex.database.tables.Items.items, mineplex.database.tables.Items.items.categoryId); public static final org.jooq.ForeignKey mail_ibfk_1 = createForeignKey(mineplex.database.Keys.KEY_accounts_PRIMARY, mineplex.database.tables.Mail.mail, mineplex.database.tables.Mail.mail.accountId); + public static final org.jooq.ForeignKey FK_tournamentLeaderboard_accounts = createForeignKey(mineplex.database.Keys.KEY_accounts_PRIMARY, mineplex.database.tables.TournamentLeaderboard.tournamentLeaderboard, mineplex.database.tables.TournamentLeaderboard.tournamentLeaderboard.accountId); } } diff --git a/Plugins/Mineplex.Database/src/mineplex/database/Tables.java b/Plugins/Mineplex.Database/src/mineplex/database/Tables.java index 71464d8fb..7bf5beedd 100644 --- a/Plugins/Mineplex.Database/src/mineplex/database/Tables.java +++ b/Plugins/Mineplex.Database/src/mineplex/database/Tables.java @@ -33,11 +33,6 @@ public class Tables { */ public static final mineplex.database.tables.AccountGemTransactions accountGemTransactions = mineplex.database.tables.AccountGemTransactions.accountGemTransactions; - /** - * The table Account.accountIgnore - */ - public static final mineplex.database.tables.AccountIgnore accountIgnore = mineplex.database.tables.AccountIgnore.accountIgnore; - /** * The table Account.accountInventory */ @@ -68,11 +63,6 @@ public class Tables { */ public static final mineplex.database.tables.ClanAlliances clanAlliances = mineplex.database.tables.ClanAlliances.clanAlliances; - /** - * The table Account.clanEnemies - */ - public static final mineplex.database.tables.ClanEnemies clanEnemies = mineplex.database.tables.ClanEnemies.clanEnemies; - /** * The table Account.clans */ @@ -103,6 +93,16 @@ public class Tables { */ public static final mineplex.database.tables.FieldOre fieldOre = mineplex.database.tables.FieldOre.fieldOre; + /** + * The table Account.gamePlayers + */ + public static final mineplex.database.tables.GamePlayers gamePlayers = mineplex.database.tables.GamePlayers.gamePlayers; + + /** + * The table Account.games + */ + public static final mineplex.database.tables.Games games = mineplex.database.tables.Games.games; + /** * The table Account.itemCategories */ @@ -133,6 +133,11 @@ public class Tables { */ public static final mineplex.database.tables.Polls polls = mineplex.database.tables.Polls.polls; + /** + * The table Account.rankBenefits + */ + public static final mineplex.database.tables.RankBenefits rankBenefits = mineplex.database.tables.RankBenefits.rankBenefits; + /** * The table Account.serverPassword */ @@ -147,4 +152,9 @@ public class Tables { * The table Account.stats */ public static final mineplex.database.tables.Stats stats = mineplex.database.tables.Stats.stats; + + /** + * The table Account.tournamentLeaderboard + */ + public static final mineplex.database.tables.TournamentLeaderboard tournamentLeaderboard = mineplex.database.tables.TournamentLeaderboard.tournamentLeaderboard; } diff --git a/Plugins/Mineplex.Database/src/mineplex/database/tables/AccountFriend.java b/Plugins/Mineplex.Database/src/mineplex/database/tables/AccountFriend.java index 607e7f71b..329321c4c 100644 --- a/Plugins/Mineplex.Database/src/mineplex/database/tables/AccountFriend.java +++ b/Plugins/Mineplex.Database/src/mineplex/database/tables/AccountFriend.java @@ -11,7 +11,7 @@ package mineplex.database.tables; @java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class AccountFriend extends org.jooq.impl.TableImpl implements java.io.Serializable, java.lang.Cloneable { - private static final long serialVersionUID = 352928426; + private static final long serialVersionUID = -547231162; /** * The singleton instance of Account.accountFriend @@ -46,11 +46,6 @@ public class AccountFriend extends org.jooq.impl.TableImpl status = createField("status", org.jooq.impl.SQLDataType.VARCHAR.length(100), this, ""); - /** - * The column Account.accountFriend.created. - */ - public final org.jooq.TableField created = createField("created", org.jooq.impl.SQLDataType.TIMESTAMP, this, ""); - /** * Create a Account.accountFriend table reference */ diff --git a/Plugins/Mineplex.Database/src/mineplex/database/tables/AccountIgnore.java b/Plugins/Mineplex.Database/src/mineplex/database/tables/AccountIgnore.java deleted file mode 100644 index 502b9dcc2..000000000 --- a/Plugins/Mineplex.Database/src/mineplex/database/tables/AccountIgnore.java +++ /dev/null @@ -1,104 +0,0 @@ -/** - * This class is generated by jOOQ - */ -package mineplex.database.tables; - -/** - * This class is generated by jOOQ. - */ -@javax.annotation.Generated(value = { "http://www.jooq.org", "3.4.2" }, - comments = "This class is generated by jOOQ") -@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class AccountIgnore extends org.jooq.impl.TableImpl implements java.io.Serializable, java.lang.Cloneable { - - private static final long serialVersionUID = -2058351482; - - /** - * The singleton instance of Account.accountIgnore - */ - public static final mineplex.database.tables.AccountIgnore accountIgnore = new mineplex.database.tables.AccountIgnore(); - - /** - * The class holding records for this type - */ - @Override - public java.lang.Class getRecordType() { - return mineplex.database.tables.records.AccountIgnoreRecord.class; - } - - /** - * The column Account.accountIgnore.id. - */ - public final org.jooq.TableField id = createField("id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); - - /** - * The column Account.accountIgnore.uuidIgnorer. - */ - public final org.jooq.TableField uuidIgnorer = createField("uuidIgnorer", org.jooq.impl.SQLDataType.VARCHAR.length(100).nullable(false), this, ""); - - /** - * The column Account.accountIgnore.uuidIgnored. - */ - public final org.jooq.TableField uuidIgnored = createField("uuidIgnored", org.jooq.impl.SQLDataType.VARCHAR.length(100).nullable(false), this, ""); - - /** - * Create a Account.accountIgnore table reference - */ - public AccountIgnore() { - this("accountIgnore", null); - } - - /** - * Create an aliased Account.accountIgnore table reference - */ - public AccountIgnore(java.lang.String alias) { - this(alias, mineplex.database.tables.AccountIgnore.accountIgnore); - } - - private AccountIgnore(java.lang.String alias, org.jooq.Table aliased) { - this(alias, aliased, null); - } - - private AccountIgnore(java.lang.String alias, org.jooq.Table aliased, org.jooq.Field[] parameters) { - super(alias, mineplex.database.Account.Account, aliased, parameters, ""); - } - - /** - * {@inheritDoc} - */ - @Override - public org.jooq.Identity getIdentity() { - return mineplex.database.Keys.IDENTITY_accountIgnore; - } - - /** - * {@inheritDoc} - */ - @Override - public org.jooq.UniqueKey getPrimaryKey() { - return mineplex.database.Keys.KEY_accountIgnore_PRIMARY; - } - - /** - * {@inheritDoc} - */ - @Override - public java.util.List> getKeys() { - return java.util.Arrays.>asList(mineplex.database.Keys.KEY_accountIgnore_PRIMARY); - } - - /** - * {@inheritDoc} - */ - @Override - public mineplex.database.tables.AccountIgnore as(java.lang.String alias) { - return new mineplex.database.tables.AccountIgnore(alias, this); - } - - /** - * Rename this table - */ - public mineplex.database.tables.AccountIgnore rename(java.lang.String name) { - return new mineplex.database.tables.AccountIgnore(name, null); - } -} diff --git a/Plugins/Mineplex.Database/src/mineplex/database/tables/AccountPreferences.java b/Plugins/Mineplex.Database/src/mineplex/database/tables/AccountPreferences.java index 57449ffdb..7b5626f48 100644 --- a/Plugins/Mineplex.Database/src/mineplex/database/tables/AccountPreferences.java +++ b/Plugins/Mineplex.Database/src/mineplex/database/tables/AccountPreferences.java @@ -11,7 +11,7 @@ package mineplex.database.tables; @java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class AccountPreferences extends org.jooq.impl.TableImpl implements java.io.Serializable, java.lang.Cloneable { - private static final long serialVersionUID = -1928805550; + private static final long serialVersionUID = -780380646; /** * The singleton instance of Account.accountPreferences @@ -96,31 +96,6 @@ public class AccountPreferences extends org.jooq.impl.TableImpl pendingFriendRequests = createField("pendingFriendRequests", org.jooq.impl.SQLDataType.TINYINT.nullable(false).defaulted(true), this, ""); - /** - * The column Account.accountPreferences.friendDisplayInventoryUI. - */ - public final org.jooq.TableField friendDisplayInventoryUI = createField("friendDisplayInventoryUI", org.jooq.impl.SQLDataType.TINYINT.nullable(false).defaulted(true), this, ""); - - /** - * The column Account.accountPreferences.friendDisplayOnlineStatus. - */ - public final org.jooq.TableField friendDisplayOnlineStatus = createField("friendDisplayOnlineStatus", org.jooq.impl.SQLDataType.TINYINT.nullable(false).defaulted(true), this, ""); - - /** - * The column Account.accountPreferences.friendDisplayServerName. - */ - public final org.jooq.TableField friendDisplayServerName = createField("friendDisplayServerName", org.jooq.impl.SQLDataType.TINYINT.nullable(false).defaulted(true), this, ""); - - /** - * The column Account.accountPreferences.friendAllowRequests. - */ - public final org.jooq.TableField friendAllowRequests = createField("friendAllowRequests", org.jooq.impl.SQLDataType.TINYINT.nullable(false).defaulted(true), this, ""); - - /** - * The column Account.accountPreferences.friendAllowMessaging. - */ - public final org.jooq.TableField friendAllowMessaging = createField("friendAllowMessaging", org.jooq.impl.SQLDataType.TINYINT.nullable(false).defaulted(true), this, ""); - /** * Create a Account.accountPreferences table reference */ diff --git a/Plugins/Mineplex.Database/src/mineplex/database/tables/AccountStats.java b/Plugins/Mineplex.Database/src/mineplex/database/tables/AccountStats.java index d80b684e8..0fca60eba 100644 --- a/Plugins/Mineplex.Database/src/mineplex/database/tables/AccountStats.java +++ b/Plugins/Mineplex.Database/src/mineplex/database/tables/AccountStats.java @@ -11,7 +11,7 @@ package mineplex.database.tables; @java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class AccountStats extends org.jooq.impl.TableImpl implements java.io.Serializable, java.lang.Cloneable { - private static final long serialVersionUID = 106411637; + private static final long serialVersionUID = 1274526646; /** * The singleton instance of Account.accountStats @@ -89,7 +89,7 @@ public class AccountStats extends org.jooq.impl.TableImpl> getKeys() { - return java.util.Arrays.>asList(mineplex.database.Keys.KEY_accountStats_PRIMARY); + return java.util.Arrays.>asList(mineplex.database.Keys.KEY_accountStats_PRIMARY, mineplex.database.Keys.KEY_accountStats_accountStatIndex); } /** diff --git a/Plugins/Mineplex.Database/src/mineplex/database/tables/ClanEnemies.java b/Plugins/Mineplex.Database/src/mineplex/database/tables/ClanEnemies.java deleted file mode 100644 index 00baba562..000000000 --- a/Plugins/Mineplex.Database/src/mineplex/database/tables/ClanEnemies.java +++ /dev/null @@ -1,137 +0,0 @@ -/** - * This class is generated by jOOQ - */ -package mineplex.database.tables; - -/** - * This class is generated by jOOQ. - */ -@javax.annotation.Generated(value = { "http://www.jooq.org", "3.4.2" }, - comments = "This class is generated by jOOQ") -@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class ClanEnemies extends org.jooq.impl.TableImpl implements java.io.Serializable, java.lang.Cloneable { - - private static final long serialVersionUID = 183853911; - - /** - * The singleton instance of Account.clanEnemies - */ - public static final mineplex.database.tables.ClanEnemies clanEnemies = new mineplex.database.tables.ClanEnemies(); - - /** - * The class holding records for this type - */ - @Override - public java.lang.Class getRecordType() { - return mineplex.database.tables.records.ClanEnemiesRecord.class; - } - - /** - * The column Account.clanEnemies.id. - */ - public final org.jooq.TableField id = createField("id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); - - /** - * The column Account.clanEnemies.clanId. - */ - public final org.jooq.TableField clanId = createField("clanId", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); - - /** - * The column Account.clanEnemies.otherClanId. - */ - public final org.jooq.TableField otherClanId = createField("otherClanId", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); - - /** - * The column Account.clanEnemies.timeFormed. - */ - public final org.jooq.TableField timeFormed = createField("timeFormed", org.jooq.impl.SQLDataType.TIMESTAMP.nullable(false).defaulted(true), this, ""); - - /** - * The column Account.clanEnemies.clanScore. - */ - public final org.jooq.TableField clanScore = createField("clanScore", org.jooq.impl.SQLDataType.INTEGER.defaulted(true), this, ""); - - /** - * The column Account.clanEnemies.otherClanScore. - */ - public final org.jooq.TableField otherClanScore = createField("otherClanScore", org.jooq.impl.SQLDataType.INTEGER.defaulted(true), this, ""); - - /** - * The column Account.clanEnemies.clanKills. - */ - public final org.jooq.TableField clanKills = createField("clanKills", org.jooq.impl.SQLDataType.INTEGER.nullable(false).defaulted(true), this, ""); - - /** - * The column Account.clanEnemies.otherClanKills. - */ - public final org.jooq.TableField otherClanKills = createField("otherClanKills", org.jooq.impl.SQLDataType.INTEGER.defaulted(true), this, ""); - - /** - * Create a Account.clanEnemies table reference - */ - public ClanEnemies() { - this("clanEnemies", null); - } - - /** - * Create an aliased Account.clanEnemies table reference - */ - public ClanEnemies(java.lang.String alias) { - this(alias, mineplex.database.tables.ClanEnemies.clanEnemies); - } - - private ClanEnemies(java.lang.String alias, org.jooq.Table aliased) { - this(alias, aliased, null); - } - - private ClanEnemies(java.lang.String alias, org.jooq.Table aliased, org.jooq.Field[] parameters) { - super(alias, mineplex.database.Account.Account, aliased, parameters, ""); - } - - /** - * {@inheritDoc} - */ - @Override - public org.jooq.Identity getIdentity() { - return mineplex.database.Keys.IDENTITY_clanEnemies; - } - - /** - * {@inheritDoc} - */ - @Override - public org.jooq.UniqueKey getPrimaryKey() { - return mineplex.database.Keys.KEY_clanEnemies_PRIMARY; - } - - /** - * {@inheritDoc} - */ - @Override - public java.util.List> getKeys() { - return java.util.Arrays.>asList(mineplex.database.Keys.KEY_clanEnemies_PRIMARY, mineplex.database.Keys.KEY_clanEnemies_unique_clanId, mineplex.database.Keys.KEY_clanEnemies_unique_otherClanId); - } - - /** - * {@inheritDoc} - */ - @Override - public java.util.List> getReferences() { - return java.util.Arrays.>asList(mineplex.database.Keys.clanEnemies_ibfk_1, mineplex.database.Keys.clanEnemies_ibfk_2); - } - - /** - * {@inheritDoc} - */ - @Override - public mineplex.database.tables.ClanEnemies as(java.lang.String alias) { - return new mineplex.database.tables.ClanEnemies(alias, this); - } - - /** - * Rename this table - */ - public mineplex.database.tables.ClanEnemies rename(java.lang.String name) { - return new mineplex.database.tables.ClanEnemies(name, null); - } -} diff --git a/Plugins/Mineplex.Database/src/mineplex/database/tables/Clans.java b/Plugins/Mineplex.Database/src/mineplex/database/tables/Clans.java index 53c473a5b..e1ee62d0a 100644 --- a/Plugins/Mineplex.Database/src/mineplex/database/tables/Clans.java +++ b/Plugins/Mineplex.Database/src/mineplex/database/tables/Clans.java @@ -11,7 +11,7 @@ package mineplex.database.tables; @java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class Clans extends org.jooq.impl.TableImpl implements java.io.Serializable, java.lang.Cloneable { - private static final long serialVersionUID = -43600905; + private static final long serialVersionUID = 1832873693; /** * The singleton instance of Account.clans @@ -66,11 +66,6 @@ public class Clans extends org.jooq.impl.TableImpl lastOnline = createField("lastOnline", org.jooq.impl.SQLDataType.CLOB.length(16777215), this, ""); - /** - * The column Account.clans.energy. - */ - public final org.jooq.TableField energy = createField("energy", org.jooq.impl.SQLDataType.INTEGER.nullable(false).defaulted(true), this, ""); - /** * Create a Account.clans table reference */ diff --git a/Plugins/Mineplex.Database/src/mineplex/database/tables/GamePlayers.java b/Plugins/Mineplex.Database/src/mineplex/database/tables/GamePlayers.java new file mode 100644 index 000000000..b28cb171e --- /dev/null +++ b/Plugins/Mineplex.Database/src/mineplex/database/tables/GamePlayers.java @@ -0,0 +1,117 @@ +/** + * This class is generated by jOOQ + */ +package mineplex.database.tables; + +/** + * This class is generated by jOOQ. + */ +@javax.annotation.Generated(value = { "http://www.jooq.org", "3.4.2" }, + comments = "This class is generated by jOOQ") +@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class GamePlayers extends org.jooq.impl.TableImpl implements java.io.Serializable, java.lang.Cloneable { + + private static final long serialVersionUID = -1111536573; + + /** + * The singleton instance of Account.gamePlayers + */ + public static final mineplex.database.tables.GamePlayers gamePlayers = new mineplex.database.tables.GamePlayers(); + + /** + * The class holding records for this type + */ + @Override + public java.lang.Class getRecordType() { + return mineplex.database.tables.records.GamePlayersRecord.class; + } + + /** + * The column Account.gamePlayers.id. + */ + public final org.jooq.TableField id = createField("id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); + + /** + * The column Account.gamePlayers.gameId. + */ + public final org.jooq.TableField gameId = createField("gameId", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); + + /** + * The column Account.gamePlayers.accountId. + */ + public final org.jooq.TableField accountId = createField("accountId", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); + + /** + * The column Account.gamePlayers.winner. + */ + public final org.jooq.TableField winner = createField("winner", org.jooq.impl.SQLDataType.BIT.nullable(false).defaulted(true), this, ""); + + /** + * Create a Account.gamePlayers table reference + */ + public GamePlayers() { + this("gamePlayers", null); + } + + /** + * Create an aliased Account.gamePlayers table reference + */ + public GamePlayers(java.lang.String alias) { + this(alias, mineplex.database.tables.GamePlayers.gamePlayers); + } + + private GamePlayers(java.lang.String alias, org.jooq.Table aliased) { + this(alias, aliased, null); + } + + private GamePlayers(java.lang.String alias, org.jooq.Table aliased, org.jooq.Field[] parameters) { + super(alias, mineplex.database.Account.Account, aliased, parameters, ""); + } + + /** + * {@inheritDoc} + */ + @Override + public org.jooq.Identity getIdentity() { + return mineplex.database.Keys.IDENTITY_gamePlayers; + } + + /** + * {@inheritDoc} + */ + @Override + public org.jooq.UniqueKey getPrimaryKey() { + return mineplex.database.Keys.KEY_gamePlayers_PRIMARY; + } + + /** + * {@inheritDoc} + */ + @Override + public java.util.List> getKeys() { + return java.util.Arrays.>asList(mineplex.database.Keys.KEY_gamePlayers_PRIMARY); + } + + /** + * {@inheritDoc} + */ + @Override + public java.util.List> getReferences() { + return java.util.Arrays.>asList(mineplex.database.Keys.FK_gamePlayers_games, mineplex.database.Keys.FK_gamePlayers_accounts); + } + + /** + * {@inheritDoc} + */ + @Override + public mineplex.database.tables.GamePlayers as(java.lang.String alias) { + return new mineplex.database.tables.GamePlayers(alias, this); + } + + /** + * Rename this table + */ + public mineplex.database.tables.GamePlayers rename(java.lang.String name) { + return new mineplex.database.tables.GamePlayers(name, null); + } +} diff --git a/Plugins/Mineplex.Database/src/mineplex/database/tables/Games.java b/Plugins/Mineplex.Database/src/mineplex/database/tables/Games.java new file mode 100644 index 000000000..24aafc9f0 --- /dev/null +++ b/Plugins/Mineplex.Database/src/mineplex/database/tables/Games.java @@ -0,0 +1,119 @@ +/** + * This class is generated by jOOQ + */ +package mineplex.database.tables; + +/** + * This class is generated by jOOQ. + */ +@javax.annotation.Generated(value = { "http://www.jooq.org", "3.4.2" }, + comments = "This class is generated by jOOQ") +@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class Games extends org.jooq.impl.TableImpl implements java.io.Serializable, java.lang.Cloneable { + + private static final long serialVersionUID = 768428281; + + /** + * The singleton instance of Account.games + */ + public static final mineplex.database.tables.Games games = new mineplex.database.tables.Games(); + + /** + * The class holding records for this type + */ + @Override + public java.lang.Class getRecordType() { + return mineplex.database.tables.records.GamesRecord.class; + } + + /** + * The column Account.games.id. + */ + public final org.jooq.TableField id = createField("id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); + + /** + * The column Account.games.tournament. + */ + public final org.jooq.TableField tournament = createField("tournament", org.jooq.impl.SQLDataType.BIT.nullable(false).defaulted(true), this, ""); + + /** + * The column Account.games.server. + */ + public final org.jooq.TableField server = createField("server", org.jooq.impl.SQLDataType.VARCHAR.length(50), this, ""); + + /** + * The column Account.games.type. + */ + public final org.jooq.TableField type = createField("type", org.jooq.impl.SQLDataType.VARCHAR.length(50).nullable(false), this, ""); + + /** + * The column Account.games.date. + */ + public final org.jooq.TableField date = createField("date", org.jooq.impl.SQLDataType.TIMESTAMP.nullable(false).defaulted(true), this, ""); + + /** + * The column Account.games.duration. + */ + public final org.jooq.TableField duration = createField("duration", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); + + /** + * Create a Account.games table reference + */ + public Games() { + this("games", null); + } + + /** + * Create an aliased Account.games table reference + */ + public Games(java.lang.String alias) { + this(alias, mineplex.database.tables.Games.games); + } + + private Games(java.lang.String alias, org.jooq.Table aliased) { + this(alias, aliased, null); + } + + private Games(java.lang.String alias, org.jooq.Table aliased, org.jooq.Field[] parameters) { + super(alias, mineplex.database.Account.Account, aliased, parameters, ""); + } + + /** + * {@inheritDoc} + */ + @Override + public org.jooq.Identity getIdentity() { + return mineplex.database.Keys.IDENTITY_games; + } + + /** + * {@inheritDoc} + */ + @Override + public org.jooq.UniqueKey getPrimaryKey() { + return mineplex.database.Keys.KEY_games_PRIMARY; + } + + /** + * {@inheritDoc} + */ + @Override + public java.util.List> getKeys() { + return java.util.Arrays.>asList(mineplex.database.Keys.KEY_games_PRIMARY); + } + + /** + * {@inheritDoc} + */ + @Override + public mineplex.database.tables.Games as(java.lang.String alias) { + return new mineplex.database.tables.Games(alias, this); + } + + /** + * Rename this table + */ + public mineplex.database.tables.Games rename(java.lang.String name) { + return new mineplex.database.tables.Games(name, null); + } +} diff --git a/Plugins/Mineplex.Database/src/mineplex/database/tables/Polls.java b/Plugins/Mineplex.Database/src/mineplex/database/tables/Polls.java index 81b827fbf..89758835e 100644 --- a/Plugins/Mineplex.Database/src/mineplex/database/tables/Polls.java +++ b/Plugins/Mineplex.Database/src/mineplex/database/tables/Polls.java @@ -11,7 +11,7 @@ package mineplex.database.tables; @java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class Polls extends org.jooq.impl.TableImpl implements java.io.Serializable, java.lang.Cloneable { - private static final long serialVersionUID = -982689785; + private static final long serialVersionUID = -1491741595; /** * The singleton instance of Account.polls @@ -66,11 +66,6 @@ public class Polls extends org.jooq.impl.TableImpl coinReward = createField("coinReward", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); - /** - * The column Account.polls.displayType. - */ - public final org.jooq.TableField displayType = createField("displayType", org.jooq.impl.SQLDataType.INTEGER.nullable(false).defaulted(true), this, ""); - /** * Create a Account.polls table reference */ diff --git a/Plugins/Mineplex.Database/src/mineplex/database/tables/RankBenefits.java b/Plugins/Mineplex.Database/src/mineplex/database/tables/RankBenefits.java new file mode 100644 index 000000000..07824b748 --- /dev/null +++ b/Plugins/Mineplex.Database/src/mineplex/database/tables/RankBenefits.java @@ -0,0 +1,104 @@ +/** + * This class is generated by jOOQ + */ +package mineplex.database.tables; + +/** + * This class is generated by jOOQ. + */ +@javax.annotation.Generated(value = { "http://www.jooq.org", "3.4.2" }, + comments = "This class is generated by jOOQ") +@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class RankBenefits extends org.jooq.impl.TableImpl implements java.io.Serializable, java.lang.Cloneable { + + private static final long serialVersionUID = 2056156128; + + /** + * The singleton instance of Account.rankBenefits + */ + public static final mineplex.database.tables.RankBenefits rankBenefits = new mineplex.database.tables.RankBenefits(); + + /** + * The class holding records for this type + */ + @Override + public java.lang.Class getRecordType() { + return mineplex.database.tables.records.RankBenefitsRecord.class; + } + + /** + * The column Account.rankBenefits.id. + */ + public final org.jooq.TableField id = createField("id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); + + /** + * The column Account.rankBenefits.uuid. + */ + public final org.jooq.TableField uuid = createField("uuid", org.jooq.impl.SQLDataType.VARCHAR.length(100), this, ""); + + /** + * The column Account.rankBenefits.benefit. + */ + public final org.jooq.TableField benefit = createField("benefit", org.jooq.impl.SQLDataType.VARCHAR.length(100), this, ""); + + /** + * Create a Account.rankBenefits table reference + */ + public RankBenefits() { + this("rankBenefits", null); + } + + /** + * Create an aliased Account.rankBenefits table reference + */ + public RankBenefits(java.lang.String alias) { + this(alias, mineplex.database.tables.RankBenefits.rankBenefits); + } + + private RankBenefits(java.lang.String alias, org.jooq.Table aliased) { + this(alias, aliased, null); + } + + private RankBenefits(java.lang.String alias, org.jooq.Table aliased, org.jooq.Field[] parameters) { + super(alias, mineplex.database.Account.Account, aliased, parameters, ""); + } + + /** + * {@inheritDoc} + */ + @Override + public org.jooq.Identity getIdentity() { + return mineplex.database.Keys.IDENTITY_rankBenefits; + } + + /** + * {@inheritDoc} + */ + @Override + public org.jooq.UniqueKey getPrimaryKey() { + return mineplex.database.Keys.KEY_rankBenefits_PRIMARY; + } + + /** + * {@inheritDoc} + */ + @Override + public java.util.List> getKeys() { + return java.util.Arrays.>asList(mineplex.database.Keys.KEY_rankBenefits_PRIMARY); + } + + /** + * {@inheritDoc} + */ + @Override + public mineplex.database.tables.RankBenefits as(java.lang.String alias) { + return new mineplex.database.tables.RankBenefits(alias, this); + } + + /** + * Rename this table + */ + public mineplex.database.tables.RankBenefits rename(java.lang.String name) { + return new mineplex.database.tables.RankBenefits(name, null); + } +} diff --git a/Plugins/Mineplex.Database/src/mineplex/database/tables/TournamentLeaderboard.java b/Plugins/Mineplex.Database/src/mineplex/database/tables/TournamentLeaderboard.java new file mode 100644 index 000000000..ca0d71ac6 --- /dev/null +++ b/Plugins/Mineplex.Database/src/mineplex/database/tables/TournamentLeaderboard.java @@ -0,0 +1,132 @@ +/** + * This class is generated by jOOQ + */ +package mineplex.database.tables; + +/** + * This class is generated by jOOQ. + */ +@javax.annotation.Generated(value = { "http://www.jooq.org", "3.4.2" }, + comments = "This class is generated by jOOQ") +@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class TournamentLeaderboard extends org.jooq.impl.TableImpl implements java.io.Serializable, java.lang.Cloneable { + + private static final long serialVersionUID = 1975537325; + + /** + * The singleton instance of Account.tournamentLeaderboard + */ + public static final mineplex.database.tables.TournamentLeaderboard tournamentLeaderboard = new mineplex.database.tables.TournamentLeaderboard(); + + /** + * The class holding records for this type + */ + @Override + public java.lang.Class getRecordType() { + return mineplex.database.tables.records.TournamentLeaderboardRecord.class; + } + + /** + * The column Account.tournamentLeaderboard.id. + */ + public final org.jooq.TableField id = createField("id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); + + /** + * The column Account.tournamentLeaderboard.tournamentId. + */ + public final org.jooq.TableField tournamentId = createField("tournamentId", org.jooq.impl.SQLDataType.INTEGER.nullable(false).defaulted(true), this, ""); + + /** + * The column Account.tournamentLeaderboard.accountId. + */ + public final org.jooq.TableField accountId = createField("accountId", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); + + /** + * The column Account.tournamentLeaderboard.gameId. + */ + public final org.jooq.TableField gameId = createField("gameId", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); + + /** + * The column Account.tournamentLeaderboard.wins. + */ + public final org.jooq.TableField wins = createField("wins", org.jooq.impl.SQLDataType.INTEGER.nullable(false).defaulted(true), this, ""); + + /** + * The column Account.tournamentLeaderboard.total. + */ + public final org.jooq.TableField total = createField("total", org.jooq.impl.SQLDataType.INTEGER.nullable(false).defaulted(true), this, ""); + + /** + * The column Account.tournamentLeaderboard.score. + */ + public final org.jooq.TableField score = createField("score", org.jooq.impl.SQLDataType.DOUBLE, this, ""); + + /** + * Create a Account.tournamentLeaderboard table reference + */ + public TournamentLeaderboard() { + this("tournamentLeaderboard", null); + } + + /** + * Create an aliased Account.tournamentLeaderboard table reference + */ + public TournamentLeaderboard(java.lang.String alias) { + this(alias, mineplex.database.tables.TournamentLeaderboard.tournamentLeaderboard); + } + + private TournamentLeaderboard(java.lang.String alias, org.jooq.Table aliased) { + this(alias, aliased, null); + } + + private TournamentLeaderboard(java.lang.String alias, org.jooq.Table aliased, org.jooq.Field[] parameters) { + super(alias, mineplex.database.Account.Account, aliased, parameters, ""); + } + + /** + * {@inheritDoc} + */ + @Override + public org.jooq.Identity getIdentity() { + return mineplex.database.Keys.IDENTITY_tournamentLeaderboard; + } + + /** + * {@inheritDoc} + */ + @Override + public org.jooq.UniqueKey getPrimaryKey() { + return mineplex.database.Keys.KEY_tournamentLeaderboard_PRIMARY; + } + + /** + * {@inheritDoc} + */ + @Override + public java.util.List> getKeys() { + return java.util.Arrays.>asList(mineplex.database.Keys.KEY_tournamentLeaderboard_PRIMARY, mineplex.database.Keys.KEY_tournamentLeaderboard_leaderboard_account_game_UNIQUE); + } + + /** + * {@inheritDoc} + */ + @Override + public java.util.List> getReferences() { + return java.util.Arrays.>asList(mineplex.database.Keys.FK_tournamentLeaderboard_accounts); + } + + /** + * {@inheritDoc} + */ + @Override + public mineplex.database.tables.TournamentLeaderboard as(java.lang.String alias) { + return new mineplex.database.tables.TournamentLeaderboard(alias, this); + } + + /** + * Rename this table + */ + public mineplex.database.tables.TournamentLeaderboard rename(java.lang.String name) { + return new mineplex.database.tables.TournamentLeaderboard(name, null); + } +} diff --git a/Plugins/Mineplex.Database/src/mineplex/database/tables/records/AccountFriendRecord.java b/Plugins/Mineplex.Database/src/mineplex/database/tables/records/AccountFriendRecord.java index 84975f8b4..66785d677 100644 --- a/Plugins/Mineplex.Database/src/mineplex/database/tables/records/AccountFriendRecord.java +++ b/Plugins/Mineplex.Database/src/mineplex/database/tables/records/AccountFriendRecord.java @@ -9,9 +9,9 @@ package mineplex.database.tables.records; @javax.annotation.Generated(value = { "http://www.jooq.org", "3.4.2" }, comments = "This class is generated by jOOQ") @java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class AccountFriendRecord extends org.jooq.impl.UpdatableRecordImpl implements java.io.Serializable, java.lang.Cloneable, org.jooq.Record5 { +public class AccountFriendRecord extends org.jooq.impl.UpdatableRecordImpl implements java.io.Serializable, java.lang.Cloneable, org.jooq.Record4 { - private static final long serialVersionUID = 2059800587; + private static final long serialVersionUID = -1139709892; /** * Setter for Account.accountFriend.id. @@ -69,20 +69,6 @@ public class AccountFriendRecord extends org.jooq.impl.UpdatableRecordImplAccount.accountFriend.created. - */ - public void setCreated(java.sql.Timestamp value) { - setValue(4, value); - } - - /** - * Getter for Account.accountFriend.created. - */ - public java.sql.Timestamp getCreated() { - return (java.sql.Timestamp) getValue(4); - } - // ------------------------------------------------------------------------- // Primary key information // ------------------------------------------------------------------------- @@ -96,23 +82,23 @@ public class AccountFriendRecord extends org.jooq.impl.UpdatableRecordImpl fieldsRow() { - return (org.jooq.Row5) super.fieldsRow(); + public org.jooq.Row4 fieldsRow() { + return (org.jooq.Row4) super.fieldsRow(); } /** * {@inheritDoc} */ @Override - public org.jooq.Row5 valuesRow() { - return (org.jooq.Row5) super.valuesRow(); + public org.jooq.Row4 valuesRow() { + return (org.jooq.Row4) super.valuesRow(); } /** @@ -147,14 +133,6 @@ public class AccountFriendRecord extends org.jooq.impl.UpdatableRecordImpl field5() { - return mineplex.database.tables.AccountFriend.accountFriend.created; - } - /** * {@inheritDoc} */ @@ -187,14 +165,6 @@ public class AccountFriendRecord extends org.jooq.impl.UpdatableRecordImpl implements java.io.Serializable, java.lang.Cloneable, org.jooq.Record19 { +public class AccountPreferencesRecord extends org.jooq.impl.UpdatableRecordImpl implements java.io.Serializable, java.lang.Cloneable, org.jooq.Record14 { - private static final long serialVersionUID = 1008810141; + private static final long serialVersionUID = 1651524548; /** * Setter for Account.accountPreferences.id. @@ -209,76 +209,6 @@ public class AccountPreferencesRecord extends org.jooq.impl.UpdatableRecordImpl< return (java.lang.Byte) getValue(13); } - /** - * Setter for Account.accountPreferences.friendDisplayInventoryUI. - */ - public void setFriendDisplayInventoryUI(java.lang.Byte value) { - setValue(14, value); - } - - /** - * Getter for Account.accountPreferences.friendDisplayInventoryUI. - */ - public java.lang.Byte getFriendDisplayInventoryUI() { - return (java.lang.Byte) getValue(14); - } - - /** - * Setter for Account.accountPreferences.friendDisplayOnlineStatus. - */ - public void setFriendDisplayOnlineStatus(java.lang.Byte value) { - setValue(15, value); - } - - /** - * Getter for Account.accountPreferences.friendDisplayOnlineStatus. - */ - public java.lang.Byte getFriendDisplayOnlineStatus() { - return (java.lang.Byte) getValue(15); - } - - /** - * Setter for Account.accountPreferences.friendDisplayServerName. - */ - public void setFriendDisplayServerName(java.lang.Byte value) { - setValue(16, value); - } - - /** - * Getter for Account.accountPreferences.friendDisplayServerName. - */ - public java.lang.Byte getFriendDisplayServerName() { - return (java.lang.Byte) getValue(16); - } - - /** - * Setter for Account.accountPreferences.friendAllowRequests. - */ - public void setFriendAllowRequests(java.lang.Byte value) { - setValue(17, value); - } - - /** - * Getter for Account.accountPreferences.friendAllowRequests. - */ - public java.lang.Byte getFriendAllowRequests() { - return (java.lang.Byte) getValue(17); - } - - /** - * Setter for Account.accountPreferences.friendAllowMessaging. - */ - public void setFriendAllowMessaging(java.lang.Byte value) { - setValue(18, value); - } - - /** - * Getter for Account.accountPreferences.friendAllowMessaging. - */ - public java.lang.Byte getFriendAllowMessaging() { - return (java.lang.Byte) getValue(18); - } - // ------------------------------------------------------------------------- // Primary key information // ------------------------------------------------------------------------- @@ -292,23 +222,23 @@ public class AccountPreferencesRecord extends org.jooq.impl.UpdatableRecordImpl< } // ------------------------------------------------------------------------- - // Record19 type implementation + // Record14 type implementation // ------------------------------------------------------------------------- /** * {@inheritDoc} */ @Override - public org.jooq.Row19 fieldsRow() { - return (org.jooq.Row19) super.fieldsRow(); + public org.jooq.Row14 fieldsRow() { + return (org.jooq.Row14) super.fieldsRow(); } /** * {@inheritDoc} */ @Override - public org.jooq.Row19 valuesRow() { - return (org.jooq.Row19) super.valuesRow(); + public org.jooq.Row14 valuesRow() { + return (org.jooq.Row14) super.valuesRow(); } /** @@ -423,46 +353,6 @@ public class AccountPreferencesRecord extends org.jooq.impl.UpdatableRecordImpl< return mineplex.database.tables.AccountPreferences.accountPreferences.pendingFriendRequests; } - /** - * {@inheritDoc} - */ - @Override - public org.jooq.Field field15() { - return mineplex.database.tables.AccountPreferences.accountPreferences.friendDisplayInventoryUI; - } - - /** - * {@inheritDoc} - */ - @Override - public org.jooq.Field field16() { - return mineplex.database.tables.AccountPreferences.accountPreferences.friendDisplayOnlineStatus; - } - - /** - * {@inheritDoc} - */ - @Override - public org.jooq.Field field17() { - return mineplex.database.tables.AccountPreferences.accountPreferences.friendDisplayServerName; - } - - /** - * {@inheritDoc} - */ - @Override - public org.jooq.Field field18() { - return mineplex.database.tables.AccountPreferences.accountPreferences.friendAllowRequests; - } - - /** - * {@inheritDoc} - */ - @Override - public org.jooq.Field field19() { - return mineplex.database.tables.AccountPreferences.accountPreferences.friendAllowMessaging; - } - /** * {@inheritDoc} */ @@ -575,46 +465,6 @@ public class AccountPreferencesRecord extends org.jooq.impl.UpdatableRecordImpl< return getPendingFriendRequests(); } - /** - * {@inheritDoc} - */ - @Override - public java.lang.Byte value15() { - return getFriendDisplayInventoryUI(); - } - - /** - * {@inheritDoc} - */ - @Override - public java.lang.Byte value16() { - return getFriendDisplayOnlineStatus(); - } - - /** - * {@inheritDoc} - */ - @Override - public java.lang.Byte value17() { - return getFriendDisplayServerName(); - } - - /** - * {@inheritDoc} - */ - @Override - public java.lang.Byte value18() { - return getFriendAllowRequests(); - } - - /** - * {@inheritDoc} - */ - @Override - public java.lang.Byte value19() { - return getFriendAllowMessaging(); - } - /** * {@inheritDoc} */ @@ -745,52 +595,7 @@ public class AccountPreferencesRecord extends org.jooq.impl.UpdatableRecordImpl< * {@inheritDoc} */ @Override - public AccountPreferencesRecord value15(java.lang.Byte value) { - setFriendDisplayInventoryUI(value); - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public AccountPreferencesRecord value16(java.lang.Byte value) { - setFriendDisplayOnlineStatus(value); - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public AccountPreferencesRecord value17(java.lang.Byte value) { - setFriendDisplayServerName(value); - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public AccountPreferencesRecord value18(java.lang.Byte value) { - setFriendAllowRequests(value); - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public AccountPreferencesRecord value19(java.lang.Byte value) { - setFriendAllowMessaging(value); - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public AccountPreferencesRecord values(java.lang.Integer value1, java.lang.String value2, java.lang.Byte value3, java.lang.Byte value4, java.lang.Byte value5, java.lang.Byte value6, java.lang.Byte value7, java.lang.Byte value8, java.lang.Byte value9, java.lang.Byte value10, java.lang.Byte value11, java.lang.Byte value12, java.lang.Byte value13, java.lang.Byte value14, java.lang.Byte value15, java.lang.Byte value16, java.lang.Byte value17, java.lang.Byte value18, java.lang.Byte value19) { + public AccountPreferencesRecord values(java.lang.Integer value1, java.lang.String value2, java.lang.Byte value3, java.lang.Byte value4, java.lang.Byte value5, java.lang.Byte value6, java.lang.Byte value7, java.lang.Byte value8, java.lang.Byte value9, java.lang.Byte value10, java.lang.Byte value11, java.lang.Byte value12, java.lang.Byte value13, java.lang.Byte value14) { return this; } @@ -808,7 +613,7 @@ public class AccountPreferencesRecord extends org.jooq.impl.UpdatableRecordImpl< /** * Create a detached, initialised AccountPreferencesRecord */ - public AccountPreferencesRecord(java.lang.Integer id, java.lang.String uuid, java.lang.Byte filterChat, java.lang.Byte invisibility, java.lang.Byte games, java.lang.Byte visibility, java.lang.Byte friendChat, java.lang.Byte privateMessaging, java.lang.Byte showChat, java.lang.Byte partyRequests, java.lang.Byte forcefield, java.lang.Byte showMacReports, java.lang.Byte ignoreVelocity, java.lang.Byte pendingFriendRequests, java.lang.Byte friendDisplayInventoryUI, java.lang.Byte friendDisplayOnlineStatus, java.lang.Byte friendDisplayServerName, java.lang.Byte friendAllowRequests, java.lang.Byte friendAllowMessaging) { + public AccountPreferencesRecord(java.lang.Integer id, java.lang.String uuid, java.lang.Byte filterChat, java.lang.Byte invisibility, java.lang.Byte games, java.lang.Byte visibility, java.lang.Byte friendChat, java.lang.Byte privateMessaging, java.lang.Byte showChat, java.lang.Byte partyRequests, java.lang.Byte forcefield, java.lang.Byte showMacReports, java.lang.Byte ignoreVelocity, java.lang.Byte pendingFriendRequests) { super(mineplex.database.tables.AccountPreferences.accountPreferences); setValue(0, id); @@ -825,10 +630,5 @@ public class AccountPreferencesRecord extends org.jooq.impl.UpdatableRecordImpl< setValue(11, showMacReports); setValue(12, ignoreVelocity); setValue(13, pendingFriendRequests); - setValue(14, friendDisplayInventoryUI); - setValue(15, friendDisplayOnlineStatus); - setValue(16, friendDisplayServerName); - setValue(17, friendAllowRequests); - setValue(18, friendAllowMessaging); } } diff --git a/Plugins/Mineplex.Database/src/mineplex/database/tables/records/ClanEnemiesRecord.java b/Plugins/Mineplex.Database/src/mineplex/database/tables/records/ClanEnemiesRecord.java deleted file mode 100644 index 101c7bf51..000000000 --- a/Plugins/Mineplex.Database/src/mineplex/database/tables/records/ClanEnemiesRecord.java +++ /dev/null @@ -1,394 +0,0 @@ -/** - * This class is generated by jOOQ - */ -package mineplex.database.tables.records; - -/** - * This class is generated by jOOQ. - */ -@javax.annotation.Generated(value = { "http://www.jooq.org", "3.4.2" }, - comments = "This class is generated by jOOQ") -@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class ClanEnemiesRecord extends org.jooq.impl.UpdatableRecordImpl implements java.io.Serializable, java.lang.Cloneable, org.jooq.Record8 { - - private static final long serialVersionUID = 907425768; - - /** - * Setter for Account.clanEnemies.id. - */ - public void setId(java.lang.Integer value) { - setValue(0, value); - } - - /** - * Getter for Account.clanEnemies.id. - */ - public java.lang.Integer getId() { - return (java.lang.Integer) getValue(0); - } - - /** - * Setter for Account.clanEnemies.clanId. - */ - public void setClanId(java.lang.Integer value) { - setValue(1, value); - } - - /** - * Getter for Account.clanEnemies.clanId. - */ - public java.lang.Integer getClanId() { - return (java.lang.Integer) getValue(1); - } - - /** - * Setter for Account.clanEnemies.otherClanId. - */ - public void setOtherClanId(java.lang.Integer value) { - setValue(2, value); - } - - /** - * Getter for Account.clanEnemies.otherClanId. - */ - public java.lang.Integer getOtherClanId() { - return (java.lang.Integer) getValue(2); - } - - /** - * Setter for Account.clanEnemies.timeFormed. - */ - public void setTimeFormed(java.sql.Timestamp value) { - setValue(3, value); - } - - /** - * Getter for Account.clanEnemies.timeFormed. - */ - public java.sql.Timestamp getTimeFormed() { - return (java.sql.Timestamp) getValue(3); - } - - /** - * Setter for Account.clanEnemies.clanScore. - */ - public void setClanScore(java.lang.Integer value) { - setValue(4, value); - } - - /** - * Getter for Account.clanEnemies.clanScore. - */ - public java.lang.Integer getClanScore() { - return (java.lang.Integer) getValue(4); - } - - /** - * Setter for Account.clanEnemies.otherClanScore. - */ - public void setOtherClanScore(java.lang.Integer value) { - setValue(5, value); - } - - /** - * Getter for Account.clanEnemies.otherClanScore. - */ - public java.lang.Integer getOtherClanScore() { - return (java.lang.Integer) getValue(5); - } - - /** - * Setter for Account.clanEnemies.clanKills. - */ - public void setClanKills(java.lang.Integer value) { - setValue(6, value); - } - - /** - * Getter for Account.clanEnemies.clanKills. - */ - public java.lang.Integer getClanKills() { - return (java.lang.Integer) getValue(6); - } - - /** - * Setter for Account.clanEnemies.otherClanKills. - */ - public void setOtherClanKills(java.lang.Integer value) { - setValue(7, value); - } - - /** - * Getter for Account.clanEnemies.otherClanKills. - */ - public java.lang.Integer getOtherClanKills() { - return (java.lang.Integer) getValue(7); - } - - // ------------------------------------------------------------------------- - // Primary key information - // ------------------------------------------------------------------------- - - /** - * {@inheritDoc} - */ - @Override - public org.jooq.Record1 key() { - return (org.jooq.Record1) super.key(); - } - - // ------------------------------------------------------------------------- - // Record8 type implementation - // ------------------------------------------------------------------------- - - /** - * {@inheritDoc} - */ - @Override - public org.jooq.Row8 fieldsRow() { - return (org.jooq.Row8) super.fieldsRow(); - } - - /** - * {@inheritDoc} - */ - @Override - public org.jooq.Row8 valuesRow() { - return (org.jooq.Row8) super.valuesRow(); - } - - /** - * {@inheritDoc} - */ - @Override - public org.jooq.Field field1() { - return mineplex.database.tables.ClanEnemies.clanEnemies.id; - } - - /** - * {@inheritDoc} - */ - @Override - public org.jooq.Field field2() { - return mineplex.database.tables.ClanEnemies.clanEnemies.clanId; - } - - /** - * {@inheritDoc} - */ - @Override - public org.jooq.Field field3() { - return mineplex.database.tables.ClanEnemies.clanEnemies.otherClanId; - } - - /** - * {@inheritDoc} - */ - @Override - public org.jooq.Field field4() { - return mineplex.database.tables.ClanEnemies.clanEnemies.timeFormed; - } - - /** - * {@inheritDoc} - */ - @Override - public org.jooq.Field field5() { - return mineplex.database.tables.ClanEnemies.clanEnemies.clanScore; - } - - /** - * {@inheritDoc} - */ - @Override - public org.jooq.Field field6() { - return mineplex.database.tables.ClanEnemies.clanEnemies.otherClanScore; - } - - /** - * {@inheritDoc} - */ - @Override - public org.jooq.Field field7() { - return mineplex.database.tables.ClanEnemies.clanEnemies.clanKills; - } - - /** - * {@inheritDoc} - */ - @Override - public org.jooq.Field field8() { - return mineplex.database.tables.ClanEnemies.clanEnemies.otherClanKills; - } - - /** - * {@inheritDoc} - */ - @Override - public java.lang.Integer value1() { - return getId(); - } - - /** - * {@inheritDoc} - */ - @Override - public java.lang.Integer value2() { - return getClanId(); - } - - /** - * {@inheritDoc} - */ - @Override - public java.lang.Integer value3() { - return getOtherClanId(); - } - - /** - * {@inheritDoc} - */ - @Override - public java.sql.Timestamp value4() { - return getTimeFormed(); - } - - /** - * {@inheritDoc} - */ - @Override - public java.lang.Integer value5() { - return getClanScore(); - } - - /** - * {@inheritDoc} - */ - @Override - public java.lang.Integer value6() { - return getOtherClanScore(); - } - - /** - * {@inheritDoc} - */ - @Override - public java.lang.Integer value7() { - return getClanKills(); - } - - /** - * {@inheritDoc} - */ - @Override - public java.lang.Integer value8() { - return getOtherClanKills(); - } - - /** - * {@inheritDoc} - */ - @Override - public ClanEnemiesRecord value1(java.lang.Integer value) { - setId(value); - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public ClanEnemiesRecord value2(java.lang.Integer value) { - setClanId(value); - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public ClanEnemiesRecord value3(java.lang.Integer value) { - setOtherClanId(value); - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public ClanEnemiesRecord value4(java.sql.Timestamp value) { - setTimeFormed(value); - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public ClanEnemiesRecord value5(java.lang.Integer value) { - setClanScore(value); - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public ClanEnemiesRecord value6(java.lang.Integer value) { - setOtherClanScore(value); - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public ClanEnemiesRecord value7(java.lang.Integer value) { - setClanKills(value); - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public ClanEnemiesRecord value8(java.lang.Integer value) { - setOtherClanKills(value); - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public ClanEnemiesRecord values(java.lang.Integer value1, java.lang.Integer value2, java.lang.Integer value3, java.sql.Timestamp value4, java.lang.Integer value5, java.lang.Integer value6, java.lang.Integer value7, java.lang.Integer value8) { - return this; - } - - // ------------------------------------------------------------------------- - // Constructors - // ------------------------------------------------------------------------- - - /** - * Create a detached ClanEnemiesRecord - */ - public ClanEnemiesRecord() { - super(mineplex.database.tables.ClanEnemies.clanEnemies); - } - - /** - * Create a detached, initialised ClanEnemiesRecord - */ - public ClanEnemiesRecord(java.lang.Integer id, java.lang.Integer clanId, java.lang.Integer otherClanId, java.sql.Timestamp timeFormed, java.lang.Integer clanScore, java.lang.Integer otherClanScore, java.lang.Integer clanKills, java.lang.Integer otherClanKills) { - super(mineplex.database.tables.ClanEnemies.clanEnemies); - - setValue(0, id); - setValue(1, clanId); - setValue(2, otherClanId); - setValue(3, timeFormed); - setValue(4, clanScore); - setValue(5, otherClanScore); - setValue(6, clanKills); - setValue(7, otherClanKills); - } -} diff --git a/Plugins/Mineplex.Database/src/mineplex/database/tables/records/ClansRecord.java b/Plugins/Mineplex.Database/src/mineplex/database/tables/records/ClansRecord.java index bf2d233e0..069e2a5eb 100644 --- a/Plugins/Mineplex.Database/src/mineplex/database/tables/records/ClansRecord.java +++ b/Plugins/Mineplex.Database/src/mineplex/database/tables/records/ClansRecord.java @@ -9,9 +9,9 @@ package mineplex.database.tables.records; @javax.annotation.Generated(value = { "http://www.jooq.org", "3.4.2" }, comments = "This class is generated by jOOQ") @java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class ClansRecord extends org.jooq.impl.UpdatableRecordImpl implements java.io.Serializable, java.lang.Cloneable, org.jooq.Record9 { +public class ClansRecord extends org.jooq.impl.UpdatableRecordImpl implements java.io.Serializable, java.lang.Cloneable, org.jooq.Record8 { - private static final long serialVersionUID = 384495650; + private static final long serialVersionUID = 1671341643; /** * Setter for Account.clans.id. @@ -125,20 +125,6 @@ public class ClansRecord extends org.jooq.impl.UpdatableRecordImplAccount.clans.energy. - */ - public void setEnergy(java.lang.Integer value) { - setValue(8, value); - } - - /** - * Getter for Account.clans.energy. - */ - public java.lang.Integer getEnergy() { - return (java.lang.Integer) getValue(8); - } - // ------------------------------------------------------------------------- // Primary key information // ------------------------------------------------------------------------- @@ -152,23 +138,23 @@ public class ClansRecord extends org.jooq.impl.UpdatableRecordImpl fieldsRow() { - return (org.jooq.Row9) super.fieldsRow(); + public org.jooq.Row8 fieldsRow() { + return (org.jooq.Row8) super.fieldsRow(); } /** * {@inheritDoc} */ @Override - public org.jooq.Row9 valuesRow() { - return (org.jooq.Row9) super.valuesRow(); + public org.jooq.Row8 valuesRow() { + return (org.jooq.Row8) super.valuesRow(); } /** @@ -235,14 +221,6 @@ public class ClansRecord extends org.jooq.impl.UpdatableRecordImpl field9() { - return mineplex.database.tables.Clans.clans.energy; - } - /** * {@inheritDoc} */ @@ -307,14 +285,6 @@ public class ClansRecord extends org.jooq.impl.UpdatableRecordImpl implements java.io.Serializable, java.lang.Cloneable, org.jooq.Record4 { + + private static final long serialVersionUID = 441501944; + + /** + * Setter for Account.gamePlayers.id. + */ + public void setId(java.lang.Integer value) { + setValue(0, value); + } + + /** + * Getter for Account.gamePlayers.id. + */ + public java.lang.Integer getId() { + return (java.lang.Integer) getValue(0); + } + + /** + * Setter for Account.gamePlayers.gameId. + */ + public void setGameId(java.lang.Integer value) { + setValue(1, value); + } + + /** + * Getter for Account.gamePlayers.gameId. + */ + public java.lang.Integer getGameId() { + return (java.lang.Integer) getValue(1); + } + + /** + * Setter for Account.gamePlayers.accountId. + */ + public void setAccountId(java.lang.Integer value) { + setValue(2, value); + } + + /** + * Getter for Account.gamePlayers.accountId. + */ + public java.lang.Integer getAccountId() { + return (java.lang.Integer) getValue(2); + } + + /** + * Setter for Account.gamePlayers.winner. + */ + public void setWinner(java.lang.Boolean value) { + setValue(3, value); + } + + /** + * Getter for Account.gamePlayers.winner. + */ + public java.lang.Boolean getWinner() { + return (java.lang.Boolean) getValue(3); + } + + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + /** + * {@inheritDoc} + */ + @Override + public org.jooq.Record1 key() { + return (org.jooq.Record1) super.key(); + } + + // ------------------------------------------------------------------------- + // Record4 type implementation + // ------------------------------------------------------------------------- + + /** + * {@inheritDoc} + */ + @Override + public org.jooq.Row4 fieldsRow() { + return (org.jooq.Row4) super.fieldsRow(); + } + + /** + * {@inheritDoc} + */ + @Override + public org.jooq.Row4 valuesRow() { + return (org.jooq.Row4) super.valuesRow(); + } + + /** + * {@inheritDoc} + */ + @Override + public org.jooq.Field field1() { + return mineplex.database.tables.GamePlayers.gamePlayers.id; + } + + /** + * {@inheritDoc} + */ + @Override + public org.jooq.Field field2() { + return mineplex.database.tables.GamePlayers.gamePlayers.gameId; + } + + /** + * {@inheritDoc} + */ + @Override + public org.jooq.Field field3() { + return mineplex.database.tables.GamePlayers.gamePlayers.accountId; + } + + /** + * {@inheritDoc} + */ + @Override + public org.jooq.Field field4() { + return mineplex.database.tables.GamePlayers.gamePlayers.winner; + } + + /** + * {@inheritDoc} + */ + @Override + public java.lang.Integer value1() { + return getId(); + } + + /** + * {@inheritDoc} + */ + @Override + public java.lang.Integer value2() { + return getGameId(); + } + + /** + * {@inheritDoc} + */ + @Override + public java.lang.Integer value3() { + return getAccountId(); + } + + /** + * {@inheritDoc} + */ + @Override + public java.lang.Boolean value4() { + return getWinner(); + } + + /** + * {@inheritDoc} + */ + @Override + public GamePlayersRecord value1(java.lang.Integer value) { + setId(value); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public GamePlayersRecord value2(java.lang.Integer value) { + setGameId(value); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public GamePlayersRecord value3(java.lang.Integer value) { + setAccountId(value); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public GamePlayersRecord value4(java.lang.Boolean value) { + setWinner(value); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public GamePlayersRecord values(java.lang.Integer value1, java.lang.Integer value2, java.lang.Integer value3, java.lang.Boolean value4) { + return this; + } + + // ------------------------------------------------------------------------- + // Constructors + // ------------------------------------------------------------------------- + + /** + * Create a detached GamePlayersRecord + */ + public GamePlayersRecord() { + super(mineplex.database.tables.GamePlayers.gamePlayers); + } + + /** + * Create a detached, initialised GamePlayersRecord + */ + public GamePlayersRecord(java.lang.Integer id, java.lang.Integer gameId, java.lang.Integer accountId, java.lang.Boolean winner) { + super(mineplex.database.tables.GamePlayers.gamePlayers); + + setValue(0, id); + setValue(1, gameId); + setValue(2, accountId); + setValue(3, winner); + } +} diff --git a/Plugins/Mineplex.Database/src/mineplex/database/tables/records/GamesRecord.java b/Plugins/Mineplex.Database/src/mineplex/database/tables/records/GamesRecord.java new file mode 100644 index 000000000..0011b0c60 --- /dev/null +++ b/Plugins/Mineplex.Database/src/mineplex/database/tables/records/GamesRecord.java @@ -0,0 +1,314 @@ +/** + * This class is generated by jOOQ + */ +package mineplex.database.tables.records; + +/** + * This class is generated by jOOQ. + */ +@javax.annotation.Generated(value = { "http://www.jooq.org", "3.4.2" }, + comments = "This class is generated by jOOQ") +@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" }) +public class GamesRecord extends org.jooq.impl.UpdatableRecordImpl implements java.io.Serializable, java.lang.Cloneable, org.jooq.Record6 { + + private static final long serialVersionUID = -527436190; + + /** + * Setter for Account.games.id. + */ + public void setId(java.lang.Integer value) { + setValue(0, value); + } + + /** + * Getter for Account.games.id. + */ + public java.lang.Integer getId() { + return (java.lang.Integer) getValue(0); + } + + /** + * Setter for Account.games.tournament. + */ + public void setTournament(java.lang.Boolean value) { + setValue(1, value); + } + + /** + * Getter for Account.games.tournament. + */ + public java.lang.Boolean getTournament() { + return (java.lang.Boolean) getValue(1); + } + + /** + * Setter for Account.games.server. + */ + public void setServer(java.lang.String value) { + setValue(2, value); + } + + /** + * Getter for Account.games.server. + */ + public java.lang.String getServer() { + return (java.lang.String) getValue(2); + } + + /** + * Setter for Account.games.type. + */ + public void setType(java.lang.String value) { + setValue(3, value); + } + + /** + * Getter for Account.games.type. + */ + public java.lang.String getType() { + return (java.lang.String) getValue(3); + } + + /** + * Setter for Account.games.date. + */ + public void setDate(java.sql.Timestamp value) { + setValue(4, value); + } + + /** + * Getter for Account.games.date. + */ + public java.sql.Timestamp getDate() { + return (java.sql.Timestamp) getValue(4); + } + + /** + * Setter for Account.games.duration. + */ + public void setDuration(java.lang.Integer value) { + setValue(5, value); + } + + /** + * Getter for Account.games.duration. + */ + public java.lang.Integer getDuration() { + return (java.lang.Integer) getValue(5); + } + + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + /** + * {@inheritDoc} + */ + @Override + public org.jooq.Record1 key() { + return (org.jooq.Record1) super.key(); + } + + // ------------------------------------------------------------------------- + // Record6 type implementation + // ------------------------------------------------------------------------- + + /** + * {@inheritDoc} + */ + @Override + public org.jooq.Row6 fieldsRow() { + return (org.jooq.Row6) super.fieldsRow(); + } + + /** + * {@inheritDoc} + */ + @Override + public org.jooq.Row6 valuesRow() { + return (org.jooq.Row6) super.valuesRow(); + } + + /** + * {@inheritDoc} + */ + @Override + public org.jooq.Field field1() { + return mineplex.database.tables.Games.games.id; + } + + /** + * {@inheritDoc} + */ + @Override + public org.jooq.Field field2() { + return mineplex.database.tables.Games.games.tournament; + } + + /** + * {@inheritDoc} + */ + @Override + public org.jooq.Field field3() { + return mineplex.database.tables.Games.games.server; + } + + /** + * {@inheritDoc} + */ + @Override + public org.jooq.Field field4() { + return mineplex.database.tables.Games.games.type; + } + + /** + * {@inheritDoc} + */ + @Override + public org.jooq.Field field5() { + return mineplex.database.tables.Games.games.date; + } + + /** + * {@inheritDoc} + */ + @Override + public org.jooq.Field field6() { + return mineplex.database.tables.Games.games.duration; + } + + /** + * {@inheritDoc} + */ + @Override + public java.lang.Integer value1() { + return getId(); + } + + /** + * {@inheritDoc} + */ + @Override + public java.lang.Boolean value2() { + return getTournament(); + } + + /** + * {@inheritDoc} + */ + @Override + public java.lang.String value3() { + return getServer(); + } + + /** + * {@inheritDoc} + */ + @Override + public java.lang.String value4() { + return getType(); + } + + /** + * {@inheritDoc} + */ + @Override + public java.sql.Timestamp value5() { + return getDate(); + } + + /** + * {@inheritDoc} + */ + @Override + public java.lang.Integer value6() { + return getDuration(); + } + + /** + * {@inheritDoc} + */ + @Override + public GamesRecord value1(java.lang.Integer value) { + setId(value); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public GamesRecord value2(java.lang.Boolean value) { + setTournament(value); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public GamesRecord value3(java.lang.String value) { + setServer(value); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public GamesRecord value4(java.lang.String value) { + setType(value); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public GamesRecord value5(java.sql.Timestamp value) { + setDate(value); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public GamesRecord value6(java.lang.Integer value) { + setDuration(value); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public GamesRecord values(java.lang.Integer value1, java.lang.Boolean value2, java.lang.String value3, java.lang.String value4, java.sql.Timestamp value5, java.lang.Integer value6) { + return this; + } + + // ------------------------------------------------------------------------- + // Constructors + // ------------------------------------------------------------------------- + + /** + * Create a detached GamesRecord + */ + public GamesRecord() { + super(mineplex.database.tables.Games.games); + } + + /** + * Create a detached, initialised GamesRecord + */ + public GamesRecord(java.lang.Integer id, java.lang.Boolean tournament, java.lang.String server, java.lang.String type, java.sql.Timestamp date, java.lang.Integer duration) { + super(mineplex.database.tables.Games.games); + + setValue(0, id); + setValue(1, tournament); + setValue(2, server); + setValue(3, type); + setValue(4, date); + setValue(5, duration); + } +} diff --git a/Plugins/Mineplex.Database/src/mineplex/database/tables/records/PollsRecord.java b/Plugins/Mineplex.Database/src/mineplex/database/tables/records/PollsRecord.java index cb2288d05..25c8dff2e 100644 --- a/Plugins/Mineplex.Database/src/mineplex/database/tables/records/PollsRecord.java +++ b/Plugins/Mineplex.Database/src/mineplex/database/tables/records/PollsRecord.java @@ -9,9 +9,9 @@ package mineplex.database.tables.records; @javax.annotation.Generated(value = { "http://www.jooq.org", "3.4.2" }, comments = "This class is generated by jOOQ") @java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" }) -public class PollsRecord extends org.jooq.impl.UpdatableRecordImpl implements java.io.Serializable, java.lang.Cloneable, org.jooq.Record9 { +public class PollsRecord extends org.jooq.impl.UpdatableRecordImpl implements java.io.Serializable, java.lang.Cloneable, org.jooq.Record8 { - private static final long serialVersionUID = 291220170; + private static final long serialVersionUID = 267186750; /** * Setter for Account.polls.id. @@ -125,20 +125,6 @@ public class PollsRecord extends org.jooq.impl.UpdatableRecordImplAccount.polls.displayType. - */ - public void setDisplayType(java.lang.Integer value) { - setValue(8, value); - } - - /** - * Getter for Account.polls.displayType. - */ - public java.lang.Integer getDisplayType() { - return (java.lang.Integer) getValue(8); - } - // ------------------------------------------------------------------------- // Primary key information // ------------------------------------------------------------------------- @@ -152,23 +138,23 @@ public class PollsRecord extends org.jooq.impl.UpdatableRecordImpl fieldsRow() { - return (org.jooq.Row9) super.fieldsRow(); + public org.jooq.Row8 fieldsRow() { + return (org.jooq.Row8) super.fieldsRow(); } /** * {@inheritDoc} */ @Override - public org.jooq.Row9 valuesRow() { - return (org.jooq.Row9) super.valuesRow(); + public org.jooq.Row8 valuesRow() { + return (org.jooq.Row8) super.valuesRow(); } /** @@ -235,14 +221,6 @@ public class PollsRecord extends org.jooq.impl.UpdatableRecordImpl field9() { - return mineplex.database.tables.Polls.polls.displayType; - } - /** * {@inheritDoc} */ @@ -307,14 +285,6 @@ public class PollsRecord extends org.jooq.impl.UpdatableRecordImpl implements java.io.Serializable, java.lang.Cloneable, org.jooq.Record3 { +public class RankBenefitsRecord extends org.jooq.impl.UpdatableRecordImpl implements java.io.Serializable, java.lang.Cloneable, org.jooq.Record3 { - private static final long serialVersionUID = -1477786891; + private static final long serialVersionUID = 483537505; /** - * Setter for Account.accountIgnore.id. + * Setter for Account.rankBenefits.id. */ public void setId(java.lang.Integer value) { setValue(0, value); } /** - * Getter for Account.accountIgnore.id. + * Getter for Account.rankBenefits.id. */ public java.lang.Integer getId() { return (java.lang.Integer) getValue(0); } /** - * Setter for Account.accountIgnore.uuidIgnorer. + * Setter for Account.rankBenefits.uuid. */ - public void setUuidIgnorer(java.lang.String value) { + public void setUuid(java.lang.String value) { setValue(1, value); } /** - * Getter for Account.accountIgnore.uuidIgnorer. + * Getter for Account.rankBenefits.uuid. */ - public java.lang.String getUuidIgnorer() { + public java.lang.String getUuid() { return (java.lang.String) getValue(1); } /** - * Setter for Account.accountIgnore.uuidIgnored. + * Setter for Account.rankBenefits.benefit. */ - public void setUuidIgnored(java.lang.String value) { + public void setBenefit(java.lang.String value) { setValue(2, value); } /** - * Getter for Account.accountIgnore.uuidIgnored. + * Getter for Account.rankBenefits.benefit. */ - public java.lang.String getUuidIgnored() { + public java.lang.String getBenefit() { return (java.lang.String) getValue(2); } @@ -92,7 +92,7 @@ public class AccountIgnoreRecord extends org.jooq.impl.UpdatableRecordImpl field1() { - return mineplex.database.tables.AccountIgnore.accountIgnore.id; + return mineplex.database.tables.RankBenefits.rankBenefits.id; } /** @@ -100,7 +100,7 @@ public class AccountIgnoreRecord extends org.jooq.impl.UpdatableRecordImpl field2() { - return mineplex.database.tables.AccountIgnore.accountIgnore.uuidIgnorer; + return mineplex.database.tables.RankBenefits.rankBenefits.uuid; } /** @@ -108,7 +108,7 @@ public class AccountIgnoreRecord extends org.jooq.impl.UpdatableRecordImpl field3() { - return mineplex.database.tables.AccountIgnore.accountIgnore.uuidIgnored; + return mineplex.database.tables.RankBenefits.rankBenefits.benefit; } /** @@ -124,7 +124,7 @@ public class AccountIgnoreRecord extends org.jooq.impl.UpdatableRecordImpl implements java.io.Serializable, java.lang.Cloneable, org.jooq.Record7 { + + private static final long serialVersionUID = -404839324; + + /** + * Setter for Account.tournamentLeaderboard.id. + */ + public void setId(java.lang.Integer value) { + setValue(0, value); + } + + /** + * Getter for Account.tournamentLeaderboard.id. + */ + public java.lang.Integer getId() { + return (java.lang.Integer) getValue(0); + } + + /** + * Setter for Account.tournamentLeaderboard.tournamentId. + */ + public void setTournamentId(java.lang.Integer value) { + setValue(1, value); + } + + /** + * Getter for Account.tournamentLeaderboard.tournamentId. + */ + public java.lang.Integer getTournamentId() { + return (java.lang.Integer) getValue(1); + } + + /** + * Setter for Account.tournamentLeaderboard.accountId. + */ + public void setAccountId(java.lang.Integer value) { + setValue(2, value); + } + + /** + * Getter for Account.tournamentLeaderboard.accountId. + */ + public java.lang.Integer getAccountId() { + return (java.lang.Integer) getValue(2); + } + + /** + * Setter for Account.tournamentLeaderboard.gameId. + */ + public void setGameId(java.lang.Integer value) { + setValue(3, value); + } + + /** + * Getter for Account.tournamentLeaderboard.gameId. + */ + public java.lang.Integer getGameId() { + return (java.lang.Integer) getValue(3); + } + + /** + * Setter for Account.tournamentLeaderboard.wins. + */ + public void setWins(java.lang.Integer value) { + setValue(4, value); + } + + /** + * Getter for Account.tournamentLeaderboard.wins. + */ + public java.lang.Integer getWins() { + return (java.lang.Integer) getValue(4); + } + + /** + * Setter for Account.tournamentLeaderboard.total. + */ + public void setTotal(java.lang.Integer value) { + setValue(5, value); + } + + /** + * Getter for Account.tournamentLeaderboard.total. + */ + public java.lang.Integer getTotal() { + return (java.lang.Integer) getValue(5); + } + + /** + * Setter for Account.tournamentLeaderboard.score. + */ + public void setScore(java.lang.Double value) { + setValue(6, value); + } + + /** + * Getter for Account.tournamentLeaderboard.score. + */ + public java.lang.Double getScore() { + return (java.lang.Double) getValue(6); + } + + // ------------------------------------------------------------------------- + // Primary key information + // ------------------------------------------------------------------------- + + /** + * {@inheritDoc} + */ + @Override + public org.jooq.Record1 key() { + return (org.jooq.Record1) super.key(); + } + + // ------------------------------------------------------------------------- + // Record7 type implementation + // ------------------------------------------------------------------------- + + /** + * {@inheritDoc} + */ + @Override + public org.jooq.Row7 fieldsRow() { + return (org.jooq.Row7) super.fieldsRow(); + } + + /** + * {@inheritDoc} + */ + @Override + public org.jooq.Row7 valuesRow() { + return (org.jooq.Row7) super.valuesRow(); + } + + /** + * {@inheritDoc} + */ + @Override + public org.jooq.Field field1() { + return mineplex.database.tables.TournamentLeaderboard.tournamentLeaderboard.id; + } + + /** + * {@inheritDoc} + */ + @Override + public org.jooq.Field field2() { + return mineplex.database.tables.TournamentLeaderboard.tournamentLeaderboard.tournamentId; + } + + /** + * {@inheritDoc} + */ + @Override + public org.jooq.Field field3() { + return mineplex.database.tables.TournamentLeaderboard.tournamentLeaderboard.accountId; + } + + /** + * {@inheritDoc} + */ + @Override + public org.jooq.Field field4() { + return mineplex.database.tables.TournamentLeaderboard.tournamentLeaderboard.gameId; + } + + /** + * {@inheritDoc} + */ + @Override + public org.jooq.Field field5() { + return mineplex.database.tables.TournamentLeaderboard.tournamentLeaderboard.wins; + } + + /** + * {@inheritDoc} + */ + @Override + public org.jooq.Field field6() { + return mineplex.database.tables.TournamentLeaderboard.tournamentLeaderboard.total; + } + + /** + * {@inheritDoc} + */ + @Override + public org.jooq.Field field7() { + return mineplex.database.tables.TournamentLeaderboard.tournamentLeaderboard.score; + } + + /** + * {@inheritDoc} + */ + @Override + public java.lang.Integer value1() { + return getId(); + } + + /** + * {@inheritDoc} + */ + @Override + public java.lang.Integer value2() { + return getTournamentId(); + } + + /** + * {@inheritDoc} + */ + @Override + public java.lang.Integer value3() { + return getAccountId(); + } + + /** + * {@inheritDoc} + */ + @Override + public java.lang.Integer value4() { + return getGameId(); + } + + /** + * {@inheritDoc} + */ + @Override + public java.lang.Integer value5() { + return getWins(); + } + + /** + * {@inheritDoc} + */ + @Override + public java.lang.Integer value6() { + return getTotal(); + } + + /** + * {@inheritDoc} + */ + @Override + public java.lang.Double value7() { + return getScore(); + } + + /** + * {@inheritDoc} + */ + @Override + public TournamentLeaderboardRecord value1(java.lang.Integer value) { + setId(value); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public TournamentLeaderboardRecord value2(java.lang.Integer value) { + setTournamentId(value); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public TournamentLeaderboardRecord value3(java.lang.Integer value) { + setAccountId(value); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public TournamentLeaderboardRecord value4(java.lang.Integer value) { + setGameId(value); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public TournamentLeaderboardRecord value5(java.lang.Integer value) { + setWins(value); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public TournamentLeaderboardRecord value6(java.lang.Integer value) { + setTotal(value); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public TournamentLeaderboardRecord value7(java.lang.Double value) { + setScore(value); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public TournamentLeaderboardRecord values(java.lang.Integer value1, java.lang.Integer value2, java.lang.Integer value3, java.lang.Integer value4, java.lang.Integer value5, java.lang.Integer value6, java.lang.Double value7) { + return this; + } + + // ------------------------------------------------------------------------- + // Constructors + // ------------------------------------------------------------------------- + + /** + * Create a detached TournamentLeaderboardRecord + */ + public TournamentLeaderboardRecord() { + super(mineplex.database.tables.TournamentLeaderboard.tournamentLeaderboard); + } + + /** + * Create a detached, initialised TournamentLeaderboardRecord + */ + public TournamentLeaderboardRecord(java.lang.Integer id, java.lang.Integer tournamentId, java.lang.Integer accountId, java.lang.Integer gameId, java.lang.Integer wins, java.lang.Integer total, java.lang.Double score) { + super(mineplex.database.tables.TournamentLeaderboard.tournamentLeaderboard); + + setValue(0, id); + setValue(1, tournamentId); + setValue(2, accountId); + setValue(3, gameId); + setValue(4, wins); + setValue(5, total); + setValue(6, score); + } +}