Added database tables to record basic game stats
This commit is contained in:
parent
abea4223ab
commit
1b416d3e6f
@ -1,5 +1,6 @@
|
||||
<component name="ProjectRunConfigurationManager">
|
||||
<configuration default="false" name="Database" type="Application" factoryName="Application" singleton="true">
|
||||
<extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
|
||||
<option name="MAIN_CLASS_NAME" value="org.jooq.util.GenerationTool" />
|
||||
<option name="VM_PARAMETERS" value="" />
|
||||
<option name="PROGRAM_PARAMETERS" value="/jOOQConfig.xml" />
|
||||
|
@ -46,7 +46,7 @@ public class ServerStatusManager extends MiniPlugin
|
||||
if (new File("IgnoreUpdates.dat").exists())
|
||||
_enabled = false;
|
||||
|
||||
ServerListPingEvent event = new ServerListPingEvent(null, plugin.getServer().getMotd(), plugin.getServer().getOnlinePlayers().length, plugin.getServer().getMaxPlayers());
|
||||
ServerListPingEvent event = new ServerListPingEvent(null, plugin.getServer().getMotd(), plugin.getServer().getOnlinePlayers().size(), plugin.getServer().getMaxPlayers());
|
||||
|
||||
GetPluginManager().callEvent(event);
|
||||
|
||||
@ -147,11 +147,11 @@ public class ServerStatusManager extends MiniPlugin
|
||||
*/
|
||||
private MinecraftServer generateServerSnapshot()
|
||||
{
|
||||
ServerListPingEvent event = new ServerListPingEvent(null, GetPlugin().getServer().getMotd(), GetPlugin().getServer().getOnlinePlayers().length, GetPlugin().getServer().getMaxPlayers());
|
||||
ServerListPingEvent event = new ServerListPingEvent(null, GetPlugin().getServer().getMotd(), GetPlugin().getServer().getOnlinePlayers().size(), GetPlugin().getServer().getMaxPlayers());
|
||||
GetPluginManager().callEvent(event);
|
||||
|
||||
String motd = event.getMotd();
|
||||
int playerCount = Bukkit.getOnlinePlayers().length;
|
||||
int playerCount = Bukkit.getOnlinePlayers().size();
|
||||
int maxPlayerCount = event.getMaxPlayers();
|
||||
int tps = (int) _lagMeter.getTicksPerSecond();
|
||||
String address = Bukkit.getServer().getIp().isEmpty() ? "localhost" : Bukkit.getServer().getIp();
|
||||
|
@ -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 = -1898637057;
|
||||
private static final long serialVersionUID = 1728381793;
|
||||
|
||||
/**
|
||||
* The singleton instance of <code>Account</code>
|
||||
@ -40,6 +40,8 @@ public class Account extends org.jooq.impl.SchemaImpl implements java.io.Seriali
|
||||
mineplex.database.tables.AccountPreferences.accountPreferences,
|
||||
mineplex.database.tables.Accounts.accounts,
|
||||
mineplex.database.tables.AccountStats.accountStats,
|
||||
mineplex.database.tables.GamePlayers.gamePlayers,
|
||||
mineplex.database.tables.Games.games,
|
||||
mineplex.database.tables.ItemCategories.itemCategories,
|
||||
mineplex.database.tables.Items.items,
|
||||
mineplex.database.tables.PlayerMap.playerMap,
|
||||
|
@ -24,6 +24,8 @@ public class Keys {
|
||||
public static final org.jooq.Identity<mineplex.database.tables.records.AccountPreferences, java.lang.Integer> IDENTITY_accountPreferences = Identities0.IDENTITY_accountPreferences;
|
||||
public static final org.jooq.Identity<mineplex.database.tables.records.Accounts, java.lang.Integer> IDENTITY_accounts = Identities0.IDENTITY_accounts;
|
||||
public static final org.jooq.Identity<mineplex.database.tables.records.AccountStats, java.lang.Integer> IDENTITY_accountStats = Identities0.IDENTITY_accountStats;
|
||||
public static final org.jooq.Identity<mineplex.database.tables.records.GamePlayers, java.lang.Integer> IDENTITY_gamePlayers = Identities0.IDENTITY_gamePlayers;
|
||||
public static final org.jooq.Identity<mineplex.database.tables.records.Games, java.lang.Integer> IDENTITY_games = Identities0.IDENTITY_games;
|
||||
public static final org.jooq.Identity<mineplex.database.tables.records.ItemCategories, java.lang.Integer> IDENTITY_itemCategories = Identities0.IDENTITY_itemCategories;
|
||||
public static final org.jooq.Identity<mineplex.database.tables.records.Items, java.lang.Integer> IDENTITY_items = Identities0.IDENTITY_items;
|
||||
public static final org.jooq.Identity<mineplex.database.tables.records.PlayerMap, java.lang.Integer> IDENTITY_playerMap = Identities0.IDENTITY_playerMap;
|
||||
@ -46,6 +48,8 @@ public class Keys {
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.Accounts> KEY_accounts_uuidIndex = UniqueKeys0.KEY_accounts_uuidIndex;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.AccountStats> KEY_accountStats_PRIMARY = UniqueKeys0.KEY_accountStats_PRIMARY;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.AccountStats> KEY_accountStats_accountStatIndex = UniqueKeys0.KEY_accountStats_accountStatIndex;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.GamePlayers> KEY_gamePlayers_PRIMARY = UniqueKeys0.KEY_gamePlayers_PRIMARY;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.Games> KEY_games_PRIMARY = UniqueKeys0.KEY_games_PRIMARY;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.ItemCategories> KEY_itemCategories_PRIMARY = UniqueKeys0.KEY_itemCategories_PRIMARY;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.ItemCategories> KEY_itemCategories_nameIndex = UniqueKeys0.KEY_itemCategories_nameIndex;
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.Items> KEY_items_PRIMARY = UniqueKeys0.KEY_items_PRIMARY;
|
||||
@ -68,6 +72,8 @@ public class Keys {
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.AccountPolls, mineplex.database.tables.records.Polls> accountPolls_ibfk_2 = ForeignKeys0.accountPolls_ibfk_2;
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.AccountStats, mineplex.database.tables.records.Accounts> accountStats_ibfk_1 = ForeignKeys0.accountStats_ibfk_1;
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.AccountStats, mineplex.database.tables.records.Stats> accountStats_ibfk_2 = ForeignKeys0.accountStats_ibfk_2;
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.GamePlayers, mineplex.database.tables.records.Games> FK_gamePlayers_games = ForeignKeys0.FK_gamePlayers_games;
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.GamePlayers, mineplex.database.tables.records.Accounts> FK_gamePlayers_accounts = ForeignKeys0.FK_gamePlayers_accounts;
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.Items, mineplex.database.tables.records.ItemCategories> items_ibfk_1 = ForeignKeys0.items_ibfk_1;
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.TournamentLeaderboard, mineplex.database.tables.records.Accounts> FK_tournamentLeaderboard_accounts = ForeignKeys0.FK_tournamentLeaderboard_accounts;
|
||||
|
||||
@ -82,6 +88,8 @@ public class Keys {
|
||||
public static org.jooq.Identity<mineplex.database.tables.records.AccountPreferences, java.lang.Integer> IDENTITY_accountPreferences = createIdentity(mineplex.database.tables.AccountPreferences.accountPreferences, mineplex.database.tables.AccountPreferences.accountPreferences.id);
|
||||
public static org.jooq.Identity<mineplex.database.tables.records.Accounts, java.lang.Integer> IDENTITY_accounts = createIdentity(mineplex.database.tables.Accounts.accounts, mineplex.database.tables.Accounts.accounts.id);
|
||||
public static org.jooq.Identity<mineplex.database.tables.records.AccountStats, java.lang.Integer> IDENTITY_accountStats = createIdentity(mineplex.database.tables.AccountStats.accountStats, mineplex.database.tables.AccountStats.accountStats.id);
|
||||
public static org.jooq.Identity<mineplex.database.tables.records.GamePlayers, java.lang.Integer> IDENTITY_gamePlayers = createIdentity(mineplex.database.tables.GamePlayers.gamePlayers, mineplex.database.tables.GamePlayers.gamePlayers.id);
|
||||
public static org.jooq.Identity<mineplex.database.tables.records.Games, java.lang.Integer> IDENTITY_games = createIdentity(mineplex.database.tables.Games.games, mineplex.database.tables.Games.games.id);
|
||||
public static org.jooq.Identity<mineplex.database.tables.records.ItemCategories, java.lang.Integer> IDENTITY_itemCategories = createIdentity(mineplex.database.tables.ItemCategories.itemCategories, mineplex.database.tables.ItemCategories.itemCategories.id);
|
||||
public static org.jooq.Identity<mineplex.database.tables.records.Items, java.lang.Integer> IDENTITY_items = createIdentity(mineplex.database.tables.Items.items, mineplex.database.tables.Items.items.id);
|
||||
public static org.jooq.Identity<mineplex.database.tables.records.PlayerMap, java.lang.Integer> IDENTITY_playerMap = createIdentity(mineplex.database.tables.PlayerMap.playerMap, mineplex.database.tables.PlayerMap.playerMap.id);
|
||||
@ -102,6 +110,8 @@ public class Keys {
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.Accounts> KEY_accounts_uuidIndex = createUniqueKey(mineplex.database.tables.Accounts.accounts, mineplex.database.tables.Accounts.accounts.uuid);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.AccountStats> KEY_accountStats_PRIMARY = createUniqueKey(mineplex.database.tables.AccountStats.accountStats, mineplex.database.tables.AccountStats.accountStats.id);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.AccountStats> 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<mineplex.database.tables.records.GamePlayers> KEY_gamePlayers_PRIMARY = createUniqueKey(mineplex.database.tables.GamePlayers.gamePlayers, mineplex.database.tables.GamePlayers.gamePlayers.id);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.Games> KEY_games_PRIMARY = createUniqueKey(mineplex.database.tables.Games.games, mineplex.database.tables.Games.games.id);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.ItemCategories> KEY_itemCategories_PRIMARY = createUniqueKey(mineplex.database.tables.ItemCategories.itemCategories, mineplex.database.tables.ItemCategories.itemCategories.id);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.ItemCategories> KEY_itemCategories_nameIndex = createUniqueKey(mineplex.database.tables.ItemCategories.itemCategories, mineplex.database.tables.ItemCategories.itemCategories.name);
|
||||
public static final org.jooq.UniqueKey<mineplex.database.tables.records.Items> KEY_items_PRIMARY = createUniqueKey(mineplex.database.tables.Items.items, mineplex.database.tables.Items.items.id);
|
||||
@ -122,6 +132,8 @@ public class Keys {
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.AccountPolls, mineplex.database.tables.records.Polls> accountPolls_ibfk_2 = createForeignKey(mineplex.database.Keys.KEY_polls_PRIMARY, mineplex.database.tables.AccountPolls.accountPolls, mineplex.database.tables.AccountPolls.accountPolls.pollId);
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.AccountStats, mineplex.database.tables.records.Accounts> accountStats_ibfk_1 = createForeignKey(mineplex.database.Keys.KEY_accounts_PRIMARY, mineplex.database.tables.AccountStats.accountStats, mineplex.database.tables.AccountStats.accountStats.accountId);
|
||||
public static final org.jooq.ForeignKey<mineplex.database.tables.records.AccountStats, mineplex.database.tables.records.Stats> 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<mineplex.database.tables.records.GamePlayers, mineplex.database.tables.records.Games> 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<mineplex.database.tables.records.GamePlayers, mineplex.database.tables.records.Accounts> 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<mineplex.database.tables.records.Items, mineplex.database.tables.records.ItemCategories> 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<mineplex.database.tables.records.TournamentLeaderboard, mineplex.database.tables.records.Accounts> FK_tournamentLeaderboard_accounts = createForeignKey(mineplex.database.Keys.KEY_accounts_PRIMARY, mineplex.database.tables.TournamentLeaderboard.tournamentLeaderboard, mineplex.database.tables.TournamentLeaderboard.tournamentLeaderboard.accountId);
|
||||
}
|
||||
|
@ -43,6 +43,16 @@ public class Tables {
|
||||
*/
|
||||
public static final mineplex.database.tables.AccountStats accountStats = mineplex.database.tables.AccountStats.accountStats;
|
||||
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
|
@ -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<mineplex.database.tables.records.GamePlayers> implements java.io.Serializable, java.lang.Cloneable {
|
||||
|
||||
private static final long serialVersionUID = 219990004;
|
||||
|
||||
/**
|
||||
* The singleton instance of <code>Account.gamePlayers</code>
|
||||
*/
|
||||
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<mineplex.database.tables.records.GamePlayers> getRecordType() {
|
||||
return mineplex.database.tables.records.GamePlayers.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>Account.gamePlayers.id</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.GamePlayers, java.lang.Integer> id = createField("id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.gamePlayers.gameId</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.GamePlayers, java.lang.Integer> gameId = createField("gameId", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.gamePlayers.accountId</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.GamePlayers, java.lang.Integer> accountId = createField("accountId", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.gamePlayers.winner</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.GamePlayers, java.lang.Boolean> winner = createField("winner", org.jooq.impl.SQLDataType.BIT.nullable(false).defaulted(true), this, "");
|
||||
|
||||
/**
|
||||
* Create a <code>Account.gamePlayers</code> table reference
|
||||
*/
|
||||
public GamePlayers() {
|
||||
this("gamePlayers", null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>Account.gamePlayers</code> table reference
|
||||
*/
|
||||
public GamePlayers(java.lang.String alias) {
|
||||
this(alias, mineplex.database.tables.GamePlayers.gamePlayers);
|
||||
}
|
||||
|
||||
private GamePlayers(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.GamePlayers> aliased) {
|
||||
this(alias, aliased, null);
|
||||
}
|
||||
|
||||
private GamePlayers(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.GamePlayers> aliased, org.jooq.Field<?>[] parameters) {
|
||||
super(alias, mineplex.database.Account.Account, aliased, parameters, "");
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Identity<mineplex.database.tables.records.GamePlayers, java.lang.Integer> getIdentity() {
|
||||
return mineplex.database.Keys.IDENTITY_gamePlayers;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.UniqueKey<mineplex.database.tables.records.GamePlayers> getPrimaryKey() {
|
||||
return mineplex.database.Keys.KEY_gamePlayers_PRIMARY;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.util.List<org.jooq.UniqueKey<mineplex.database.tables.records.GamePlayers>> getKeys() {
|
||||
return java.util.Arrays.<org.jooq.UniqueKey<mineplex.database.tables.records.GamePlayers>>asList(mineplex.database.Keys.KEY_gamePlayers_PRIMARY);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.util.List<org.jooq.ForeignKey<mineplex.database.tables.records.GamePlayers, ?>> getReferences() {
|
||||
return java.util.Arrays.<org.jooq.ForeignKey<mineplex.database.tables.records.GamePlayers, ?>>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);
|
||||
}
|
||||
}
|
@ -0,0 +1,114 @@
|
||||
/**
|
||||
* 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<mineplex.database.tables.records.Games> implements java.io.Serializable, java.lang.Cloneable {
|
||||
|
||||
private static final long serialVersionUID = 866166232;
|
||||
|
||||
/**
|
||||
* The singleton instance of <code>Account.games</code>
|
||||
*/
|
||||
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<mineplex.database.tables.records.Games> getRecordType() {
|
||||
return mineplex.database.tables.records.Games.class;
|
||||
}
|
||||
|
||||
/**
|
||||
* The column <code>Account.games.id</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.Games, java.lang.Integer> id = createField("id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.games.tournament</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.Games, java.lang.Boolean> tournament = createField("tournament", org.jooq.impl.SQLDataType.BIT.nullable(false).defaulted(true), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.games.type</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.Games, java.lang.String> type = createField("type", org.jooq.impl.SQLDataType.VARCHAR.length(50).nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.games.date</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.Games, java.sql.Timestamp> date = createField("date", org.jooq.impl.SQLDataType.TIMESTAMP.nullable(false).defaulted(true), this, "");
|
||||
|
||||
/**
|
||||
* The column <code>Account.games.duration</code>.
|
||||
*/
|
||||
public final org.jooq.TableField<mineplex.database.tables.records.Games, java.lang.Integer> duration = createField("duration", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
|
||||
|
||||
/**
|
||||
* Create a <code>Account.games</code> table reference
|
||||
*/
|
||||
public Games() {
|
||||
this("games", null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an aliased <code>Account.games</code> table reference
|
||||
*/
|
||||
public Games(java.lang.String alias) {
|
||||
this(alias, mineplex.database.tables.Games.games);
|
||||
}
|
||||
|
||||
private Games(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.Games> aliased) {
|
||||
this(alias, aliased, null);
|
||||
}
|
||||
|
||||
private Games(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.Games> aliased, org.jooq.Field<?>[] parameters) {
|
||||
super(alias, mineplex.database.Account.Account, aliased, parameters, "");
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Identity<mineplex.database.tables.records.Games, java.lang.Integer> getIdentity() {
|
||||
return mineplex.database.Keys.IDENTITY_games;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.UniqueKey<mineplex.database.tables.records.Games> getPrimaryKey() {
|
||||
return mineplex.database.Keys.KEY_games_PRIMARY;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.util.List<org.jooq.UniqueKey<mineplex.database.tables.records.Games>> getKeys() {
|
||||
return java.util.Arrays.<org.jooq.UniqueKey<mineplex.database.tables.records.Games>>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);
|
||||
}
|
||||
}
|
@ -0,0 +1,234 @@
|
||||
/**
|
||||
* 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 GamePlayers extends org.jooq.impl.UpdatableRecordImpl<mineplex.database.tables.records.GamePlayers> implements java.io.Serializable, java.lang.Cloneable, org.jooq.Record4<java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Boolean> {
|
||||
|
||||
private static final long serialVersionUID = -1351436311;
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.gamePlayers.id</code>.
|
||||
*/
|
||||
public void setId(java.lang.Integer value) {
|
||||
setValue(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.gamePlayers.id</code>.
|
||||
*/
|
||||
public java.lang.Integer getId() {
|
||||
return (java.lang.Integer) getValue(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.gamePlayers.gameId</code>.
|
||||
*/
|
||||
public void setGameId(java.lang.Integer value) {
|
||||
setValue(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.gamePlayers.gameId</code>.
|
||||
*/
|
||||
public java.lang.Integer getGameId() {
|
||||
return (java.lang.Integer) getValue(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.gamePlayers.accountId</code>.
|
||||
*/
|
||||
public void setAccountId(java.lang.Integer value) {
|
||||
setValue(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.gamePlayers.accountId</code>.
|
||||
*/
|
||||
public java.lang.Integer getAccountId() {
|
||||
return (java.lang.Integer) getValue(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.gamePlayers.winner</code>.
|
||||
*/
|
||||
public void setWinner(java.lang.Boolean value) {
|
||||
setValue(3, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.gamePlayers.winner</code>.
|
||||
*/
|
||||
public java.lang.Boolean getWinner() {
|
||||
return (java.lang.Boolean) getValue(3);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Primary key information
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Record1<java.lang.Integer> key() {
|
||||
return (org.jooq.Record1) super.key();
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Record4 type implementation
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Row4<java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Boolean> fieldsRow() {
|
||||
return (org.jooq.Row4) super.fieldsRow();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Row4<java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Boolean> valuesRow() {
|
||||
return (org.jooq.Row4) super.valuesRow();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Integer> field1() {
|
||||
return mineplex.database.tables.GamePlayers.gamePlayers.id;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Integer> field2() {
|
||||
return mineplex.database.tables.GamePlayers.gamePlayers.gameId;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Integer> field3() {
|
||||
return mineplex.database.tables.GamePlayers.gamePlayers.accountId;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Boolean> 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 GamePlayers value1(java.lang.Integer value) {
|
||||
setId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public GamePlayers value2(java.lang.Integer value) {
|
||||
setGameId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public GamePlayers value3(java.lang.Integer value) {
|
||||
setAccountId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public GamePlayers value4(java.lang.Boolean value) {
|
||||
setWinner(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public GamePlayers values(java.lang.Integer value1, java.lang.Integer value2, java.lang.Integer value3, java.lang.Boolean value4) {
|
||||
return this;
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached GamePlayers
|
||||
*/
|
||||
public GamePlayers() {
|
||||
super(mineplex.database.tables.GamePlayers.gamePlayers);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised GamePlayers
|
||||
*/
|
||||
public GamePlayers(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);
|
||||
}
|
||||
}
|
@ -0,0 +1,274 @@
|
||||
/**
|
||||
* 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 Games extends org.jooq.impl.UpdatableRecordImpl<mineplex.database.tables.records.Games> implements java.io.Serializable, java.lang.Cloneable, org.jooq.Record5<java.lang.Integer, java.lang.Boolean, java.lang.String, java.sql.Timestamp, java.lang.Integer> {
|
||||
|
||||
private static final long serialVersionUID = -1759811712;
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.games.id</code>.
|
||||
*/
|
||||
public void setId(java.lang.Integer value) {
|
||||
setValue(0, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.games.id</code>.
|
||||
*/
|
||||
public java.lang.Integer getId() {
|
||||
return (java.lang.Integer) getValue(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.games.tournament</code>.
|
||||
*/
|
||||
public void setTournament(java.lang.Boolean value) {
|
||||
setValue(1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.games.tournament</code>.
|
||||
*/
|
||||
public java.lang.Boolean getTournament() {
|
||||
return (java.lang.Boolean) getValue(1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.games.type</code>.
|
||||
*/
|
||||
public void setType(java.lang.String value) {
|
||||
setValue(2, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.games.type</code>.
|
||||
*/
|
||||
public java.lang.String getType() {
|
||||
return (java.lang.String) getValue(2);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.games.date</code>.
|
||||
*/
|
||||
public void setDate(java.sql.Timestamp value) {
|
||||
setValue(3, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.games.date</code>.
|
||||
*/
|
||||
public java.sql.Timestamp getDate() {
|
||||
return (java.sql.Timestamp) getValue(3);
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter for <code>Account.games.duration</code>.
|
||||
*/
|
||||
public void setDuration(java.lang.Integer value) {
|
||||
setValue(4, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Getter for <code>Account.games.duration</code>.
|
||||
*/
|
||||
public java.lang.Integer getDuration() {
|
||||
return (java.lang.Integer) getValue(4);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Primary key information
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Record1<java.lang.Integer> key() {
|
||||
return (org.jooq.Record1) super.key();
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Record5 type implementation
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Row5<java.lang.Integer, java.lang.Boolean, java.lang.String, java.sql.Timestamp, java.lang.Integer> fieldsRow() {
|
||||
return (org.jooq.Row5) super.fieldsRow();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Row5<java.lang.Integer, java.lang.Boolean, java.lang.String, java.sql.Timestamp, java.lang.Integer> valuesRow() {
|
||||
return (org.jooq.Row5) super.valuesRow();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Integer> field1() {
|
||||
return mineplex.database.tables.Games.games.id;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Boolean> field2() {
|
||||
return mineplex.database.tables.Games.games.tournament;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.String> field3() {
|
||||
return mineplex.database.tables.Games.games.type;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.sql.Timestamp> field4() {
|
||||
return mineplex.database.tables.Games.games.date;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public org.jooq.Field<java.lang.Integer> field5() {
|
||||
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 getType();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.sql.Timestamp value4() {
|
||||
return getDate();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public java.lang.Integer value5() {
|
||||
return getDuration();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public Games value1(java.lang.Integer value) {
|
||||
setId(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public Games value2(java.lang.Boolean value) {
|
||||
setTournament(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public Games value3(java.lang.String value) {
|
||||
setType(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public Games value4(java.sql.Timestamp value) {
|
||||
setDate(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public Games value5(java.lang.Integer value) {
|
||||
setDuration(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public Games values(java.lang.Integer value1, java.lang.Boolean value2, java.lang.String value3, java.sql.Timestamp value4, java.lang.Integer value5) {
|
||||
return this;
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
// Constructors
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create a detached Games
|
||||
*/
|
||||
public Games() {
|
||||
super(mineplex.database.tables.Games.games);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a detached, initialised Games
|
||||
*/
|
||||
public Games(java.lang.Integer id, java.lang.Boolean tournament, 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, type);
|
||||
setValue(3, date);
|
||||
setValue(4, duration);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user