Set up jOOQ, fixed some IntelliJ issues, and added leaderboard stat tracking

This commit is contained in:
CoderTim 2014-09-05 04:00:51 -04:00
parent aae46bdeda
commit 91a2266a04
52 changed files with 5497 additions and 3 deletions

View File

@ -16,6 +16,8 @@
<element id="extracted-dir" path="$PROJECT_DIR$/Libraries/commons-pool2-2.2.jar" path-in-jar="/" />
<element id="extracted-dir" path="$PROJECT_DIR$/Libraries/jedis-2.4.2.jar" path-in-jar="/" />
<element id="extracted-dir" path="$PROJECT_DIR$/Libraries/gson-2.2.1.jar" path-in-jar="/" />
<element id="module-output" name="Mineplex.Database" />
<element id="extracted-dir" path="$PROJECT_DIR$/Libraries/jooq-3.4.2.jar" path-in-jar="/" />
</root>
</artifact>
</component>

View File

@ -16,6 +16,8 @@
<element id="module-output" name="Mineplex.ServerData" />
<element id="module-output" name="Nautilus.Game.Arcade" />
<element id="file-copy" path="$PROJECT_DIR$/Nautilus.Game.Arcade/plugin.yml" />
<element id="module-output" name="Mineplex.Database" />
<element id="extracted-dir" path="$PROJECT_DIR$/Libraries/jooq-3.4.2.jar" path-in-jar="/" />
</root>
</artifact>
</component>

View File

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="jooq">
<CLASSES>
<root url="jar://$PROJECT_DIR$/Libraries/jooq-3.4.2.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$PROJECT_DIR$/Libraries/jooq-3.4.2-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$PROJECT_DIR$/Libraries/jooq-3.4.2-sources.jar!/" />
</SOURCES>
</library>
</component>

View File

@ -0,0 +1,11 @@
<component name="libraryTable">
<library name="jooq-codegen">
<CLASSES>
<root url="jar://$PROJECT_DIR$/Libraries/jooq-3.4.2.jar!/" />
<root url="jar://$PROJECT_DIR$/Libraries/jooq-codegen-3.4.2.jar!/" />
<root url="jar://$PROJECT_DIR$/Libraries/jooq-meta-3.4.2.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</component>

View File

@ -0,0 +1,9 @@
<component name="libraryTable">
<library name="mysql-connector">
<CLASSES>
<root url="jar://$PROJECT_DIR$/Libraries/mysql-connector-java-5.1.32-bin.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</component>

View File

@ -2,9 +2,11 @@
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/Classpath.Dummy/Classpath.Dummy.iml" filepath="$PROJECT_DIR$/Classpath.Dummy/Classpath.Dummy.iml" />
<module fileurl="file://$PROJECT_DIR$/Mineplex.Bungee.Mineplexer/Mineplex.Bungee.Mineplexer.iml" filepath="$PROJECT_DIR$/Mineplex.Bungee.Mineplexer/Mineplex.Bungee.Mineplexer.iml" />
<module fileurl="file://$PROJECT_DIR$/Mineplex.Core/Mineplex.Core.iml" filepath="$PROJECT_DIR$/Mineplex.Core/Mineplex.Core.iml" />
<module fileurl="file://$PROJECT_DIR$/Mineplex.Core.Common/Mineplex.Core.Common.iml" filepath="$PROJECT_DIR$/Mineplex.Core.Common/Mineplex.Core.Common.iml" />
<module fileurl="file://$PROJECT_DIR$/Mineplex.Database/Mineplex.Database.iml" filepath="$PROJECT_DIR$/Mineplex.Database/Mineplex.Database.iml" />
<module fileurl="file://$PROJECT_DIR$/Mineplex.Hub/Mineplex.Hub.iml" filepath="$PROJECT_DIR$/Mineplex.Hub/Mineplex.Hub.iml" />
<module fileurl="file://$PROJECT_DIR$/Mineplex.MapParser/Mineplex.MapParser.iml" filepath="$PROJECT_DIR$/Mineplex.MapParser/Mineplex.MapParser.iml" />
<module fileurl="file://$PROJECT_DIR$/Mineplex.Minecraft.BungeeSigns/Mineplex.Minecraft.BungeeSigns.iml" filepath="$PROJECT_DIR$/Mineplex.Minecraft.BungeeSigns/Mineplex.Minecraft.BungeeSigns.iml" />

View File

@ -10,7 +10,7 @@
<option name="ENABLE_SWING_INSPECTOR" value="false" />
<option name="ENV_VARIABLES" />
<option name="PASS_PARENT_ENVS" value="true" />
<module name="Nautilus.Core.CraftBukkit" />
<module name="Classpath.Dummy" />
<envs />
<RunnerSettings RunnerId="Debug">
<option name="DEBUG_PORT" value="" />

View File

@ -0,0 +1,24 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Database" type="Application" factoryName="Application" singleton="true">
<option name="MAIN_CLASS_NAME" value="org.jooq.util.GenerationTool" />
<option name="VM_PARAMETERS" value="" />
<option name="PROGRAM_PARAMETERS" value="/jOOQConfig.xml" />
<option name="WORKING_DIRECTORY" value="file://$MODULE_DIR$" />
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
<option name="ALTERNATIVE_JRE_PATH" value="" />
<option name="ENABLE_SWING_INSPECTOR" value="false" />
<option name="ENV_VARIABLES" />
<option name="PASS_PARENT_ENVS" value="true" />
<module name="Mineplex.Database" />
<envs />
<RunnerSettings RunnerId="Debug">
<option name="DEBUG_PORT" value="" />
<option name="TRANSPORT" value="0" />
<option name="LOCAL" value="true" />
</RunnerSettings>
<RunnerSettings RunnerId="Run" />
<ConfigurationWrapper RunnerId="Debug" />
<ConfigurationWrapper RunnerId="Run" />
<method />
</configuration>
</component>

View File

@ -10,7 +10,7 @@
<option name="ENABLE_SWING_INSPECTOR" value="false" />
<option name="ENV_VARIABLES" />
<option name="PASS_PARENT_ENVS" value="true" />
<module name="Nautilus.Core.CraftBukkit" />
<module name="" />
<envs />
<RunnerSettings RunnerId="Debug">
<option name="DEBUG_PORT" value="" />

View File

@ -10,7 +10,7 @@
<option name="ENABLE_SWING_INSPECTOR" value="false" />
<option name="ENV_VARIABLES" />
<option name="PASS_PARENT_ENVS" value="true" />
<module name="Nautilus.Core.CraftBukkit" />
<module name="" />
<envs />
<RunnerSettings RunnerId="Debug">
<option name="DEBUG_PORT" value="" />

View File

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="craftbukkit" level="project" />
</component>
</module>

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -15,6 +15,8 @@
<orderEntry type="module" module-name="Mineplex.Core.Common" />
<orderEntry type="module" module-name="Mineplex.ServerData" />
<orderEntry type="library" name="craftbukkit" level="project" />
<orderEntry type="library" name="jooq" level="project" />
<orderEntry type="module" module-name="Mineplex.Database" />
</component>
</module>

View File

@ -0,0 +1,68 @@
package mineplex.core.leaderboard;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.UUID;
import org.bukkit.plugin.java.JavaPlugin;
import mineplex.core.database.RepositoryBase;
import mineplex.database.Tables;
import org.jooq.DSLContext;
import org.jooq.Query;
import org.jooq.impl.DSL;
public class LeaderboardRepository extends RepositoryBase
{
public LeaderboardRepository(JavaPlugin plugin)
{
super(plugin, "jdbc:mysql://db.mineplex.com:3306/Account?autoReconnect=true&failOverReadOnly=false&maxReconnects=10", "root", "tAbechAk3wR7tuTh");
}
@Override
protected void initialize()
{
}
@Override
protected void update()
{
}
public void saveStats(int tournamentId, int gameId, Map<UUID, Boolean> wins)
{
DSLContext context;
synchronized (this)
{
context = DSL.using(getConnection());
}
List<Query> queryList = new ArrayList<>(wins.size());
for (Map.Entry<UUID, Boolean> entry : wins.entrySet())
{
int winIncrement = entry.getValue() ? 1 : 0;
Query query = context
.insertInto(Tables.tournamentLeaderboard)
.set(Tables.tournamentLeaderboard.tournamentId, tournamentId)
.set(Tables.tournamentLeaderboard.gameId, gameId)
.set(Tables.tournamentLeaderboard.accountId, DSL.select(Tables.accounts.id)
.from(Tables.accounts)
.where(Tables.accounts.uuid.eq(entry.getKey().toString())))
.set(Tables.tournamentLeaderboard.wins, winIncrement)
.set(Tables.tournamentLeaderboard.total, 1)
.onDuplicateKeyUpdate()
.set(Tables.tournamentLeaderboard.wins, Tables.tournamentLeaderboard.wins.plus(winIncrement))
.set(Tables.tournamentLeaderboard.total, Tables.tournamentLeaderboard.total.plus(1));
queryList.add(query);
}
context.batch(queryList).execute();
}
}

View File

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="jooq-codegen" level="project" />
<orderEntry type="library" scope="RUNTIME" name="mysql-connector" level="project" />
</component>
</module>

View File

@ -0,0 +1,47 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<configuration xmlns="http://www.jooq.org/xsd/jooq-codegen-3.0.0.xsd">
<!-- Configure the database connection here -->
<jdbc>
<driver>com.mysql.jdbc.Driver</driver>
<url>jdbc:mysql://db.mineplex.com:3306</url>
<user>root</user>
<password>tAbechAk3wR7tuTh</password>
</jdbc>
<generator>
<!-- The default code generator. You can override this one, to generate
your own code style Defaults to org.jooq.util.DefaultGenerator -->
<name>org.jooq.util.DefaultGenerator</name>
<strategy>
<name>mineplex.jooq.AsInDatabaseStrategy</name>
</strategy>
<database>
<!-- The database type. The format here is: org.util.[database].[database]Database -->
<name>org.jooq.util.mysql.MySQLDatabase</name>
<!-- The database schema (or in the absence of schema support, in your
RDBMS this can be the owner, user, database name) to be generated -->
<inputSchema>Account</inputSchema>
<!-- All elements that are generated from your schema (A Java regular
expression. Use the pipe to separate several expressions) Watch out for case-sensitivity.
Depending on your database, this might be important! -->
<includes>.*</includes>
<!-- All elements that are excluded from your schema (A Java regular expression.
Use the pipe to separate several expressions). Excludes match before includes -->
<excludes></excludes>
</database>
<target>
<!-- The destination package of your generated classes (within the destination
directory) -->
<packageName>mineplex.database</packageName>
<!-- The destination directory of your generated classes -->
<directory>./src</directory>
</target>
</generator>
</configuration>

View File

@ -0,0 +1,50 @@
/**
* This class is generated by jOOQ
*/
package mineplex.database;
/**
* 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 Account extends org.jooq.impl.SchemaImpl implements java.io.Serializable, java.lang.Cloneable {
private static final long serialVersionUID = -1898637057;
/**
* The singleton instance of <code>Account</code>
*/
public static final Account Account = new Account();
/**
* No further instances allowed
*/
private Account() {
super("Account");
}
@Override
public final java.util.List<org.jooq.Table<?>> getTables() {
java.util.List result = new java.util.ArrayList();
result.addAll(getTables0());
return result;
}
private final java.util.List<org.jooq.Table<?>> getTables0() {
return java.util.Arrays.<org.jooq.Table<?>>asList(
mineplex.database.tables.AccountFriend.accountFriend,
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.ItemCategories.itemCategories,
mineplex.database.tables.Items.items,
mineplex.database.tables.PlayerMap.playerMap,
mineplex.database.tables.Polls.polls,
mineplex.database.tables.Stats.stats,
mineplex.database.tables.TournamentLeaderboard.tournamentLeaderboard);
}
}

View File

@ -0,0 +1,128 @@
/**
* This class is generated by jOOQ
*/
package mineplex.database;
/**
* This class is generated by jOOQ.
*
* A class modelling foreign key relationships between tables of the <code>Account</code>
* schema
*/
@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 Keys {
// -------------------------------------------------------------------------
// IDENTITY definitions
// -------------------------------------------------------------------------
public static final org.jooq.Identity<mineplex.database.tables.records.AccountFriend, java.lang.Integer> IDENTITY_accountFriend = Identities0.IDENTITY_accountFriend;
public static final org.jooq.Identity<mineplex.database.tables.records.AccountInventory, java.lang.Integer> IDENTITY_accountInventory = Identities0.IDENTITY_accountInventory;
public static final org.jooq.Identity<mineplex.database.tables.records.AccountPolls, java.lang.Integer> IDENTITY_accountPolls = Identities0.IDENTITY_accountPolls;
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.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;
public static final org.jooq.Identity<mineplex.database.tables.records.Polls, java.lang.Integer> IDENTITY_polls = Identities0.IDENTITY_polls;
public static final org.jooq.Identity<mineplex.database.tables.records.Stats, java.lang.Integer> IDENTITY_stats = Identities0.IDENTITY_stats;
public static final org.jooq.Identity<mineplex.database.tables.records.TournamentLeaderboard, java.lang.Integer> IDENTITY_tournamentLeaderboard = Identities0.IDENTITY_tournamentLeaderboard;
// -------------------------------------------------------------------------
// UNIQUE and PRIMARY KEY definitions
// -------------------------------------------------------------------------
public static final org.jooq.UniqueKey<mineplex.database.tables.records.AccountFriend> KEY_accountFriend_PRIMARY = UniqueKeys0.KEY_accountFriend_PRIMARY;
public static final org.jooq.UniqueKey<mineplex.database.tables.records.AccountInventory> KEY_accountInventory_PRIMARY = UniqueKeys0.KEY_accountInventory_PRIMARY;
public static final org.jooq.UniqueKey<mineplex.database.tables.records.AccountInventory> KEY_accountInventory_accountItemIndex = UniqueKeys0.KEY_accountInventory_accountItemIndex;
public static final org.jooq.UniqueKey<mineplex.database.tables.records.AccountPolls> KEY_accountPolls_PRIMARY = UniqueKeys0.KEY_accountPolls_PRIMARY;
public static final org.jooq.UniqueKey<mineplex.database.tables.records.AccountPolls> KEY_accountPolls_accountPollIndex = UniqueKeys0.KEY_accountPolls_accountPollIndex;
public static final org.jooq.UniqueKey<mineplex.database.tables.records.AccountPreferences> KEY_accountPreferences_PRIMARY = UniqueKeys0.KEY_accountPreferences_PRIMARY;
public static final org.jooq.UniqueKey<mineplex.database.tables.records.AccountPreferences> KEY_accountPreferences_uuid_index = UniqueKeys0.KEY_accountPreferences_uuid_index;
public static final org.jooq.UniqueKey<mineplex.database.tables.records.Accounts> KEY_accounts_PRIMARY = UniqueKeys0.KEY_accounts_PRIMARY;
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.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;
public static final org.jooq.UniqueKey<mineplex.database.tables.records.Items> KEY_items_uniqueNameCategoryIndex = UniqueKeys0.KEY_items_uniqueNameCategoryIndex;
public static final org.jooq.UniqueKey<mineplex.database.tables.records.PlayerMap> KEY_playerMap_PRIMARY = UniqueKeys0.KEY_playerMap_PRIMARY;
public static final org.jooq.UniqueKey<mineplex.database.tables.records.PlayerMap> KEY_playerMap_playerIndex = UniqueKeys0.KEY_playerMap_playerIndex;
public static final org.jooq.UniqueKey<mineplex.database.tables.records.Polls> KEY_polls_PRIMARY = UniqueKeys0.KEY_polls_PRIMARY;
public static final org.jooq.UniqueKey<mineplex.database.tables.records.Stats> KEY_stats_PRIMARY = UniqueKeys0.KEY_stats_PRIMARY;
public static final org.jooq.UniqueKey<mineplex.database.tables.records.Stats> KEY_stats_nameIndex = UniqueKeys0.KEY_stats_nameIndex;
public static final org.jooq.UniqueKey<mineplex.database.tables.records.TournamentLeaderboard> KEY_tournamentLeaderboard_PRIMARY = UniqueKeys0.KEY_tournamentLeaderboard_PRIMARY;
public static final org.jooq.UniqueKey<mineplex.database.tables.records.TournamentLeaderboard> KEY_tournamentLeaderboard_leaderboard_account_game_UNIQUE = UniqueKeys0.KEY_tournamentLeaderboard_leaderboard_account_game_UNIQUE;
// -------------------------------------------------------------------------
// FOREIGN KEY definitions
// -------------------------------------------------------------------------
public static final org.jooq.ForeignKey<mineplex.database.tables.records.AccountInventory, mineplex.database.tables.records.Accounts> accountInventory_ibfk_1 = ForeignKeys0.accountInventory_ibfk_1;
public static final org.jooq.ForeignKey<mineplex.database.tables.records.AccountInventory, mineplex.database.tables.records.Items> accountInventory_ibfk_2 = ForeignKeys0.accountInventory_ibfk_2;
public static final org.jooq.ForeignKey<mineplex.database.tables.records.AccountPolls, mineplex.database.tables.records.Accounts> accountPolls_ibfk_1 = ForeignKeys0.accountPolls_ibfk_1;
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.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;
// -------------------------------------------------------------------------
// [#1459] distribute members to avoid static initialisers > 64kb
// -------------------------------------------------------------------------
private static class Identities0 extends org.jooq.impl.AbstractKeys {
public static org.jooq.Identity<mineplex.database.tables.records.AccountFriend, java.lang.Integer> IDENTITY_accountFriend = createIdentity(mineplex.database.tables.AccountFriend.accountFriend, mineplex.database.tables.AccountFriend.accountFriend.id);
public static org.jooq.Identity<mineplex.database.tables.records.AccountInventory, java.lang.Integer> IDENTITY_accountInventory = createIdentity(mineplex.database.tables.AccountInventory.accountInventory, mineplex.database.tables.AccountInventory.accountInventory.id);
public static org.jooq.Identity<mineplex.database.tables.records.AccountPolls, java.lang.Integer> IDENTITY_accountPolls = createIdentity(mineplex.database.tables.AccountPolls.accountPolls, mineplex.database.tables.AccountPolls.accountPolls.id);
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.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);
public static org.jooq.Identity<mineplex.database.tables.records.Polls, java.lang.Integer> IDENTITY_polls = createIdentity(mineplex.database.tables.Polls.polls, mineplex.database.tables.Polls.polls.id);
public static org.jooq.Identity<mineplex.database.tables.records.Stats, java.lang.Integer> IDENTITY_stats = createIdentity(mineplex.database.tables.Stats.stats, mineplex.database.tables.Stats.stats.id);
public static org.jooq.Identity<mineplex.database.tables.records.TournamentLeaderboard, java.lang.Integer> IDENTITY_tournamentLeaderboard = createIdentity(mineplex.database.tables.TournamentLeaderboard.tournamentLeaderboard, mineplex.database.tables.TournamentLeaderboard.tournamentLeaderboard.id);
}
private static class UniqueKeys0 extends org.jooq.impl.AbstractKeys {
public static final org.jooq.UniqueKey<mineplex.database.tables.records.AccountFriend> KEY_accountFriend_PRIMARY = createUniqueKey(mineplex.database.tables.AccountFriend.accountFriend, mineplex.database.tables.AccountFriend.accountFriend.id);
public static final org.jooq.UniqueKey<mineplex.database.tables.records.AccountInventory> KEY_accountInventory_PRIMARY = createUniqueKey(mineplex.database.tables.AccountInventory.accountInventory, mineplex.database.tables.AccountInventory.accountInventory.id);
public static final org.jooq.UniqueKey<mineplex.database.tables.records.AccountInventory> 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<mineplex.database.tables.records.AccountPolls> KEY_accountPolls_PRIMARY = createUniqueKey(mineplex.database.tables.AccountPolls.accountPolls, mineplex.database.tables.AccountPolls.accountPolls.id);
public static final org.jooq.UniqueKey<mineplex.database.tables.records.AccountPolls> KEY_accountPolls_accountPollIndex = createUniqueKey(mineplex.database.tables.AccountPolls.accountPolls, mineplex.database.tables.AccountPolls.accountPolls.accountId, mineplex.database.tables.AccountPolls.accountPolls.pollId);
public static final org.jooq.UniqueKey<mineplex.database.tables.records.AccountPreferences> KEY_accountPreferences_PRIMARY = createUniqueKey(mineplex.database.tables.AccountPreferences.accountPreferences, mineplex.database.tables.AccountPreferences.accountPreferences.id);
public static final org.jooq.UniqueKey<mineplex.database.tables.records.AccountPreferences> KEY_accountPreferences_uuid_index = createUniqueKey(mineplex.database.tables.AccountPreferences.accountPreferences, mineplex.database.tables.AccountPreferences.accountPreferences.uuid);
public static final org.jooq.UniqueKey<mineplex.database.tables.records.Accounts> KEY_accounts_PRIMARY = createUniqueKey(mineplex.database.tables.Accounts.accounts, mineplex.database.tables.Accounts.accounts.id);
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.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);
public static final org.jooq.UniqueKey<mineplex.database.tables.records.Items> KEY_items_uniqueNameCategoryIndex = createUniqueKey(mineplex.database.tables.Items.items, mineplex.database.tables.Items.items.name, mineplex.database.tables.Items.items.categoryId);
public static final org.jooq.UniqueKey<mineplex.database.tables.records.PlayerMap> KEY_playerMap_PRIMARY = createUniqueKey(mineplex.database.tables.PlayerMap.playerMap, mineplex.database.tables.PlayerMap.playerMap.id);
public static final org.jooq.UniqueKey<mineplex.database.tables.records.PlayerMap> KEY_playerMap_playerIndex = createUniqueKey(mineplex.database.tables.PlayerMap.playerMap, mineplex.database.tables.PlayerMap.playerMap.playerName);
public static final org.jooq.UniqueKey<mineplex.database.tables.records.Polls> KEY_polls_PRIMARY = createUniqueKey(mineplex.database.tables.Polls.polls, mineplex.database.tables.Polls.polls.id);
public static final org.jooq.UniqueKey<mineplex.database.tables.records.Stats> KEY_stats_PRIMARY = createUniqueKey(mineplex.database.tables.Stats.stats, mineplex.database.tables.Stats.stats.id);
public static final org.jooq.UniqueKey<mineplex.database.tables.records.Stats> KEY_stats_nameIndex = createUniqueKey(mineplex.database.tables.Stats.stats, mineplex.database.tables.Stats.stats.name);
public static final org.jooq.UniqueKey<mineplex.database.tables.records.TournamentLeaderboard> KEY_tournamentLeaderboard_PRIMARY = createUniqueKey(mineplex.database.tables.TournamentLeaderboard.tournamentLeaderboard, mineplex.database.tables.TournamentLeaderboard.tournamentLeaderboard.id);
public static final org.jooq.UniqueKey<mineplex.database.tables.records.TournamentLeaderboard> 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 {
public static final org.jooq.ForeignKey<mineplex.database.tables.records.AccountInventory, mineplex.database.tables.records.Accounts> accountInventory_ibfk_1 = createForeignKey(mineplex.database.Keys.KEY_accounts_PRIMARY, mineplex.database.tables.AccountInventory.accountInventory, mineplex.database.tables.AccountInventory.accountInventory.accountId);
public static final org.jooq.ForeignKey<mineplex.database.tables.records.AccountInventory, mineplex.database.tables.records.Items> accountInventory_ibfk_2 = createForeignKey(mineplex.database.Keys.KEY_items_PRIMARY, mineplex.database.tables.AccountInventory.accountInventory, mineplex.database.tables.AccountInventory.accountInventory.itemId);
public static final org.jooq.ForeignKey<mineplex.database.tables.records.AccountPolls, mineplex.database.tables.records.Accounts> accountPolls_ibfk_1 = createForeignKey(mineplex.database.Keys.KEY_accounts_PRIMARY, mineplex.database.tables.AccountPolls.accountPolls, mineplex.database.tables.AccountPolls.accountPolls.accountId);
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.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);
}
}

View File

@ -0,0 +1,75 @@
/**
* This class is generated by jOOQ
*/
package mineplex.database;
/**
* This class is generated by jOOQ.
*
* Convenience access to all tables in Account
*/
@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 Tables {
/**
* The table Account.accountFriend
*/
public static final mineplex.database.tables.AccountFriend accountFriend = mineplex.database.tables.AccountFriend.accountFriend;
/**
* The table Account.accountInventory
*/
public static final mineplex.database.tables.AccountInventory accountInventory = mineplex.database.tables.AccountInventory.accountInventory;
/**
* The table Account.accountPolls
*/
public static final mineplex.database.tables.AccountPolls accountPolls = mineplex.database.tables.AccountPolls.accountPolls;
/**
* The table Account.accountPreferences
*/
public static final mineplex.database.tables.AccountPreferences accountPreferences = mineplex.database.tables.AccountPreferences.accountPreferences;
/**
* The table Account.accounts
*/
public static final mineplex.database.tables.Accounts accounts = mineplex.database.tables.Accounts.accounts;
/**
* The table Account.accountStats
*/
public static final mineplex.database.tables.AccountStats accountStats = mineplex.database.tables.AccountStats.accountStats;
/**
* The table Account.itemCategories
*/
public static final mineplex.database.tables.ItemCategories itemCategories = mineplex.database.tables.ItemCategories.itemCategories;
/**
* The table Account.items
*/
public static final mineplex.database.tables.Items items = mineplex.database.tables.Items.items;
/**
* The table Account.playerMap
*/
public static final mineplex.database.tables.PlayerMap playerMap = mineplex.database.tables.PlayerMap.playerMap;
/**
* The table Account.polls
*/
public static final mineplex.database.tables.Polls polls = mineplex.database.tables.Polls.polls;
/**
* 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;
}

View File

@ -0,0 +1,109 @@
/**
* 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 AccountFriend extends org.jooq.impl.TableImpl<mineplex.database.tables.records.AccountFriend> implements java.io.Serializable, java.lang.Cloneable {
private static final long serialVersionUID = 288902842;
/**
* The singleton instance of <code>Account.accountFriend</code>
*/
public static final mineplex.database.tables.AccountFriend accountFriend = new mineplex.database.tables.AccountFriend();
/**
* The class holding records for this type
*/
@Override
public java.lang.Class<mineplex.database.tables.records.AccountFriend> getRecordType() {
return mineplex.database.tables.records.AccountFriend.class;
}
/**
* The column <code>Account.accountFriend.id</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.AccountFriend, java.lang.Integer> id = createField("id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
/**
* The column <code>Account.accountFriend.uuidSource</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.AccountFriend, java.lang.String> uuidSource = createField("uuidSource", org.jooq.impl.SQLDataType.VARCHAR.length(100), this, "");
/**
* The column <code>Account.accountFriend.uuidTarget</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.AccountFriend, java.lang.String> uuidTarget = createField("uuidTarget", org.jooq.impl.SQLDataType.VARCHAR.length(100), this, "");
/**
* The column <code>Account.accountFriend.mutual</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.AccountFriend, java.lang.Byte> mutual = createField("mutual", org.jooq.impl.SQLDataType.TINYINT, this, "");
/**
* Create a <code>Account.accountFriend</code> table reference
*/
public AccountFriend() {
this("accountFriend", null);
}
/**
* Create an aliased <code>Account.accountFriend</code> table reference
*/
public AccountFriend(java.lang.String alias) {
this(alias, mineplex.database.tables.AccountFriend.accountFriend);
}
private AccountFriend(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.AccountFriend> aliased) {
this(alias, aliased, null);
}
private AccountFriend(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.AccountFriend> aliased, org.jooq.Field<?>[] parameters) {
super(alias, mineplex.database.Account.Account, aliased, parameters, "");
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Identity<mineplex.database.tables.records.AccountFriend, java.lang.Integer> getIdentity() {
return mineplex.database.Keys.IDENTITY_accountFriend;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.UniqueKey<mineplex.database.tables.records.AccountFriend> getPrimaryKey() {
return mineplex.database.Keys.KEY_accountFriend_PRIMARY;
}
/**
* {@inheritDoc}
*/
@Override
public java.util.List<org.jooq.UniqueKey<mineplex.database.tables.records.AccountFriend>> getKeys() {
return java.util.Arrays.<org.jooq.UniqueKey<mineplex.database.tables.records.AccountFriend>>asList(mineplex.database.Keys.KEY_accountFriend_PRIMARY);
}
/**
* {@inheritDoc}
*/
@Override
public mineplex.database.tables.AccountFriend as(java.lang.String alias) {
return new mineplex.database.tables.AccountFriend(alias, this);
}
/**
* Rename this table
*/
public mineplex.database.tables.AccountFriend rename(java.lang.String name) {
return new mineplex.database.tables.AccountFriend(name, null);
}
}

View File

@ -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 AccountInventory extends org.jooq.impl.TableImpl<mineplex.database.tables.records.AccountInventory> implements java.io.Serializable, java.lang.Cloneable {
private static final long serialVersionUID = -113543162;
/**
* The singleton instance of <code>Account.accountInventory</code>
*/
public static final mineplex.database.tables.AccountInventory accountInventory = new mineplex.database.tables.AccountInventory();
/**
* The class holding records for this type
*/
@Override
public java.lang.Class<mineplex.database.tables.records.AccountInventory> getRecordType() {
return mineplex.database.tables.records.AccountInventory.class;
}
/**
* The column <code>Account.accountInventory.id</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.AccountInventory, java.lang.Integer> id = createField("id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
/**
* The column <code>Account.accountInventory.accountId</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.AccountInventory, java.lang.Integer> accountId = createField("accountId", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
/**
* The column <code>Account.accountInventory.itemId</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.AccountInventory, java.lang.Integer> itemId = createField("itemId", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
/**
* The column <code>Account.accountInventory.count</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.AccountInventory, java.lang.Integer> count = createField("count", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
/**
* Create a <code>Account.accountInventory</code> table reference
*/
public AccountInventory() {
this("accountInventory", null);
}
/**
* Create an aliased <code>Account.accountInventory</code> table reference
*/
public AccountInventory(java.lang.String alias) {
this(alias, mineplex.database.tables.AccountInventory.accountInventory);
}
private AccountInventory(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.AccountInventory> aliased) {
this(alias, aliased, null);
}
private AccountInventory(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.AccountInventory> aliased, org.jooq.Field<?>[] parameters) {
super(alias, mineplex.database.Account.Account, aliased, parameters, "");
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Identity<mineplex.database.tables.records.AccountInventory, java.lang.Integer> getIdentity() {
return mineplex.database.Keys.IDENTITY_accountInventory;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.UniqueKey<mineplex.database.tables.records.AccountInventory> getPrimaryKey() {
return mineplex.database.Keys.KEY_accountInventory_PRIMARY;
}
/**
* {@inheritDoc}
*/
@Override
public java.util.List<org.jooq.UniqueKey<mineplex.database.tables.records.AccountInventory>> getKeys() {
return java.util.Arrays.<org.jooq.UniqueKey<mineplex.database.tables.records.AccountInventory>>asList(mineplex.database.Keys.KEY_accountInventory_PRIMARY, mineplex.database.Keys.KEY_accountInventory_accountItemIndex);
}
/**
* {@inheritDoc}
*/
@Override
public java.util.List<org.jooq.ForeignKey<mineplex.database.tables.records.AccountInventory, ?>> getReferences() {
return java.util.Arrays.<org.jooq.ForeignKey<mineplex.database.tables.records.AccountInventory, ?>>asList(mineplex.database.Keys.accountInventory_ibfk_1, mineplex.database.Keys.accountInventory_ibfk_2);
}
/**
* {@inheritDoc}
*/
@Override
public mineplex.database.tables.AccountInventory as(java.lang.String alias) {
return new mineplex.database.tables.AccountInventory(alias, this);
}
/**
* Rename this table
*/
public mineplex.database.tables.AccountInventory rename(java.lang.String name) {
return new mineplex.database.tables.AccountInventory(name, null);
}
}

View File

@ -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 AccountPolls extends org.jooq.impl.TableImpl<mineplex.database.tables.records.AccountPolls> implements java.io.Serializable, java.lang.Cloneable {
private static final long serialVersionUID = 295371459;
/**
* The singleton instance of <code>Account.accountPolls</code>
*/
public static final mineplex.database.tables.AccountPolls accountPolls = new mineplex.database.tables.AccountPolls();
/**
* The class holding records for this type
*/
@Override
public java.lang.Class<mineplex.database.tables.records.AccountPolls> getRecordType() {
return mineplex.database.tables.records.AccountPolls.class;
}
/**
* The column <code>Account.accountPolls.id</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.AccountPolls, java.lang.Integer> id = createField("id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
/**
* The column <code>Account.accountPolls.accountId</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.AccountPolls, java.lang.Integer> accountId = createField("accountId", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
/**
* The column <code>Account.accountPolls.pollId</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.AccountPolls, java.lang.Integer> pollId = createField("pollId", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
/**
* The column <code>Account.accountPolls.value</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.AccountPolls, java.lang.Byte> value = createField("value", org.jooq.impl.SQLDataType.TINYINT.nullable(false), this, "");
/**
* Create a <code>Account.accountPolls</code> table reference
*/
public AccountPolls() {
this("accountPolls", null);
}
/**
* Create an aliased <code>Account.accountPolls</code> table reference
*/
public AccountPolls(java.lang.String alias) {
this(alias, mineplex.database.tables.AccountPolls.accountPolls);
}
private AccountPolls(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.AccountPolls> aliased) {
this(alias, aliased, null);
}
private AccountPolls(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.AccountPolls> aliased, org.jooq.Field<?>[] parameters) {
super(alias, mineplex.database.Account.Account, aliased, parameters, "");
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Identity<mineplex.database.tables.records.AccountPolls, java.lang.Integer> getIdentity() {
return mineplex.database.Keys.IDENTITY_accountPolls;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.UniqueKey<mineplex.database.tables.records.AccountPolls> getPrimaryKey() {
return mineplex.database.Keys.KEY_accountPolls_PRIMARY;
}
/**
* {@inheritDoc}
*/
@Override
public java.util.List<org.jooq.UniqueKey<mineplex.database.tables.records.AccountPolls>> getKeys() {
return java.util.Arrays.<org.jooq.UniqueKey<mineplex.database.tables.records.AccountPolls>>asList(mineplex.database.Keys.KEY_accountPolls_PRIMARY, mineplex.database.Keys.KEY_accountPolls_accountPollIndex);
}
/**
* {@inheritDoc}
*/
@Override
public java.util.List<org.jooq.ForeignKey<mineplex.database.tables.records.AccountPolls, ?>> getReferences() {
return java.util.Arrays.<org.jooq.ForeignKey<mineplex.database.tables.records.AccountPolls, ?>>asList(mineplex.database.Keys.accountPolls_ibfk_1, mineplex.database.Keys.accountPolls_ibfk_2);
}
/**
* {@inheritDoc}
*/
@Override
public mineplex.database.tables.AccountPolls as(java.lang.String alias) {
return new mineplex.database.tables.AccountPolls(alias, this);
}
/**
* Rename this table
*/
public mineplex.database.tables.AccountPolls rename(java.lang.String name) {
return new mineplex.database.tables.AccountPolls(name, null);
}
}

View File

@ -0,0 +1,144 @@
/**
* 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 AccountPreferences extends org.jooq.impl.TableImpl<mineplex.database.tables.records.AccountPreferences> implements java.io.Serializable, java.lang.Cloneable {
private static final long serialVersionUID = -48477652;
/**
* The singleton instance of <code>Account.accountPreferences</code>
*/
public static final mineplex.database.tables.AccountPreferences accountPreferences = new mineplex.database.tables.AccountPreferences();
/**
* The class holding records for this type
*/
@Override
public java.lang.Class<mineplex.database.tables.records.AccountPreferences> getRecordType() {
return mineplex.database.tables.records.AccountPreferences.class;
}
/**
* The column <code>Account.accountPreferences.id</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.AccountPreferences, java.lang.Integer> id = createField("id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
/**
* The column <code>Account.accountPreferences.uuid</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.AccountPreferences, java.lang.String> uuid = createField("uuid", org.jooq.impl.SQLDataType.VARCHAR.length(256), this, "");
/**
* The column <code>Account.accountPreferences.filterChat</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.AccountPreferences, java.lang.Byte> filterChat = createField("filterChat", org.jooq.impl.SQLDataType.TINYINT, this, "");
/**
* The column <code>Account.accountPreferences.invisibility</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.AccountPreferences, java.lang.Byte> invisibility = createField("invisibility", org.jooq.impl.SQLDataType.TINYINT.nullable(false).defaulted(true), this, "");
/**
* The column <code>Account.accountPreferences.games</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.AccountPreferences, java.lang.Byte> games = createField("games", org.jooq.impl.SQLDataType.TINYINT.nullable(false).defaulted(true), this, "");
/**
* The column <code>Account.accountPreferences.visibility</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.AccountPreferences, java.lang.Byte> visibility = createField("visibility", org.jooq.impl.SQLDataType.TINYINT.nullable(false).defaulted(true), this, "");
/**
* The column <code>Account.accountPreferences.friendChat</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.AccountPreferences, java.lang.Byte> friendChat = createField("friendChat", org.jooq.impl.SQLDataType.TINYINT.nullable(false).defaulted(true), this, "");
/**
* The column <code>Account.accountPreferences.privateMessaging</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.AccountPreferences, java.lang.Byte> privateMessaging = createField("privateMessaging", org.jooq.impl.SQLDataType.TINYINT.nullable(false).defaulted(true), this, "");
/**
* The column <code>Account.accountPreferences.showChat</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.AccountPreferences, java.lang.Byte> showChat = createField("showChat", org.jooq.impl.SQLDataType.TINYINT.nullable(false).defaulted(true), this, "");
/**
* The column <code>Account.accountPreferences.partyRequests</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.AccountPreferences, java.lang.Byte> partyRequests = createField("partyRequests", org.jooq.impl.SQLDataType.TINYINT.nullable(false).defaulted(true), this, "");
/**
* The column <code>Account.accountPreferences.forcefield</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.AccountPreferences, java.lang.Byte> forcefield = createField("forcefield", org.jooq.impl.SQLDataType.TINYINT.nullable(false).defaulted(true), this, "");
/**
* Create a <code>Account.accountPreferences</code> table reference
*/
public AccountPreferences() {
this("accountPreferences", null);
}
/**
* Create an aliased <code>Account.accountPreferences</code> table reference
*/
public AccountPreferences(java.lang.String alias) {
this(alias, mineplex.database.tables.AccountPreferences.accountPreferences);
}
private AccountPreferences(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.AccountPreferences> aliased) {
this(alias, aliased, null);
}
private AccountPreferences(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.AccountPreferences> aliased, org.jooq.Field<?>[] parameters) {
super(alias, mineplex.database.Account.Account, aliased, parameters, "");
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Identity<mineplex.database.tables.records.AccountPreferences, java.lang.Integer> getIdentity() {
return mineplex.database.Keys.IDENTITY_accountPreferences;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.UniqueKey<mineplex.database.tables.records.AccountPreferences> getPrimaryKey() {
return mineplex.database.Keys.KEY_accountPreferences_PRIMARY;
}
/**
* {@inheritDoc}
*/
@Override
public java.util.List<org.jooq.UniqueKey<mineplex.database.tables.records.AccountPreferences>> getKeys() {
return java.util.Arrays.<org.jooq.UniqueKey<mineplex.database.tables.records.AccountPreferences>>asList(mineplex.database.Keys.KEY_accountPreferences_PRIMARY, mineplex.database.Keys.KEY_accountPreferences_uuid_index);
}
/**
* {@inheritDoc}
*/
@Override
public mineplex.database.tables.AccountPreferences as(java.lang.String alias) {
return new mineplex.database.tables.AccountPreferences(alias, this);
}
/**
* Rename this table
*/
public mineplex.database.tables.AccountPreferences rename(java.lang.String name) {
return new mineplex.database.tables.AccountPreferences(name, null);
}
}

View File

@ -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 AccountStats extends org.jooq.impl.TableImpl<mineplex.database.tables.records.AccountStats> implements java.io.Serializable, java.lang.Cloneable {
private static final long serialVersionUID = 1235880361;
/**
* The singleton instance of <code>Account.accountStats</code>
*/
public static final mineplex.database.tables.AccountStats accountStats = new mineplex.database.tables.AccountStats();
/**
* The class holding records for this type
*/
@Override
public java.lang.Class<mineplex.database.tables.records.AccountStats> getRecordType() {
return mineplex.database.tables.records.AccountStats.class;
}
/**
* The column <code>Account.accountStats.id</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.AccountStats, java.lang.Integer> id = createField("id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
/**
* The column <code>Account.accountStats.accountId</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.AccountStats, java.lang.Integer> accountId = createField("accountId", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
/**
* The column <code>Account.accountStats.statId</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.AccountStats, java.lang.Integer> statId = createField("statId", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
/**
* The column <code>Account.accountStats.value</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.AccountStats, java.lang.Integer> value = createField("value", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
/**
* Create a <code>Account.accountStats</code> table reference
*/
public AccountStats() {
this("accountStats", null);
}
/**
* Create an aliased <code>Account.accountStats</code> table reference
*/
public AccountStats(java.lang.String alias) {
this(alias, mineplex.database.tables.AccountStats.accountStats);
}
private AccountStats(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.AccountStats> aliased) {
this(alias, aliased, null);
}
private AccountStats(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.AccountStats> aliased, org.jooq.Field<?>[] parameters) {
super(alias, mineplex.database.Account.Account, aliased, parameters, "");
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Identity<mineplex.database.tables.records.AccountStats, java.lang.Integer> getIdentity() {
return mineplex.database.Keys.IDENTITY_accountStats;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.UniqueKey<mineplex.database.tables.records.AccountStats> getPrimaryKey() {
return mineplex.database.Keys.KEY_accountStats_PRIMARY;
}
/**
* {@inheritDoc}
*/
@Override
public java.util.List<org.jooq.UniqueKey<mineplex.database.tables.records.AccountStats>> getKeys() {
return java.util.Arrays.<org.jooq.UniqueKey<mineplex.database.tables.records.AccountStats>>asList(mineplex.database.Keys.KEY_accountStats_PRIMARY, mineplex.database.Keys.KEY_accountStats_accountStatIndex);
}
/**
* {@inheritDoc}
*/
@Override
public java.util.List<org.jooq.ForeignKey<mineplex.database.tables.records.AccountStats, ?>> getReferences() {
return java.util.Arrays.<org.jooq.ForeignKey<mineplex.database.tables.records.AccountStats, ?>>asList(mineplex.database.Keys.accountStats_ibfk_1, mineplex.database.Keys.accountStats_ibfk_2);
}
/**
* {@inheritDoc}
*/
@Override
public mineplex.database.tables.AccountStats as(java.lang.String alias) {
return new mineplex.database.tables.AccountStats(alias, this);
}
/**
* Rename this table
*/
public mineplex.database.tables.AccountStats rename(java.lang.String name) {
return new mineplex.database.tables.AccountStats(name, null);
}
}

View File

@ -0,0 +1,134 @@
/**
* 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 Accounts extends org.jooq.impl.TableImpl<mineplex.database.tables.records.Accounts> implements java.io.Serializable, java.lang.Cloneable {
private static final long serialVersionUID = 235426766;
/**
* The singleton instance of <code>Account.accounts</code>
*/
public static final mineplex.database.tables.Accounts accounts = new mineplex.database.tables.Accounts();
/**
* The class holding records for this type
*/
@Override
public java.lang.Class<mineplex.database.tables.records.Accounts> getRecordType() {
return mineplex.database.tables.records.Accounts.class;
}
/**
* The column <code>Account.accounts.id</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.Accounts, java.lang.Integer> id = createField("id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
/**
* The column <code>Account.accounts.uuid</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.Accounts, java.lang.String> uuid = createField("uuid", org.jooq.impl.SQLDataType.VARCHAR.length(100).nullable(false), this, "");
/**
* The column <code>Account.accounts.name</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.Accounts, java.lang.String> name = createField("name", org.jooq.impl.SQLDataType.VARCHAR.length(40), this, "");
/**
* The column <code>Account.accounts.gems</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.Accounts, java.lang.Integer> gems = createField("gems", org.jooq.impl.SQLDataType.INTEGER, this, "");
/**
* The column <code>Account.accounts.rank</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.Accounts, java.lang.String> rank = createField("rank", org.jooq.impl.SQLDataType.VARCHAR.length(40), this, "");
/**
* The column <code>Account.accounts.rankPerm</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.Accounts, java.lang.Byte> rankPerm = createField("rankPerm", org.jooq.impl.SQLDataType.TINYINT, this, "");
/**
* The column <code>Account.accounts.rankExpire</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.Accounts, java.lang.String> rankExpire = createField("rankExpire", org.jooq.impl.SQLDataType.CLOB.length(16777215), this, "");
/**
* The column <code>Account.accounts.lastLogin</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.Accounts, java.lang.String> lastLogin = createField("lastLogin", org.jooq.impl.SQLDataType.CLOB.length(16777215), this, "");
/**
* The column <code>Account.accounts.totalPlayTime</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.Accounts, java.lang.String> totalPlayTime = createField("totalPlayTime", org.jooq.impl.SQLDataType.CLOB.length(16777215), this, "");
/**
* Create a <code>Account.accounts</code> table reference
*/
public Accounts() {
this("accounts", null);
}
/**
* Create an aliased <code>Account.accounts</code> table reference
*/
public Accounts(java.lang.String alias) {
this(alias, mineplex.database.tables.Accounts.accounts);
}
private Accounts(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.Accounts> aliased) {
this(alias, aliased, null);
}
private Accounts(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.Accounts> aliased, org.jooq.Field<?>[] parameters) {
super(alias, mineplex.database.Account.Account, aliased, parameters, "");
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Identity<mineplex.database.tables.records.Accounts, java.lang.Integer> getIdentity() {
return mineplex.database.Keys.IDENTITY_accounts;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.UniqueKey<mineplex.database.tables.records.Accounts> getPrimaryKey() {
return mineplex.database.Keys.KEY_accounts_PRIMARY;
}
/**
* {@inheritDoc}
*/
@Override
public java.util.List<org.jooq.UniqueKey<mineplex.database.tables.records.Accounts>> getKeys() {
return java.util.Arrays.<org.jooq.UniqueKey<mineplex.database.tables.records.Accounts>>asList(mineplex.database.Keys.KEY_accounts_PRIMARY, mineplex.database.Keys.KEY_accounts_uuidIndex);
}
/**
* {@inheritDoc}
*/
@Override
public mineplex.database.tables.Accounts as(java.lang.String alias) {
return new mineplex.database.tables.Accounts(alias, this);
}
/**
* Rename this table
*/
public mineplex.database.tables.Accounts rename(java.lang.String name) {
return new mineplex.database.tables.Accounts(name, null);
}
}

View File

@ -0,0 +1,99 @@
/**
* 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 ItemCategories extends org.jooq.impl.TableImpl<mineplex.database.tables.records.ItemCategories> implements java.io.Serializable, java.lang.Cloneable {
private static final long serialVersionUID = 1789014434;
/**
* The singleton instance of <code>Account.itemCategories</code>
*/
public static final mineplex.database.tables.ItemCategories itemCategories = new mineplex.database.tables.ItemCategories();
/**
* The class holding records for this type
*/
@Override
public java.lang.Class<mineplex.database.tables.records.ItemCategories> getRecordType() {
return mineplex.database.tables.records.ItemCategories.class;
}
/**
* The column <code>Account.itemCategories.id</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.ItemCategories, java.lang.Integer> id = createField("id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
/**
* The column <code>Account.itemCategories.name</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.ItemCategories, java.lang.String> name = createField("name", org.jooq.impl.SQLDataType.VARCHAR.length(100), this, "");
/**
* Create a <code>Account.itemCategories</code> table reference
*/
public ItemCategories() {
this("itemCategories", null);
}
/**
* Create an aliased <code>Account.itemCategories</code> table reference
*/
public ItemCategories(java.lang.String alias) {
this(alias, mineplex.database.tables.ItemCategories.itemCategories);
}
private ItemCategories(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.ItemCategories> aliased) {
this(alias, aliased, null);
}
private ItemCategories(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.ItemCategories> aliased, org.jooq.Field<?>[] parameters) {
super(alias, mineplex.database.Account.Account, aliased, parameters, "");
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Identity<mineplex.database.tables.records.ItemCategories, java.lang.Integer> getIdentity() {
return mineplex.database.Keys.IDENTITY_itemCategories;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.UniqueKey<mineplex.database.tables.records.ItemCategories> getPrimaryKey() {
return mineplex.database.Keys.KEY_itemCategories_PRIMARY;
}
/**
* {@inheritDoc}
*/
@Override
public java.util.List<org.jooq.UniqueKey<mineplex.database.tables.records.ItemCategories>> getKeys() {
return java.util.Arrays.<org.jooq.UniqueKey<mineplex.database.tables.records.ItemCategories>>asList(mineplex.database.Keys.KEY_itemCategories_PRIMARY, mineplex.database.Keys.KEY_itemCategories_nameIndex);
}
/**
* {@inheritDoc}
*/
@Override
public mineplex.database.tables.ItemCategories as(java.lang.String alias) {
return new mineplex.database.tables.ItemCategories(alias, this);
}
/**
* Rename this table
*/
public mineplex.database.tables.ItemCategories rename(java.lang.String name) {
return new mineplex.database.tables.ItemCategories(name, null);
}
}

View File

@ -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 Items extends org.jooq.impl.TableImpl<mineplex.database.tables.records.Items> implements java.io.Serializable, java.lang.Cloneable {
private static final long serialVersionUID = -2014464691;
/**
* The singleton instance of <code>Account.items</code>
*/
public static final mineplex.database.tables.Items items = new mineplex.database.tables.Items();
/**
* The class holding records for this type
*/
@Override
public java.lang.Class<mineplex.database.tables.records.Items> getRecordType() {
return mineplex.database.tables.records.Items.class;
}
/**
* The column <code>Account.items.id</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.Items, java.lang.Integer> id = createField("id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
/**
* The column <code>Account.items.name</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.Items, java.lang.String> name = createField("name", org.jooq.impl.SQLDataType.VARCHAR.length(100), this, "");
/**
* The column <code>Account.items.categoryId</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.Items, java.lang.Integer> categoryId = createField("categoryId", org.jooq.impl.SQLDataType.INTEGER, this, "");
/**
* The column <code>Account.items.rarity</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.Items, java.lang.Integer> rarity = createField("rarity", org.jooq.impl.SQLDataType.INTEGER, this, "");
/**
* Create a <code>Account.items</code> table reference
*/
public Items() {
this("items", null);
}
/**
* Create an aliased <code>Account.items</code> table reference
*/
public Items(java.lang.String alias) {
this(alias, mineplex.database.tables.Items.items);
}
private Items(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.Items> aliased) {
this(alias, aliased, null);
}
private Items(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.Items> aliased, org.jooq.Field<?>[] parameters) {
super(alias, mineplex.database.Account.Account, aliased, parameters, "");
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Identity<mineplex.database.tables.records.Items, java.lang.Integer> getIdentity() {
return mineplex.database.Keys.IDENTITY_items;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.UniqueKey<mineplex.database.tables.records.Items> getPrimaryKey() {
return mineplex.database.Keys.KEY_items_PRIMARY;
}
/**
* {@inheritDoc}
*/
@Override
public java.util.List<org.jooq.UniqueKey<mineplex.database.tables.records.Items>> getKeys() {
return java.util.Arrays.<org.jooq.UniqueKey<mineplex.database.tables.records.Items>>asList(mineplex.database.Keys.KEY_items_PRIMARY, mineplex.database.Keys.KEY_items_uniqueNameCategoryIndex);
}
/**
* {@inheritDoc}
*/
@Override
public java.util.List<org.jooq.ForeignKey<mineplex.database.tables.records.Items, ?>> getReferences() {
return java.util.Arrays.<org.jooq.ForeignKey<mineplex.database.tables.records.Items, ?>>asList(mineplex.database.Keys.items_ibfk_1);
}
/**
* {@inheritDoc}
*/
@Override
public mineplex.database.tables.Items as(java.lang.String alias) {
return new mineplex.database.tables.Items(alias, this);
}
/**
* Rename this table
*/
public mineplex.database.tables.Items rename(java.lang.String name) {
return new mineplex.database.tables.Items(name, null);
}
}

View File

@ -0,0 +1,109 @@
/**
* 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 PlayerMap extends org.jooq.impl.TableImpl<mineplex.database.tables.records.PlayerMap> implements java.io.Serializable, java.lang.Cloneable {
private static final long serialVersionUID = -2057076686;
/**
* The singleton instance of <code>Account.playerMap</code>
*/
public static final mineplex.database.tables.PlayerMap playerMap = new mineplex.database.tables.PlayerMap();
/**
* The class holding records for this type
*/
@Override
public java.lang.Class<mineplex.database.tables.records.PlayerMap> getRecordType() {
return mineplex.database.tables.records.PlayerMap.class;
}
/**
* The column <code>Account.playerMap.id</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.PlayerMap, java.lang.Integer> id = createField("id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
/**
* The column <code>Account.playerMap.playerName</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.PlayerMap, java.lang.String> playerName = createField("playerName", org.jooq.impl.SQLDataType.VARCHAR.length(256), this, "");
/**
* The column <code>Account.playerMap.serverName</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.PlayerMap, java.lang.String> serverName = createField("serverName", org.jooq.impl.SQLDataType.VARCHAR.length(256), this, "");
/**
* The column <code>Account.playerMap.us</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.PlayerMap, java.lang.Byte> us = createField("us", org.jooq.impl.SQLDataType.TINYINT.nullable(false).defaulted(true), this, "");
/**
* Create a <code>Account.playerMap</code> table reference
*/
public PlayerMap() {
this("playerMap", null);
}
/**
* Create an aliased <code>Account.playerMap</code> table reference
*/
public PlayerMap(java.lang.String alias) {
this(alias, mineplex.database.tables.PlayerMap.playerMap);
}
private PlayerMap(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.PlayerMap> aliased) {
this(alias, aliased, null);
}
private PlayerMap(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.PlayerMap> aliased, org.jooq.Field<?>[] parameters) {
super(alias, mineplex.database.Account.Account, aliased, parameters, "");
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Identity<mineplex.database.tables.records.PlayerMap, java.lang.Integer> getIdentity() {
return mineplex.database.Keys.IDENTITY_playerMap;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.UniqueKey<mineplex.database.tables.records.PlayerMap> getPrimaryKey() {
return mineplex.database.Keys.KEY_playerMap_PRIMARY;
}
/**
* {@inheritDoc}
*/
@Override
public java.util.List<org.jooq.UniqueKey<mineplex.database.tables.records.PlayerMap>> getKeys() {
return java.util.Arrays.<org.jooq.UniqueKey<mineplex.database.tables.records.PlayerMap>>asList(mineplex.database.Keys.KEY_playerMap_PRIMARY, mineplex.database.Keys.KEY_playerMap_playerIndex);
}
/**
* {@inheritDoc}
*/
@Override
public mineplex.database.tables.PlayerMap as(java.lang.String alias) {
return new mineplex.database.tables.PlayerMap(alias, this);
}
/**
* Rename this table
*/
public mineplex.database.tables.PlayerMap rename(java.lang.String name) {
return new mineplex.database.tables.PlayerMap(name, null);
}
}

View File

@ -0,0 +1,129 @@
/**
* 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 Polls extends org.jooq.impl.TableImpl<mineplex.database.tables.records.Polls> implements java.io.Serializable, java.lang.Cloneable {
private static final long serialVersionUID = -669090314;
/**
* The singleton instance of <code>Account.polls</code>
*/
public static final mineplex.database.tables.Polls polls = new mineplex.database.tables.Polls();
/**
* The class holding records for this type
*/
@Override
public java.lang.Class<mineplex.database.tables.records.Polls> getRecordType() {
return mineplex.database.tables.records.Polls.class;
}
/**
* The column <code>Account.polls.id</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.Polls, java.lang.Integer> id = createField("id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
/**
* The column <code>Account.polls.enabled</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.Polls, java.lang.Boolean> enabled = createField("enabled", org.jooq.impl.SQLDataType.BIT, this, "");
/**
* The column <code>Account.polls.question</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.Polls, java.lang.String> question = createField("question", org.jooq.impl.SQLDataType.VARCHAR.length(256).nullable(false), this, "");
/**
* The column <code>Account.polls.answerA</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.Polls, java.lang.String> answerA = createField("answerA", org.jooq.impl.SQLDataType.VARCHAR.length(256).nullable(false), this, "");
/**
* The column <code>Account.polls.answerB</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.Polls, java.lang.String> answerB = createField("answerB", org.jooq.impl.SQLDataType.VARCHAR.length(256), this, "");
/**
* The column <code>Account.polls.answerC</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.Polls, java.lang.String> answerC = createField("answerC", org.jooq.impl.SQLDataType.VARCHAR.length(256), this, "");
/**
* The column <code>Account.polls.answerD</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.Polls, java.lang.String> answerD = createField("answerD", org.jooq.impl.SQLDataType.VARCHAR.length(256), this, "");
/**
* The column <code>Account.polls.coinReward</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.Polls, java.lang.Integer> coinReward = createField("coinReward", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
/**
* Create a <code>Account.polls</code> table reference
*/
public Polls() {
this("polls", null);
}
/**
* Create an aliased <code>Account.polls</code> table reference
*/
public Polls(java.lang.String alias) {
this(alias, mineplex.database.tables.Polls.polls);
}
private Polls(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.Polls> aliased) {
this(alias, aliased, null);
}
private Polls(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.Polls> aliased, org.jooq.Field<?>[] parameters) {
super(alias, mineplex.database.Account.Account, aliased, parameters, "");
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Identity<mineplex.database.tables.records.Polls, java.lang.Integer> getIdentity() {
return mineplex.database.Keys.IDENTITY_polls;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.UniqueKey<mineplex.database.tables.records.Polls> getPrimaryKey() {
return mineplex.database.Keys.KEY_polls_PRIMARY;
}
/**
* {@inheritDoc}
*/
@Override
public java.util.List<org.jooq.UniqueKey<mineplex.database.tables.records.Polls>> getKeys() {
return java.util.Arrays.<org.jooq.UniqueKey<mineplex.database.tables.records.Polls>>asList(mineplex.database.Keys.KEY_polls_PRIMARY);
}
/**
* {@inheritDoc}
*/
@Override
public mineplex.database.tables.Polls as(java.lang.String alias) {
return new mineplex.database.tables.Polls(alias, this);
}
/**
* Rename this table
*/
public mineplex.database.tables.Polls rename(java.lang.String name) {
return new mineplex.database.tables.Polls(name, null);
}
}

View File

@ -0,0 +1,99 @@
/**
* 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 Stats extends org.jooq.impl.TableImpl<mineplex.database.tables.records.Stats> implements java.io.Serializable, java.lang.Cloneable {
private static final long serialVersionUID = -1049298598;
/**
* The singleton instance of <code>Account.stats</code>
*/
public static final mineplex.database.tables.Stats stats = new mineplex.database.tables.Stats();
/**
* The class holding records for this type
*/
@Override
public java.lang.Class<mineplex.database.tables.records.Stats> getRecordType() {
return mineplex.database.tables.records.Stats.class;
}
/**
* The column <code>Account.stats.id</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.Stats, java.lang.Integer> id = createField("id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
/**
* The column <code>Account.stats.name</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.Stats, java.lang.String> name = createField("name", org.jooq.impl.SQLDataType.VARCHAR.length(100), this, "");
/**
* Create a <code>Account.stats</code> table reference
*/
public Stats() {
this("stats", null);
}
/**
* Create an aliased <code>Account.stats</code> table reference
*/
public Stats(java.lang.String alias) {
this(alias, mineplex.database.tables.Stats.stats);
}
private Stats(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.Stats> aliased) {
this(alias, aliased, null);
}
private Stats(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.Stats> aliased, org.jooq.Field<?>[] parameters) {
super(alias, mineplex.database.Account.Account, aliased, parameters, "");
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Identity<mineplex.database.tables.records.Stats, java.lang.Integer> getIdentity() {
return mineplex.database.Keys.IDENTITY_stats;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.UniqueKey<mineplex.database.tables.records.Stats> getPrimaryKey() {
return mineplex.database.Keys.KEY_stats_PRIMARY;
}
/**
* {@inheritDoc}
*/
@Override
public java.util.List<org.jooq.UniqueKey<mineplex.database.tables.records.Stats>> getKeys() {
return java.util.Arrays.<org.jooq.UniqueKey<mineplex.database.tables.records.Stats>>asList(mineplex.database.Keys.KEY_stats_PRIMARY, mineplex.database.Keys.KEY_stats_nameIndex);
}
/**
* {@inheritDoc}
*/
@Override
public mineplex.database.tables.Stats as(java.lang.String alias) {
return new mineplex.database.tables.Stats(alias, this);
}
/**
* Rename this table
*/
public mineplex.database.tables.Stats rename(java.lang.String name) {
return new mineplex.database.tables.Stats(name, null);
}
}

View File

@ -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<mineplex.database.tables.records.TournamentLeaderboard> implements java.io.Serializable, java.lang.Cloneable {
private static final long serialVersionUID = -2050960225;
/**
* The singleton instance of <code>Account.tournamentLeaderboard</code>
*/
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<mineplex.database.tables.records.TournamentLeaderboard> getRecordType() {
return mineplex.database.tables.records.TournamentLeaderboard.class;
}
/**
* The column <code>Account.tournamentLeaderboard.id</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.TournamentLeaderboard, java.lang.Integer> id = createField("id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
/**
* The column <code>Account.tournamentLeaderboard.tournamentId</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.TournamentLeaderboard, java.lang.Integer> tournamentId = createField("tournamentId", org.jooq.impl.SQLDataType.INTEGER.nullable(false).defaulted(true), this, "");
/**
* The column <code>Account.tournamentLeaderboard.accountId</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.TournamentLeaderboard, java.lang.Integer> accountId = createField("accountId", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
/**
* The column <code>Account.tournamentLeaderboard.gameId</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.TournamentLeaderboard, java.lang.Integer> gameId = createField("gameId", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
/**
* The column <code>Account.tournamentLeaderboard.wins</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.TournamentLeaderboard, java.lang.Integer> wins = createField("wins", org.jooq.impl.SQLDataType.INTEGER.nullable(false).defaulted(true), this, "");
/**
* The column <code>Account.tournamentLeaderboard.total</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.TournamentLeaderboard, java.lang.Integer> total = createField("total", org.jooq.impl.SQLDataType.INTEGER.nullable(false).defaulted(true), this, "");
/**
* The column <code>Account.tournamentLeaderboard.ratio</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.TournamentLeaderboard, java.lang.Double> ratio = createField("ratio", org.jooq.impl.SQLDataType.FLOAT, this, "");
/**
* Create a <code>Account.tournamentLeaderboard</code> table reference
*/
public TournamentLeaderboard() {
this("tournamentLeaderboard", null);
}
/**
* Create an aliased <code>Account.tournamentLeaderboard</code> table reference
*/
public TournamentLeaderboard(java.lang.String alias) {
this(alias, mineplex.database.tables.TournamentLeaderboard.tournamentLeaderboard);
}
private TournamentLeaderboard(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.TournamentLeaderboard> aliased) {
this(alias, aliased, null);
}
private TournamentLeaderboard(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.TournamentLeaderboard> aliased, org.jooq.Field<?>[] parameters) {
super(alias, mineplex.database.Account.Account, aliased, parameters, "");
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Identity<mineplex.database.tables.records.TournamentLeaderboard, java.lang.Integer> getIdentity() {
return mineplex.database.Keys.IDENTITY_tournamentLeaderboard;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.UniqueKey<mineplex.database.tables.records.TournamentLeaderboard> getPrimaryKey() {
return mineplex.database.Keys.KEY_tournamentLeaderboard_PRIMARY;
}
/**
* {@inheritDoc}
*/
@Override
public java.util.List<org.jooq.UniqueKey<mineplex.database.tables.records.TournamentLeaderboard>> getKeys() {
return java.util.Arrays.<org.jooq.UniqueKey<mineplex.database.tables.records.TournamentLeaderboard>>asList(mineplex.database.Keys.KEY_tournamentLeaderboard_PRIMARY, mineplex.database.Keys.KEY_tournamentLeaderboard_leaderboard_account_game_UNIQUE);
}
/**
* {@inheritDoc}
*/
@Override
public java.util.List<org.jooq.ForeignKey<mineplex.database.tables.records.TournamentLeaderboard, ?>> getReferences() {
return java.util.Arrays.<org.jooq.ForeignKey<mineplex.database.tables.records.TournamentLeaderboard, ?>>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);
}
}

View File

@ -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 AccountFriend extends org.jooq.impl.UpdatableRecordImpl<mineplex.database.tables.records.AccountFriend> implements java.io.Serializable, java.lang.Cloneable, org.jooq.Record4<java.lang.Integer, java.lang.String, java.lang.String, java.lang.Byte> {
private static final long serialVersionUID = -1730990134;
/**
* Setter for <code>Account.accountFriend.id</code>.
*/
public void setId(java.lang.Integer value) {
setValue(0, value);
}
/**
* Getter for <code>Account.accountFriend.id</code>.
*/
public java.lang.Integer getId() {
return (java.lang.Integer) getValue(0);
}
/**
* Setter for <code>Account.accountFriend.uuidSource</code>.
*/
public void setUuidSource(java.lang.String value) {
setValue(1, value);
}
/**
* Getter for <code>Account.accountFriend.uuidSource</code>.
*/
public java.lang.String getUuidSource() {
return (java.lang.String) getValue(1);
}
/**
* Setter for <code>Account.accountFriend.uuidTarget</code>.
*/
public void setUuidTarget(java.lang.String value) {
setValue(2, value);
}
/**
* Getter for <code>Account.accountFriend.uuidTarget</code>.
*/
public java.lang.String getUuidTarget() {
return (java.lang.String) getValue(2);
}
/**
* Setter for <code>Account.accountFriend.mutual</code>.
*/
public void setMutual(java.lang.Byte value) {
setValue(3, value);
}
/**
* Getter for <code>Account.accountFriend.mutual</code>.
*/
public java.lang.Byte getMutual() {
return (java.lang.Byte) 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.String, java.lang.String, java.lang.Byte> fieldsRow() {
return (org.jooq.Row4) super.fieldsRow();
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Row4<java.lang.Integer, java.lang.String, java.lang.String, java.lang.Byte> valuesRow() {
return (org.jooq.Row4) super.valuesRow();
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.Integer> field1() {
return mineplex.database.tables.AccountFriend.accountFriend.id;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.String> field2() {
return mineplex.database.tables.AccountFriend.accountFriend.uuidSource;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.String> field3() {
return mineplex.database.tables.AccountFriend.accountFriend.uuidTarget;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.Byte> field4() {
return mineplex.database.tables.AccountFriend.accountFriend.mutual;
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.Integer value1() {
return getId();
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.String value2() {
return getUuidSource();
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.String value3() {
return getUuidTarget();
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.Byte value4() {
return getMutual();
}
/**
* {@inheritDoc}
*/
@Override
public AccountFriend value1(java.lang.Integer value) {
setId(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public AccountFriend value2(java.lang.String value) {
setUuidSource(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public AccountFriend value3(java.lang.String value) {
setUuidTarget(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public AccountFriend value4(java.lang.Byte value) {
setMutual(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public AccountFriend values(java.lang.Integer value1, java.lang.String value2, java.lang.String value3, java.lang.Byte value4) {
return this;
}
// -------------------------------------------------------------------------
// Constructors
// -------------------------------------------------------------------------
/**
* Create a detached AccountFriend
*/
public AccountFriend() {
super(mineplex.database.tables.AccountFriend.accountFriend);
}
/**
* Create a detached, initialised AccountFriend
*/
public AccountFriend(java.lang.Integer id, java.lang.String uuidSource, java.lang.String uuidTarget, java.lang.Byte mutual) {
super(mineplex.database.tables.AccountFriend.accountFriend);
setValue(0, id);
setValue(1, uuidSource);
setValue(2, uuidTarget);
setValue(3, mutual);
}
}

View File

@ -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 AccountInventory extends org.jooq.impl.UpdatableRecordImpl<mineplex.database.tables.records.AccountInventory> implements java.io.Serializable, java.lang.Cloneable, org.jooq.Record4<java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Integer> {
private static final long serialVersionUID = 522435571;
/**
* Setter for <code>Account.accountInventory.id</code>.
*/
public void setId(java.lang.Integer value) {
setValue(0, value);
}
/**
* Getter for <code>Account.accountInventory.id</code>.
*/
public java.lang.Integer getId() {
return (java.lang.Integer) getValue(0);
}
/**
* Setter for <code>Account.accountInventory.accountId</code>.
*/
public void setAccountId(java.lang.Integer value) {
setValue(1, value);
}
/**
* Getter for <code>Account.accountInventory.accountId</code>.
*/
public java.lang.Integer getAccountId() {
return (java.lang.Integer) getValue(1);
}
/**
* Setter for <code>Account.accountInventory.itemId</code>.
*/
public void setItemId(java.lang.Integer value) {
setValue(2, value);
}
/**
* Getter for <code>Account.accountInventory.itemId</code>.
*/
public java.lang.Integer getItemId() {
return (java.lang.Integer) getValue(2);
}
/**
* Setter for <code>Account.accountInventory.count</code>.
*/
public void setCount(java.lang.Integer value) {
setValue(3, value);
}
/**
* Getter for <code>Account.accountInventory.count</code>.
*/
public java.lang.Integer getCount() {
return (java.lang.Integer) 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.Integer> fieldsRow() {
return (org.jooq.Row4) super.fieldsRow();
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Row4<java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Integer> valuesRow() {
return (org.jooq.Row4) super.valuesRow();
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.Integer> field1() {
return mineplex.database.tables.AccountInventory.accountInventory.id;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.Integer> field2() {
return mineplex.database.tables.AccountInventory.accountInventory.accountId;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.Integer> field3() {
return mineplex.database.tables.AccountInventory.accountInventory.itemId;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.Integer> field4() {
return mineplex.database.tables.AccountInventory.accountInventory.count;
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.Integer value1() {
return getId();
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.Integer value2() {
return getAccountId();
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.Integer value3() {
return getItemId();
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.Integer value4() {
return getCount();
}
/**
* {@inheritDoc}
*/
@Override
public AccountInventory value1(java.lang.Integer value) {
setId(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public AccountInventory value2(java.lang.Integer value) {
setAccountId(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public AccountInventory value3(java.lang.Integer value) {
setItemId(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public AccountInventory value4(java.lang.Integer value) {
setCount(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public AccountInventory values(java.lang.Integer value1, java.lang.Integer value2, java.lang.Integer value3, java.lang.Integer value4) {
return this;
}
// -------------------------------------------------------------------------
// Constructors
// -------------------------------------------------------------------------
/**
* Create a detached AccountInventory
*/
public AccountInventory() {
super(mineplex.database.tables.AccountInventory.accountInventory);
}
/**
* Create a detached, initialised AccountInventory
*/
public AccountInventory(java.lang.Integer id, java.lang.Integer accountId, java.lang.Integer itemId, java.lang.Integer count) {
super(mineplex.database.tables.AccountInventory.accountInventory);
setValue(0, id);
setValue(1, accountId);
setValue(2, itemId);
setValue(3, count);
}
}

View File

@ -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 AccountPolls extends org.jooq.impl.UpdatableRecordImpl<mineplex.database.tables.records.AccountPolls> implements java.io.Serializable, java.lang.Cloneable, org.jooq.Record4<java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Byte> {
private static final long serialVersionUID = -769198627;
/**
* Setter for <code>Account.accountPolls.id</code>.
*/
public void setId(java.lang.Integer value) {
setValue(0, value);
}
/**
* Getter for <code>Account.accountPolls.id</code>.
*/
public java.lang.Integer getId() {
return (java.lang.Integer) getValue(0);
}
/**
* Setter for <code>Account.accountPolls.accountId</code>.
*/
public void setAccountId(java.lang.Integer value) {
setValue(1, value);
}
/**
* Getter for <code>Account.accountPolls.accountId</code>.
*/
public java.lang.Integer getAccountId() {
return (java.lang.Integer) getValue(1);
}
/**
* Setter for <code>Account.accountPolls.pollId</code>.
*/
public void setPollId(java.lang.Integer value) {
setValue(2, value);
}
/**
* Getter for <code>Account.accountPolls.pollId</code>.
*/
public java.lang.Integer getPollId() {
return (java.lang.Integer) getValue(2);
}
/**
* Setter for <code>Account.accountPolls.value</code>.
*/
public void setValue(java.lang.Byte value) {
setValue(3, value);
}
/**
* Getter for <code>Account.accountPolls.value</code>.
*/
public java.lang.Byte getValue() {
return (java.lang.Byte) 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.Byte> fieldsRow() {
return (org.jooq.Row4) super.fieldsRow();
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Row4<java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Byte> valuesRow() {
return (org.jooq.Row4) super.valuesRow();
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.Integer> field1() {
return mineplex.database.tables.AccountPolls.accountPolls.id;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.Integer> field2() {
return mineplex.database.tables.AccountPolls.accountPolls.accountId;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.Integer> field3() {
return mineplex.database.tables.AccountPolls.accountPolls.pollId;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.Byte> field4() {
return mineplex.database.tables.AccountPolls.accountPolls.value;
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.Integer value1() {
return getId();
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.Integer value2() {
return getAccountId();
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.Integer value3() {
return getPollId();
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.Byte value4() {
return getValue();
}
/**
* {@inheritDoc}
*/
@Override
public AccountPolls value1(java.lang.Integer value) {
setId(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public AccountPolls value2(java.lang.Integer value) {
setAccountId(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public AccountPolls value3(java.lang.Integer value) {
setPollId(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public AccountPolls value4(java.lang.Byte value) {
setValue(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public AccountPolls values(java.lang.Integer value1, java.lang.Integer value2, java.lang.Integer value3, java.lang.Byte value4) {
return this;
}
// -------------------------------------------------------------------------
// Constructors
// -------------------------------------------------------------------------
/**
* Create a detached AccountPolls
*/
public AccountPolls() {
super(mineplex.database.tables.AccountPolls.accountPolls);
}
/**
* Create a detached, initialised AccountPolls
*/
public AccountPolls(java.lang.Integer id, java.lang.Integer accountId, java.lang.Integer pollId, java.lang.Byte value) {
super(mineplex.database.tables.AccountPolls.accountPolls);
setValue(0, id);
setValue(1, accountId);
setValue(2, pollId);
setValue(3, value);
}
}

View File

@ -0,0 +1,514 @@
/**
* 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 AccountPreferences extends org.jooq.impl.UpdatableRecordImpl<mineplex.database.tables.records.AccountPreferences> implements java.io.Serializable, java.lang.Cloneable, org.jooq.Record11<java.lang.Integer, java.lang.String, java.lang.Byte, java.lang.Byte, java.lang.Byte, java.lang.Byte, java.lang.Byte, java.lang.Byte, java.lang.Byte, java.lang.Byte, java.lang.Byte> {
private static final long serialVersionUID = -1178063501;
/**
* Setter for <code>Account.accountPreferences.id</code>.
*/
public void setId(java.lang.Integer value) {
setValue(0, value);
}
/**
* Getter for <code>Account.accountPreferences.id</code>.
*/
public java.lang.Integer getId() {
return (java.lang.Integer) getValue(0);
}
/**
* Setter for <code>Account.accountPreferences.uuid</code>.
*/
public void setUuid(java.lang.String value) {
setValue(1, value);
}
/**
* Getter for <code>Account.accountPreferences.uuid</code>.
*/
public java.lang.String getUuid() {
return (java.lang.String) getValue(1);
}
/**
* Setter for <code>Account.accountPreferences.filterChat</code>.
*/
public void setFilterChat(java.lang.Byte value) {
setValue(2, value);
}
/**
* Getter for <code>Account.accountPreferences.filterChat</code>.
*/
public java.lang.Byte getFilterChat() {
return (java.lang.Byte) getValue(2);
}
/**
* Setter for <code>Account.accountPreferences.invisibility</code>.
*/
public void setInvisibility(java.lang.Byte value) {
setValue(3, value);
}
/**
* Getter for <code>Account.accountPreferences.invisibility</code>.
*/
public java.lang.Byte getInvisibility() {
return (java.lang.Byte) getValue(3);
}
/**
* Setter for <code>Account.accountPreferences.games</code>.
*/
public void setGames(java.lang.Byte value) {
setValue(4, value);
}
/**
* Getter for <code>Account.accountPreferences.games</code>.
*/
public java.lang.Byte getGames() {
return (java.lang.Byte) getValue(4);
}
/**
* Setter for <code>Account.accountPreferences.visibility</code>.
*/
public void setVisibility(java.lang.Byte value) {
setValue(5, value);
}
/**
* Getter for <code>Account.accountPreferences.visibility</code>.
*/
public java.lang.Byte getVisibility() {
return (java.lang.Byte) getValue(5);
}
/**
* Setter for <code>Account.accountPreferences.friendChat</code>.
*/
public void setFriendChat(java.lang.Byte value) {
setValue(6, value);
}
/**
* Getter for <code>Account.accountPreferences.friendChat</code>.
*/
public java.lang.Byte getFriendChat() {
return (java.lang.Byte) getValue(6);
}
/**
* Setter for <code>Account.accountPreferences.privateMessaging</code>.
*/
public void setPrivateMessaging(java.lang.Byte value) {
setValue(7, value);
}
/**
* Getter for <code>Account.accountPreferences.privateMessaging</code>.
*/
public java.lang.Byte getPrivateMessaging() {
return (java.lang.Byte) getValue(7);
}
/**
* Setter for <code>Account.accountPreferences.showChat</code>.
*/
public void setShowChat(java.lang.Byte value) {
setValue(8, value);
}
/**
* Getter for <code>Account.accountPreferences.showChat</code>.
*/
public java.lang.Byte getShowChat() {
return (java.lang.Byte) getValue(8);
}
/**
* Setter for <code>Account.accountPreferences.partyRequests</code>.
*/
public void setPartyRequests(java.lang.Byte value) {
setValue(9, value);
}
/**
* Getter for <code>Account.accountPreferences.partyRequests</code>.
*/
public java.lang.Byte getPartyRequests() {
return (java.lang.Byte) getValue(9);
}
/**
* Setter for <code>Account.accountPreferences.forcefield</code>.
*/
public void setForcefield(java.lang.Byte value) {
setValue(10, value);
}
/**
* Getter for <code>Account.accountPreferences.forcefield</code>.
*/
public java.lang.Byte getForcefield() {
return (java.lang.Byte) getValue(10);
}
// -------------------------------------------------------------------------
// Primary key information
// -------------------------------------------------------------------------
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Record1<java.lang.Integer> key() {
return (org.jooq.Record1) super.key();
}
// -------------------------------------------------------------------------
// Record11 type implementation
// -------------------------------------------------------------------------
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Row11<java.lang.Integer, java.lang.String, java.lang.Byte, java.lang.Byte, java.lang.Byte, java.lang.Byte, java.lang.Byte, java.lang.Byte, java.lang.Byte, java.lang.Byte, java.lang.Byte> fieldsRow() {
return (org.jooq.Row11) super.fieldsRow();
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Row11<java.lang.Integer, java.lang.String, java.lang.Byte, java.lang.Byte, java.lang.Byte, java.lang.Byte, java.lang.Byte, java.lang.Byte, java.lang.Byte, java.lang.Byte, java.lang.Byte> valuesRow() {
return (org.jooq.Row11) super.valuesRow();
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.Integer> field1() {
return mineplex.database.tables.AccountPreferences.accountPreferences.id;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.String> field2() {
return mineplex.database.tables.AccountPreferences.accountPreferences.uuid;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.Byte> field3() {
return mineplex.database.tables.AccountPreferences.accountPreferences.filterChat;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.Byte> field4() {
return mineplex.database.tables.AccountPreferences.accountPreferences.invisibility;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.Byte> field5() {
return mineplex.database.tables.AccountPreferences.accountPreferences.games;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.Byte> field6() {
return mineplex.database.tables.AccountPreferences.accountPreferences.visibility;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.Byte> field7() {
return mineplex.database.tables.AccountPreferences.accountPreferences.friendChat;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.Byte> field8() {
return mineplex.database.tables.AccountPreferences.accountPreferences.privateMessaging;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.Byte> field9() {
return mineplex.database.tables.AccountPreferences.accountPreferences.showChat;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.Byte> field10() {
return mineplex.database.tables.AccountPreferences.accountPreferences.partyRequests;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.Byte> field11() {
return mineplex.database.tables.AccountPreferences.accountPreferences.forcefield;
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.Integer value1() {
return getId();
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.String value2() {
return getUuid();
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.Byte value3() {
return getFilterChat();
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.Byte value4() {
return getInvisibility();
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.Byte value5() {
return getGames();
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.Byte value6() {
return getVisibility();
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.Byte value7() {
return getFriendChat();
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.Byte value8() {
return getPrivateMessaging();
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.Byte value9() {
return getShowChat();
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.Byte value10() {
return getPartyRequests();
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.Byte value11() {
return getForcefield();
}
/**
* {@inheritDoc}
*/
@Override
public AccountPreferences value1(java.lang.Integer value) {
setId(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public AccountPreferences value2(java.lang.String value) {
setUuid(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public AccountPreferences value3(java.lang.Byte value) {
setFilterChat(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public AccountPreferences value4(java.lang.Byte value) {
setInvisibility(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public AccountPreferences value5(java.lang.Byte value) {
setGames(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public AccountPreferences value6(java.lang.Byte value) {
setVisibility(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public AccountPreferences value7(java.lang.Byte value) {
setFriendChat(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public AccountPreferences value8(java.lang.Byte value) {
setPrivateMessaging(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public AccountPreferences value9(java.lang.Byte value) {
setShowChat(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public AccountPreferences value10(java.lang.Byte value) {
setPartyRequests(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public AccountPreferences value11(java.lang.Byte value) {
setForcefield(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public AccountPreferences 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) {
return this;
}
// -------------------------------------------------------------------------
// Constructors
// -------------------------------------------------------------------------
/**
* Create a detached AccountPreferences
*/
public AccountPreferences() {
super(mineplex.database.tables.AccountPreferences.accountPreferences);
}
/**
* Create a detached, initialised AccountPreferences
*/
public AccountPreferences(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) {
super(mineplex.database.tables.AccountPreferences.accountPreferences);
setValue(0, id);
setValue(1, uuid);
setValue(2, filterChat);
setValue(3, invisibility);
setValue(4, games);
setValue(5, visibility);
setValue(6, friendChat);
setValue(7, privateMessaging);
setValue(8, showChat);
setValue(9, partyRequests);
setValue(10, forcefield);
}
}

View File

@ -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 AccountStats extends org.jooq.impl.UpdatableRecordImpl<mineplex.database.tables.records.AccountStats> implements java.io.Serializable, java.lang.Cloneable, org.jooq.Record4<java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Integer> {
private static final long serialVersionUID = -802873941;
/**
* Setter for <code>Account.accountStats.id</code>.
*/
public void setId(java.lang.Integer value) {
setValue(0, value);
}
/**
* Getter for <code>Account.accountStats.id</code>.
*/
public java.lang.Integer getId() {
return (java.lang.Integer) getValue(0);
}
/**
* Setter for <code>Account.accountStats.accountId</code>.
*/
public void setAccountId(java.lang.Integer value) {
setValue(1, value);
}
/**
* Getter for <code>Account.accountStats.accountId</code>.
*/
public java.lang.Integer getAccountId() {
return (java.lang.Integer) getValue(1);
}
/**
* Setter for <code>Account.accountStats.statId</code>.
*/
public void setStatId(java.lang.Integer value) {
setValue(2, value);
}
/**
* Getter for <code>Account.accountStats.statId</code>.
*/
public java.lang.Integer getStatId() {
return (java.lang.Integer) getValue(2);
}
/**
* Setter for <code>Account.accountStats.value</code>.
*/
public void setValue(java.lang.Integer value) {
setValue(3, value);
}
/**
* Getter for <code>Account.accountStats.value</code>.
*/
public java.lang.Integer getValue() {
return (java.lang.Integer) 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.Integer> fieldsRow() {
return (org.jooq.Row4) super.fieldsRow();
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Row4<java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Integer> valuesRow() {
return (org.jooq.Row4) super.valuesRow();
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.Integer> field1() {
return mineplex.database.tables.AccountStats.accountStats.id;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.Integer> field2() {
return mineplex.database.tables.AccountStats.accountStats.accountId;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.Integer> field3() {
return mineplex.database.tables.AccountStats.accountStats.statId;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.Integer> field4() {
return mineplex.database.tables.AccountStats.accountStats.value;
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.Integer value1() {
return getId();
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.Integer value2() {
return getAccountId();
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.Integer value3() {
return getStatId();
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.Integer value4() {
return getValue();
}
/**
* {@inheritDoc}
*/
@Override
public AccountStats value1(java.lang.Integer value) {
setId(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public AccountStats value2(java.lang.Integer value) {
setAccountId(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public AccountStats value3(java.lang.Integer value) {
setStatId(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public AccountStats value4(java.lang.Integer value) {
setValue(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public AccountStats values(java.lang.Integer value1, java.lang.Integer value2, java.lang.Integer value3, java.lang.Integer value4) {
return this;
}
// -------------------------------------------------------------------------
// Constructors
// -------------------------------------------------------------------------
/**
* Create a detached AccountStats
*/
public AccountStats() {
super(mineplex.database.tables.AccountStats.accountStats);
}
/**
* Create a detached, initialised AccountStats
*/
public AccountStats(java.lang.Integer id, java.lang.Integer accountId, java.lang.Integer statId, java.lang.Integer value) {
super(mineplex.database.tables.AccountStats.accountStats);
setValue(0, id);
setValue(1, accountId);
setValue(2, statId);
setValue(3, value);
}
}

View File

@ -0,0 +1,434 @@
/**
* 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 Accounts extends org.jooq.impl.UpdatableRecordImpl<mineplex.database.tables.records.Accounts> implements java.io.Serializable, java.lang.Cloneable, org.jooq.Record9<java.lang.Integer, java.lang.String, java.lang.String, java.lang.Integer, java.lang.String, java.lang.Byte, java.lang.String, java.lang.String, java.lang.String> {
private static final long serialVersionUID = -1222920421;
/**
* Setter for <code>Account.accounts.id</code>.
*/
public void setId(java.lang.Integer value) {
setValue(0, value);
}
/**
* Getter for <code>Account.accounts.id</code>.
*/
public java.lang.Integer getId() {
return (java.lang.Integer) getValue(0);
}
/**
* Setter for <code>Account.accounts.uuid</code>.
*/
public void setUuid(java.lang.String value) {
setValue(1, value);
}
/**
* Getter for <code>Account.accounts.uuid</code>.
*/
public java.lang.String getUuid() {
return (java.lang.String) getValue(1);
}
/**
* Setter for <code>Account.accounts.name</code>.
*/
public void setName(java.lang.String value) {
setValue(2, value);
}
/**
* Getter for <code>Account.accounts.name</code>.
*/
public java.lang.String getName() {
return (java.lang.String) getValue(2);
}
/**
* Setter for <code>Account.accounts.gems</code>.
*/
public void setGems(java.lang.Integer value) {
setValue(3, value);
}
/**
* Getter for <code>Account.accounts.gems</code>.
*/
public java.lang.Integer getGems() {
return (java.lang.Integer) getValue(3);
}
/**
* Setter for <code>Account.accounts.rank</code>.
*/
public void setRank(java.lang.String value) {
setValue(4, value);
}
/**
* Getter for <code>Account.accounts.rank</code>.
*/
public java.lang.String getRank() {
return (java.lang.String) getValue(4);
}
/**
* Setter for <code>Account.accounts.rankPerm</code>.
*/
public void setRankPerm(java.lang.Byte value) {
setValue(5, value);
}
/**
* Getter for <code>Account.accounts.rankPerm</code>.
*/
public java.lang.Byte getRankPerm() {
return (java.lang.Byte) getValue(5);
}
/**
* Setter for <code>Account.accounts.rankExpire</code>.
*/
public void setRankExpire(java.lang.String value) {
setValue(6, value);
}
/**
* Getter for <code>Account.accounts.rankExpire</code>.
*/
public java.lang.String getRankExpire() {
return (java.lang.String) getValue(6);
}
/**
* Setter for <code>Account.accounts.lastLogin</code>.
*/
public void setLastLogin(java.lang.String value) {
setValue(7, value);
}
/**
* Getter for <code>Account.accounts.lastLogin</code>.
*/
public java.lang.String getLastLogin() {
return (java.lang.String) getValue(7);
}
/**
* Setter for <code>Account.accounts.totalPlayTime</code>.
*/
public void setTotalPlayTime(java.lang.String value) {
setValue(8, value);
}
/**
* Getter for <code>Account.accounts.totalPlayTime</code>.
*/
public java.lang.String getTotalPlayTime() {
return (java.lang.String) getValue(8);
}
// -------------------------------------------------------------------------
// Primary key information
// -------------------------------------------------------------------------
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Record1<java.lang.Integer> key() {
return (org.jooq.Record1) super.key();
}
// -------------------------------------------------------------------------
// Record9 type implementation
// -------------------------------------------------------------------------
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Row9<java.lang.Integer, java.lang.String, java.lang.String, java.lang.Integer, java.lang.String, java.lang.Byte, java.lang.String, java.lang.String, java.lang.String> fieldsRow() {
return (org.jooq.Row9) super.fieldsRow();
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Row9<java.lang.Integer, java.lang.String, java.lang.String, java.lang.Integer, java.lang.String, java.lang.Byte, java.lang.String, java.lang.String, java.lang.String> valuesRow() {
return (org.jooq.Row9) super.valuesRow();
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.Integer> field1() {
return mineplex.database.tables.Accounts.accounts.id;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.String> field2() {
return mineplex.database.tables.Accounts.accounts.uuid;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.String> field3() {
return mineplex.database.tables.Accounts.accounts.name;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.Integer> field4() {
return mineplex.database.tables.Accounts.accounts.gems;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.String> field5() {
return mineplex.database.tables.Accounts.accounts.rank;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.Byte> field6() {
return mineplex.database.tables.Accounts.accounts.rankPerm;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.String> field7() {
return mineplex.database.tables.Accounts.accounts.rankExpire;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.String> field8() {
return mineplex.database.tables.Accounts.accounts.lastLogin;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.String> field9() {
return mineplex.database.tables.Accounts.accounts.totalPlayTime;
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.Integer value1() {
return getId();
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.String value2() {
return getUuid();
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.String value3() {
return getName();
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.Integer value4() {
return getGems();
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.String value5() {
return getRank();
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.Byte value6() {
return getRankPerm();
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.String value7() {
return getRankExpire();
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.String value8() {
return getLastLogin();
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.String value9() {
return getTotalPlayTime();
}
/**
* {@inheritDoc}
*/
@Override
public Accounts value1(java.lang.Integer value) {
setId(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public Accounts value2(java.lang.String value) {
setUuid(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public Accounts value3(java.lang.String value) {
setName(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public Accounts value4(java.lang.Integer value) {
setGems(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public Accounts value5(java.lang.String value) {
setRank(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public Accounts value6(java.lang.Byte value) {
setRankPerm(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public Accounts value7(java.lang.String value) {
setRankExpire(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public Accounts value8(java.lang.String value) {
setLastLogin(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public Accounts value9(java.lang.String value) {
setTotalPlayTime(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public Accounts values(java.lang.Integer value1, java.lang.String value2, java.lang.String value3, java.lang.Integer value4, java.lang.String value5, java.lang.Byte value6, java.lang.String value7, java.lang.String value8, java.lang.String value9) {
return this;
}
// -------------------------------------------------------------------------
// Constructors
// -------------------------------------------------------------------------
/**
* Create a detached Accounts
*/
public Accounts() {
super(mineplex.database.tables.Accounts.accounts);
}
/**
* Create a detached, initialised Accounts
*/
public Accounts(java.lang.Integer id, java.lang.String uuid, java.lang.String name, java.lang.Integer gems, java.lang.String rank, java.lang.Byte rankPerm, java.lang.String rankExpire, java.lang.String lastLogin, java.lang.String totalPlayTime) {
super(mineplex.database.tables.Accounts.accounts);
setValue(0, id);
setValue(1, uuid);
setValue(2, name);
setValue(3, gems);
setValue(4, rank);
setValue(5, rankPerm);
setValue(6, rankExpire);
setValue(7, lastLogin);
setValue(8, totalPlayTime);
}
}

View File

@ -0,0 +1,154 @@
/**
* 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 ItemCategories extends org.jooq.impl.UpdatableRecordImpl<mineplex.database.tables.records.ItemCategories> implements java.io.Serializable, java.lang.Cloneable, org.jooq.Record2<java.lang.Integer, java.lang.String> {
private static final long serialVersionUID = -374955621;
/**
* Setter for <code>Account.itemCategories.id</code>.
*/
public void setId(java.lang.Integer value) {
setValue(0, value);
}
/**
* Getter for <code>Account.itemCategories.id</code>.
*/
public java.lang.Integer getId() {
return (java.lang.Integer) getValue(0);
}
/**
* Setter for <code>Account.itemCategories.name</code>.
*/
public void setName(java.lang.String value) {
setValue(1, value);
}
/**
* Getter for <code>Account.itemCategories.name</code>.
*/
public java.lang.String getName() {
return (java.lang.String) getValue(1);
}
// -------------------------------------------------------------------------
// Primary key information
// -------------------------------------------------------------------------
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Record1<java.lang.Integer> key() {
return (org.jooq.Record1) super.key();
}
// -------------------------------------------------------------------------
// Record2 type implementation
// -------------------------------------------------------------------------
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Row2<java.lang.Integer, java.lang.String> fieldsRow() {
return (org.jooq.Row2) super.fieldsRow();
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Row2<java.lang.Integer, java.lang.String> valuesRow() {
return (org.jooq.Row2) super.valuesRow();
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.Integer> field1() {
return mineplex.database.tables.ItemCategories.itemCategories.id;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.String> field2() {
return mineplex.database.tables.ItemCategories.itemCategories.name;
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.Integer value1() {
return getId();
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.String value2() {
return getName();
}
/**
* {@inheritDoc}
*/
@Override
public ItemCategories value1(java.lang.Integer value) {
setId(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public ItemCategories value2(java.lang.String value) {
setName(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public ItemCategories values(java.lang.Integer value1, java.lang.String value2) {
return this;
}
// -------------------------------------------------------------------------
// Constructors
// -------------------------------------------------------------------------
/**
* Create a detached ItemCategories
*/
public ItemCategories() {
super(mineplex.database.tables.ItemCategories.itemCategories);
}
/**
* Create a detached, initialised ItemCategories
*/
public ItemCategories(java.lang.Integer id, java.lang.String name) {
super(mineplex.database.tables.ItemCategories.itemCategories);
setValue(0, id);
setValue(1, name);
}
}

View File

@ -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 Items extends org.jooq.impl.UpdatableRecordImpl<mineplex.database.tables.records.Items> implements java.io.Serializable, java.lang.Cloneable, org.jooq.Record4<java.lang.Integer, java.lang.String, java.lang.Integer, java.lang.Integer> {
private static final long serialVersionUID = -1795250209;
/**
* Setter for <code>Account.items.id</code>.
*/
public void setId(java.lang.Integer value) {
setValue(0, value);
}
/**
* Getter for <code>Account.items.id</code>.
*/
public java.lang.Integer getId() {
return (java.lang.Integer) getValue(0);
}
/**
* Setter for <code>Account.items.name</code>.
*/
public void setName(java.lang.String value) {
setValue(1, value);
}
/**
* Getter for <code>Account.items.name</code>.
*/
public java.lang.String getName() {
return (java.lang.String) getValue(1);
}
/**
* Setter for <code>Account.items.categoryId</code>.
*/
public void setCategoryId(java.lang.Integer value) {
setValue(2, value);
}
/**
* Getter for <code>Account.items.categoryId</code>.
*/
public java.lang.Integer getCategoryId() {
return (java.lang.Integer) getValue(2);
}
/**
* Setter for <code>Account.items.rarity</code>.
*/
public void setRarity(java.lang.Integer value) {
setValue(3, value);
}
/**
* Getter for <code>Account.items.rarity</code>.
*/
public java.lang.Integer getRarity() {
return (java.lang.Integer) 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.String, java.lang.Integer, java.lang.Integer> fieldsRow() {
return (org.jooq.Row4) super.fieldsRow();
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Row4<java.lang.Integer, java.lang.String, java.lang.Integer, java.lang.Integer> valuesRow() {
return (org.jooq.Row4) super.valuesRow();
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.Integer> field1() {
return mineplex.database.tables.Items.items.id;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.String> field2() {
return mineplex.database.tables.Items.items.name;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.Integer> field3() {
return mineplex.database.tables.Items.items.categoryId;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.Integer> field4() {
return mineplex.database.tables.Items.items.rarity;
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.Integer value1() {
return getId();
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.String value2() {
return getName();
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.Integer value3() {
return getCategoryId();
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.Integer value4() {
return getRarity();
}
/**
* {@inheritDoc}
*/
@Override
public Items value1(java.lang.Integer value) {
setId(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public Items value2(java.lang.String value) {
setName(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public Items value3(java.lang.Integer value) {
setCategoryId(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public Items value4(java.lang.Integer value) {
setRarity(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public Items values(java.lang.Integer value1, java.lang.String value2, java.lang.Integer value3, java.lang.Integer value4) {
return this;
}
// -------------------------------------------------------------------------
// Constructors
// -------------------------------------------------------------------------
/**
* Create a detached Items
*/
public Items() {
super(mineplex.database.tables.Items.items);
}
/**
* Create a detached, initialised Items
*/
public Items(java.lang.Integer id, java.lang.String name, java.lang.Integer categoryId, java.lang.Integer rarity) {
super(mineplex.database.tables.Items.items);
setValue(0, id);
setValue(1, name);
setValue(2, categoryId);
setValue(3, rarity);
}
}

View File

@ -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 PlayerMap extends org.jooq.impl.UpdatableRecordImpl<mineplex.database.tables.records.PlayerMap> implements java.io.Serializable, java.lang.Cloneable, org.jooq.Record4<java.lang.Integer, java.lang.String, java.lang.String, java.lang.Byte> {
private static final long serialVersionUID = -1149558408;
/**
* Setter for <code>Account.playerMap.id</code>.
*/
public void setId(java.lang.Integer value) {
setValue(0, value);
}
/**
* Getter for <code>Account.playerMap.id</code>.
*/
public java.lang.Integer getId() {
return (java.lang.Integer) getValue(0);
}
/**
* Setter for <code>Account.playerMap.playerName</code>.
*/
public void setPlayerName(java.lang.String value) {
setValue(1, value);
}
/**
* Getter for <code>Account.playerMap.playerName</code>.
*/
public java.lang.String getPlayerName() {
return (java.lang.String) getValue(1);
}
/**
* Setter for <code>Account.playerMap.serverName</code>.
*/
public void setServerName(java.lang.String value) {
setValue(2, value);
}
/**
* Getter for <code>Account.playerMap.serverName</code>.
*/
public java.lang.String getServerName() {
return (java.lang.String) getValue(2);
}
/**
* Setter for <code>Account.playerMap.us</code>.
*/
public void setUs(java.lang.Byte value) {
setValue(3, value);
}
/**
* Getter for <code>Account.playerMap.us</code>.
*/
public java.lang.Byte getUs() {
return (java.lang.Byte) 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.String, java.lang.String, java.lang.Byte> fieldsRow() {
return (org.jooq.Row4) super.fieldsRow();
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Row4<java.lang.Integer, java.lang.String, java.lang.String, java.lang.Byte> valuesRow() {
return (org.jooq.Row4) super.valuesRow();
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.Integer> field1() {
return mineplex.database.tables.PlayerMap.playerMap.id;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.String> field2() {
return mineplex.database.tables.PlayerMap.playerMap.playerName;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.String> field3() {
return mineplex.database.tables.PlayerMap.playerMap.serverName;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.Byte> field4() {
return mineplex.database.tables.PlayerMap.playerMap.us;
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.Integer value1() {
return getId();
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.String value2() {
return getPlayerName();
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.String value3() {
return getServerName();
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.Byte value4() {
return getUs();
}
/**
* {@inheritDoc}
*/
@Override
public PlayerMap value1(java.lang.Integer value) {
setId(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public PlayerMap value2(java.lang.String value) {
setPlayerName(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public PlayerMap value3(java.lang.String value) {
setServerName(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public PlayerMap value4(java.lang.Byte value) {
setUs(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public PlayerMap values(java.lang.Integer value1, java.lang.String value2, java.lang.String value3, java.lang.Byte value4) {
return this;
}
// -------------------------------------------------------------------------
// Constructors
// -------------------------------------------------------------------------
/**
* Create a detached PlayerMap
*/
public PlayerMap() {
super(mineplex.database.tables.PlayerMap.playerMap);
}
/**
* Create a detached, initialised PlayerMap
*/
public PlayerMap(java.lang.Integer id, java.lang.String playerName, java.lang.String serverName, java.lang.Byte us) {
super(mineplex.database.tables.PlayerMap.playerMap);
setValue(0, id);
setValue(1, playerName);
setValue(2, serverName);
setValue(3, us);
}
}

View File

@ -0,0 +1,394 @@
/**
* 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 Polls extends org.jooq.impl.UpdatableRecordImpl<mineplex.database.tables.records.Polls> implements java.io.Serializable, java.lang.Cloneable, org.jooq.Record8<java.lang.Integer, java.lang.Boolean, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.Integer> {
private static final long serialVersionUID = 1807349031;
/**
* Setter for <code>Account.polls.id</code>.
*/
public void setId(java.lang.Integer value) {
setValue(0, value);
}
/**
* Getter for <code>Account.polls.id</code>.
*/
public java.lang.Integer getId() {
return (java.lang.Integer) getValue(0);
}
/**
* Setter for <code>Account.polls.enabled</code>.
*/
public void setEnabled(java.lang.Boolean value) {
setValue(1, value);
}
/**
* Getter for <code>Account.polls.enabled</code>.
*/
public java.lang.Boolean getEnabled() {
return (java.lang.Boolean) getValue(1);
}
/**
* Setter for <code>Account.polls.question</code>.
*/
public void setQuestion(java.lang.String value) {
setValue(2, value);
}
/**
* Getter for <code>Account.polls.question</code>.
*/
public java.lang.String getQuestion() {
return (java.lang.String) getValue(2);
}
/**
* Setter for <code>Account.polls.answerA</code>.
*/
public void setAnswerA(java.lang.String value) {
setValue(3, value);
}
/**
* Getter for <code>Account.polls.answerA</code>.
*/
public java.lang.String getAnswerA() {
return (java.lang.String) getValue(3);
}
/**
* Setter for <code>Account.polls.answerB</code>.
*/
public void setAnswerB(java.lang.String value) {
setValue(4, value);
}
/**
* Getter for <code>Account.polls.answerB</code>.
*/
public java.lang.String getAnswerB() {
return (java.lang.String) getValue(4);
}
/**
* Setter for <code>Account.polls.answerC</code>.
*/
public void setAnswerC(java.lang.String value) {
setValue(5, value);
}
/**
* Getter for <code>Account.polls.answerC</code>.
*/
public java.lang.String getAnswerC() {
return (java.lang.String) getValue(5);
}
/**
* Setter for <code>Account.polls.answerD</code>.
*/
public void setAnswerD(java.lang.String value) {
setValue(6, value);
}
/**
* Getter for <code>Account.polls.answerD</code>.
*/
public java.lang.String getAnswerD() {
return (java.lang.String) getValue(6);
}
/**
* Setter for <code>Account.polls.coinReward</code>.
*/
public void setCoinReward(java.lang.Integer value) {
setValue(7, value);
}
/**
* Getter for <code>Account.polls.coinReward</code>.
*/
public java.lang.Integer getCoinReward() {
return (java.lang.Integer) getValue(7);
}
// -------------------------------------------------------------------------
// Primary key information
// -------------------------------------------------------------------------
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Record1<java.lang.Integer> key() {
return (org.jooq.Record1) super.key();
}
// -------------------------------------------------------------------------
// Record8 type implementation
// -------------------------------------------------------------------------
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Row8<java.lang.Integer, java.lang.Boolean, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.Integer> fieldsRow() {
return (org.jooq.Row8) super.fieldsRow();
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Row8<java.lang.Integer, java.lang.Boolean, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.Integer> valuesRow() {
return (org.jooq.Row8) super.valuesRow();
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.Integer> field1() {
return mineplex.database.tables.Polls.polls.id;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.Boolean> field2() {
return mineplex.database.tables.Polls.polls.enabled;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.String> field3() {
return mineplex.database.tables.Polls.polls.question;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.String> field4() {
return mineplex.database.tables.Polls.polls.answerA;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.String> field5() {
return mineplex.database.tables.Polls.polls.answerB;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.String> field6() {
return mineplex.database.tables.Polls.polls.answerC;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.String> field7() {
return mineplex.database.tables.Polls.polls.answerD;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.Integer> field8() {
return mineplex.database.tables.Polls.polls.coinReward;
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.Integer value1() {
return getId();
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.Boolean value2() {
return getEnabled();
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.String value3() {
return getQuestion();
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.String value4() {
return getAnswerA();
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.String value5() {
return getAnswerB();
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.String value6() {
return getAnswerC();
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.String value7() {
return getAnswerD();
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.Integer value8() {
return getCoinReward();
}
/**
* {@inheritDoc}
*/
@Override
public Polls value1(java.lang.Integer value) {
setId(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public Polls value2(java.lang.Boolean value) {
setEnabled(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public Polls value3(java.lang.String value) {
setQuestion(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public Polls value4(java.lang.String value) {
setAnswerA(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public Polls value5(java.lang.String value) {
setAnswerB(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public Polls value6(java.lang.String value) {
setAnswerC(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public Polls value7(java.lang.String value) {
setAnswerD(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public Polls value8(java.lang.Integer value) {
setCoinReward(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public Polls values(java.lang.Integer value1, java.lang.Boolean value2, java.lang.String value3, java.lang.String value4, java.lang.String value5, java.lang.String value6, java.lang.String value7, java.lang.Integer value8) {
return this;
}
// -------------------------------------------------------------------------
// Constructors
// -------------------------------------------------------------------------
/**
* Create a detached Polls
*/
public Polls() {
super(mineplex.database.tables.Polls.polls);
}
/**
* Create a detached, initialised Polls
*/
public Polls(java.lang.Integer id, java.lang.Boolean enabled, java.lang.String question, java.lang.String answerA, java.lang.String answerB, java.lang.String answerC, java.lang.String answerD, java.lang.Integer coinReward) {
super(mineplex.database.tables.Polls.polls);
setValue(0, id);
setValue(1, enabled);
setValue(2, question);
setValue(3, answerA);
setValue(4, answerB);
setValue(5, answerC);
setValue(6, answerD);
setValue(7, coinReward);
}
}

View File

@ -0,0 +1,154 @@
/**
* 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 Stats extends org.jooq.impl.UpdatableRecordImpl<mineplex.database.tables.records.Stats> implements java.io.Serializable, java.lang.Cloneable, org.jooq.Record2<java.lang.Integer, java.lang.String> {
private static final long serialVersionUID = 1558297009;
/**
* Setter for <code>Account.stats.id</code>.
*/
public void setId(java.lang.Integer value) {
setValue(0, value);
}
/**
* Getter for <code>Account.stats.id</code>.
*/
public java.lang.Integer getId() {
return (java.lang.Integer) getValue(0);
}
/**
* Setter for <code>Account.stats.name</code>.
*/
public void setName(java.lang.String value) {
setValue(1, value);
}
/**
* Getter for <code>Account.stats.name</code>.
*/
public java.lang.String getName() {
return (java.lang.String) getValue(1);
}
// -------------------------------------------------------------------------
// Primary key information
// -------------------------------------------------------------------------
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Record1<java.lang.Integer> key() {
return (org.jooq.Record1) super.key();
}
// -------------------------------------------------------------------------
// Record2 type implementation
// -------------------------------------------------------------------------
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Row2<java.lang.Integer, java.lang.String> fieldsRow() {
return (org.jooq.Row2) super.fieldsRow();
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Row2<java.lang.Integer, java.lang.String> valuesRow() {
return (org.jooq.Row2) super.valuesRow();
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.Integer> field1() {
return mineplex.database.tables.Stats.stats.id;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.String> field2() {
return mineplex.database.tables.Stats.stats.name;
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.Integer value1() {
return getId();
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.String value2() {
return getName();
}
/**
* {@inheritDoc}
*/
@Override
public Stats value1(java.lang.Integer value) {
setId(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public Stats value2(java.lang.String value) {
setName(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public Stats values(java.lang.Integer value1, java.lang.String value2) {
return this;
}
// -------------------------------------------------------------------------
// Constructors
// -------------------------------------------------------------------------
/**
* Create a detached Stats
*/
public Stats() {
super(mineplex.database.tables.Stats.stats);
}
/**
* Create a detached, initialised Stats
*/
public Stats(java.lang.Integer id, java.lang.String name) {
super(mineplex.database.tables.Stats.stats);
setValue(0, id);
setValue(1, name);
}
}

View File

@ -0,0 +1,354 @@
/**
* 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 TournamentLeaderboard extends org.jooq.impl.UpdatableRecordImpl<mineplex.database.tables.records.TournamentLeaderboard> implements java.io.Serializable, java.lang.Cloneable, org.jooq.Record7<java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Double> {
private static final long serialVersionUID = -1193236965;
/**
* Setter for <code>Account.tournamentLeaderboard.id</code>.
*/
public void setId(java.lang.Integer value) {
setValue(0, value);
}
/**
* Getter for <code>Account.tournamentLeaderboard.id</code>.
*/
public java.lang.Integer getId() {
return (java.lang.Integer) getValue(0);
}
/**
* Setter for <code>Account.tournamentLeaderboard.tournamentId</code>.
*/
public void setTournamentId(java.lang.Integer value) {
setValue(1, value);
}
/**
* Getter for <code>Account.tournamentLeaderboard.tournamentId</code>.
*/
public java.lang.Integer getTournamentId() {
return (java.lang.Integer) getValue(1);
}
/**
* Setter for <code>Account.tournamentLeaderboard.accountId</code>.
*/
public void setAccountId(java.lang.Integer value) {
setValue(2, value);
}
/**
* Getter for <code>Account.tournamentLeaderboard.accountId</code>.
*/
public java.lang.Integer getAccountId() {
return (java.lang.Integer) getValue(2);
}
/**
* Setter for <code>Account.tournamentLeaderboard.gameId</code>.
*/
public void setGameId(java.lang.Integer value) {
setValue(3, value);
}
/**
* Getter for <code>Account.tournamentLeaderboard.gameId</code>.
*/
public java.lang.Integer getGameId() {
return (java.lang.Integer) getValue(3);
}
/**
* Setter for <code>Account.tournamentLeaderboard.wins</code>.
*/
public void setWins(java.lang.Integer value) {
setValue(4, value);
}
/**
* Getter for <code>Account.tournamentLeaderboard.wins</code>.
*/
public java.lang.Integer getWins() {
return (java.lang.Integer) getValue(4);
}
/**
* Setter for <code>Account.tournamentLeaderboard.total</code>.
*/
public void setTotal(java.lang.Integer value) {
setValue(5, value);
}
/**
* Getter for <code>Account.tournamentLeaderboard.total</code>.
*/
public java.lang.Integer getTotal() {
return (java.lang.Integer) getValue(5);
}
/**
* Setter for <code>Account.tournamentLeaderboard.ratio</code>.
*/
public void setRatio(java.lang.Double value) {
setValue(6, value);
}
/**
* Getter for <code>Account.tournamentLeaderboard.ratio</code>.
*/
public java.lang.Double getRatio() {
return (java.lang.Double) getValue(6);
}
// -------------------------------------------------------------------------
// Primary key information
// -------------------------------------------------------------------------
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Record1<java.lang.Integer> key() {
return (org.jooq.Record1) super.key();
}
// -------------------------------------------------------------------------
// Record7 type implementation
// -------------------------------------------------------------------------
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Row7<java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Double> fieldsRow() {
return (org.jooq.Row7) super.fieldsRow();
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Row7<java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Integer, java.lang.Double> valuesRow() {
return (org.jooq.Row7) super.valuesRow();
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.Integer> field1() {
return mineplex.database.tables.TournamentLeaderboard.tournamentLeaderboard.id;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.Integer> field2() {
return mineplex.database.tables.TournamentLeaderboard.tournamentLeaderboard.tournamentId;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.Integer> field3() {
return mineplex.database.tables.TournamentLeaderboard.tournamentLeaderboard.accountId;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.Integer> field4() {
return mineplex.database.tables.TournamentLeaderboard.tournamentLeaderboard.gameId;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.Integer> field5() {
return mineplex.database.tables.TournamentLeaderboard.tournamentLeaderboard.wins;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.Integer> field6() {
return mineplex.database.tables.TournamentLeaderboard.tournamentLeaderboard.total;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.Double> field7() {
return mineplex.database.tables.TournamentLeaderboard.tournamentLeaderboard.ratio;
}
/**
* {@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 getRatio();
}
/**
* {@inheritDoc}
*/
@Override
public TournamentLeaderboard value1(java.lang.Integer value) {
setId(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public TournamentLeaderboard value2(java.lang.Integer value) {
setTournamentId(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public TournamentLeaderboard value3(java.lang.Integer value) {
setAccountId(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public TournamentLeaderboard value4(java.lang.Integer value) {
setGameId(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public TournamentLeaderboard value5(java.lang.Integer value) {
setWins(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public TournamentLeaderboard value6(java.lang.Integer value) {
setTotal(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public TournamentLeaderboard value7(java.lang.Double value) {
setRatio(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public TournamentLeaderboard 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 TournamentLeaderboard
*/
public TournamentLeaderboard() {
super(mineplex.database.tables.TournamentLeaderboard.tournamentLeaderboard);
}
/**
* Create a detached, initialised TournamentLeaderboard
*/
public TournamentLeaderboard(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 ratio) {
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, ratio);
}
}

View File

@ -0,0 +1,126 @@
package mineplex.jooq;
import java.io.Serializable;
import java.util.Arrays;
import java.util.List;
import org.jooq.util.DefaultGeneratorStrategy;
import org.jooq.util.Definition;
/**
* It is recommended that you extend the DefaultGeneratorStrategy. Most of the
* GeneratorStrategy API is already declared final. You only need to override any
* of the following methods, for whatever generation behaviour you'd like to achieve
* <p/>
* Beware that most methods also receive a "Mode" object, to tell you whether a
* TableDefinition is being rendered as a Table, Record, POJO, etc. Depending on
* that information, you can add a suffix only for TableRecords, not for Tables
*/
public class AsInDatabaseStrategy extends DefaultGeneratorStrategy
{
/**
* Override this to specify what identifiers in Java should look like.
* This will just take the identifier as defined in the database.
*/
@Override
public String getJavaIdentifier(Definition definition)
{
return definition.getOutputName();
}
/**
* Override these to specify what a setter in Java should look like. Setters
* are used in TableRecords, UDTRecords, and POJOs. This example will name
* setters "set[NAME_IN_DATABASE]"
*/
@Override
public String getJavaSetterName(Definition definition, Mode mode)
{
return "set" + definition.getOutputName().substring(0, 1).toUpperCase() + definition.getOutputName().substring(1);
}
/**
* Just like setters...
*/
@Override
public String getJavaGetterName(Definition definition, Mode mode)
{
return "get" + definition.getOutputName().substring(0, 1).toUpperCase() + definition.getOutputName().substring(1);
}
/**
* Override this method to define what a Java method generated from a database
* Definition should look like. This is used mostly for convenience methods
* when calling stored procedures and functions. This example shows how to
* set a prefix to a CamelCase version of your procedure
*/
@Override
public String getJavaMethodName(Definition definition, Mode mode)
{
return "call" + org.jooq.tools.StringUtils.toCamelCase(definition.getOutputName());
}
/**
* Override this method to define how your Java classes and Java files should
* be named. This example applies no custom setting and uses CamelCase versions
* instead
*/
@Override
public String getJavaClassName(Definition definition, Mode mode)
{
return definition.getOutputName().substring(0, 1).toUpperCase() + definition.getOutputName().substring(1);
}
/**
* Override this method to re-define the package names of your generated
* artefacts.
*/
@Override
public String getJavaPackageName(Definition definition, Mode mode)
{
return super.getJavaPackageName(definition, mode);
}
/**
* Override this method to define how Java members should be named. This is
* used for POJOs and method arguments
*/
@Override
public String getJavaMemberName(Definition definition, Mode mode)
{
return definition.getOutputName();
}
/**
* Override this method to define the base class for those artifacts that
* allow for custom base classes
*/
@Override
public String getJavaClassExtends(Definition definition, Mode mode)
{
return Object.class.getName();
}
/**
* Override this method to define the interfaces to be implemented by those
* artefacts that allow for custom interface implementation
*/
@Override
public List<String> getJavaClassImplements(Definition definition, Mode mode)
{
return Arrays.asList(Serializable.class.getName(), Cloneable.class.getName());
}
/**
* Override this method to define the suffix to apply to routines when
* they are overloaded.
* <p/>
* Use this to resolve compile-time conflicts in generated source code, in
* case you make heavy use of procedure overloading
*/
@Override
public String getOverloadSuffix(Definition definition, Mode mode, String overloadIndex)
{
return "_OverloadIndex_" + overloadIndex;
}
}

View File

@ -5,6 +5,7 @@ import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import mineplex.core.leaderboard.LeaderboardRepository;
import nautilus.game.arcade.addons.*;
import nautilus.game.arcade.command.*;
import nautilus.game.arcade.events.GameStateChangeEvent;
@ -122,6 +123,7 @@ public class ArcadeManager extends MiniPlugin implements IRelation
private ClassShopManager _classShopManager;
private ClassCombatShop _classShop;
private TaskManager _taskManager;
private LeaderboardRepository _leaderboardRepository;
private EloManager _eloManager;
@ -235,6 +237,8 @@ public class ArcadeManager extends MiniPlugin implements IRelation
new MiscManager(this);
new IdleManager(this);
_leaderboardRepository = new LeaderboardRepository(plugin);
// Game Addons
new CompassAddon(plugin, this);
new SoupAddon(plugin, this);
@ -952,4 +956,9 @@ public class ArcadeManager extends MiniPlugin implements IRelation
}
}
}
public LeaderboardRepository getLeaderboardRepository()
{
return _leaderboardRepository;
}
}

View File

@ -0,0 +1,42 @@
package nautilus.game.arcade;
import java.util.EnumSet;
import java.util.Set;
public enum TournamentType
{
SUPER_SMASH_MOBS(GameType.Smash),
SURVIVAL_GAMES(GameType.SurvivalGames),
MIXED_ARCADE(
GameType.Dragons,
GameType.DragonEscape,
GameType.DeathTag,
GameType.Runner,
GameType.Snake,
GameType.Spleef,
GameType.SneakyAssassins,
GameType.Quiver);
private final Set<GameType> _gameTypes;
TournamentType(GameType firstGameType, GameType... rest)
{
_gameTypes = EnumSet.of(firstGameType, rest);
}
public Set<GameType> getGameTypes()
{
return _gameTypes;
}
public static TournamentType getTournamentType(GameType gameType)
{
for (TournamentType type : values())
{
if (type.getGameTypes().contains(gameType))
return type;
}
return null;
}
}

View File

@ -10,6 +10,7 @@ import mineplex.minecraft.game.core.damage.CustomDamageEvent;
import nautilus.game.arcade.ArcadeFormat;
import nautilus.game.arcade.ArcadeManager;
import nautilus.game.arcade.GameType;
import nautilus.game.arcade.TournamentType;
import nautilus.game.arcade.events.GameStateChangeEvent;
import nautilus.game.arcade.events.PlayerGameRespawnEvent;
import nautilus.game.arcade.events.PlayerStateChangeEvent;
@ -1145,6 +1146,31 @@ public abstract class Game implements Listener
{
for (StatTracker tracker : getStatTrackers())
HandlerList.unregisterAll(tracker);
if (Manager.IsTournamentServer() && CanAddStats)
{
final TournamentType type = TournamentType.getTournamentType(GetType());
if (type != null)
{
final Map<UUID, Boolean> data = new HashMap<>();
for (Player loser : getLosers())
data.put(loser.getUniqueId(), false);
for (Player winner : getWinners())
data.put(winner.getUniqueId(), true);
Bukkit.getScheduler().runTaskAsynchronously(Manager.GetPlugin(), new Runnable()
{
@Override
public void run()
{
Manager.getLeaderboardRepository().saveStats(0, type.ordinal(), data);
}
});
}
}
}
}