Record server name in basic game stats

This commit is contained in:
CoderTim 2014-09-18 01:56:46 -04:00
parent 6eed36f0ee
commit f8ee20c433
8 changed files with 969 additions and 26 deletions

View File

@ -11,7 +11,7 @@ package mineplex.database;
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class Account extends org.jooq.impl.SchemaImpl implements java.io.Serializable, java.lang.Cloneable {
private static final long serialVersionUID = 1728381793;
private static final long serialVersionUID = -871366556;
/**
* The singleton instance of <code>Account</code>
@ -44,6 +44,7 @@ public class Account extends org.jooq.impl.SchemaImpl implements java.io.Seriali
mineplex.database.tables.Games.games,
mineplex.database.tables.ItemCategories.itemCategories,
mineplex.database.tables.Items.items,
mineplex.database.tables.Npcs.npcs,
mineplex.database.tables.PlayerMap.playerMap,
mineplex.database.tables.Polls.polls,
mineplex.database.tables.Stats.stats,

View File

@ -28,6 +28,7 @@ public class Keys {
public static final org.jooq.Identity<mineplex.database.tables.records.GamesRecord, java.lang.Integer> IDENTITY_games = Identities0.IDENTITY_games;
public static final org.jooq.Identity<mineplex.database.tables.records.ItemCategoriesRecord, java.lang.Integer> IDENTITY_itemCategories = Identities0.IDENTITY_itemCategories;
public static final org.jooq.Identity<mineplex.database.tables.records.ItemsRecord, java.lang.Integer> IDENTITY_items = Identities0.IDENTITY_items;
public static final org.jooq.Identity<mineplex.database.tables.records.NpcsRecord, java.lang.Integer> IDENTITY_npcs = Identities0.IDENTITY_npcs;
public static final org.jooq.Identity<mineplex.database.tables.records.PlayerMapRecord, java.lang.Integer> IDENTITY_playerMap = Identities0.IDENTITY_playerMap;
public static final org.jooq.Identity<mineplex.database.tables.records.PollsRecord, java.lang.Integer> IDENTITY_polls = Identities0.IDENTITY_polls;
public static final org.jooq.Identity<mineplex.database.tables.records.StatsRecord, java.lang.Integer> IDENTITY_stats = Identities0.IDENTITY_stats;
@ -54,6 +55,7 @@ public class Keys {
public static final org.jooq.UniqueKey<mineplex.database.tables.records.ItemCategoriesRecord> KEY_itemCategories_nameIndex = UniqueKeys0.KEY_itemCategories_nameIndex;
public static final org.jooq.UniqueKey<mineplex.database.tables.records.ItemsRecord> KEY_items_PRIMARY = UniqueKeys0.KEY_items_PRIMARY;
public static final org.jooq.UniqueKey<mineplex.database.tables.records.ItemsRecord> KEY_items_uniqueNameCategoryIndex = UniqueKeys0.KEY_items_uniqueNameCategoryIndex;
public static final org.jooq.UniqueKey<mineplex.database.tables.records.NpcsRecord> KEY_npcs_PRIMARY = UniqueKeys0.KEY_npcs_PRIMARY;
public static final org.jooq.UniqueKey<mineplex.database.tables.records.PlayerMapRecord> KEY_playerMap_PRIMARY = UniqueKeys0.KEY_playerMap_PRIMARY;
public static final org.jooq.UniqueKey<mineplex.database.tables.records.PlayerMapRecord> KEY_playerMap_playerIndex = UniqueKeys0.KEY_playerMap_playerIndex;
public static final org.jooq.UniqueKey<mineplex.database.tables.records.PollsRecord> KEY_polls_PRIMARY = UniqueKeys0.KEY_polls_PRIMARY;
@ -92,6 +94,7 @@ public class Keys {
public static org.jooq.Identity<mineplex.database.tables.records.GamesRecord, java.lang.Integer> IDENTITY_games = createIdentity(mineplex.database.tables.Games.games, mineplex.database.tables.Games.games.id);
public static org.jooq.Identity<mineplex.database.tables.records.ItemCategoriesRecord, 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.ItemsRecord, 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.NpcsRecord, java.lang.Integer> IDENTITY_npcs = createIdentity(mineplex.database.tables.Npcs.npcs, mineplex.database.tables.Npcs.npcs.id);
public static org.jooq.Identity<mineplex.database.tables.records.PlayerMapRecord, 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.PollsRecord, 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.StatsRecord, java.lang.Integer> IDENTITY_stats = createIdentity(mineplex.database.tables.Stats.stats, mineplex.database.tables.Stats.stats.id);
@ -116,6 +119,7 @@ public class Keys {
public static final org.jooq.UniqueKey<mineplex.database.tables.records.ItemCategoriesRecord> 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.ItemsRecord> 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.ItemsRecord> 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.NpcsRecord> KEY_npcs_PRIMARY = createUniqueKey(mineplex.database.tables.Npcs.npcs, mineplex.database.tables.Npcs.npcs.id);
public static final org.jooq.UniqueKey<mineplex.database.tables.records.PlayerMapRecord> 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.PlayerMapRecord> 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.PollsRecord> KEY_polls_PRIMARY = createUniqueKey(mineplex.database.tables.Polls.polls, mineplex.database.tables.Polls.polls.id);

View File

@ -63,6 +63,11 @@ public class Tables {
*/
public static final mineplex.database.tables.Items items = mineplex.database.tables.Items.items;
/**
* The table Account.npcs
*/
public static final mineplex.database.tables.Npcs npcs = mineplex.database.tables.Npcs.npcs;
/**
* The table Account.playerMap
*/

View File

@ -11,7 +11,7 @@ package mineplex.database.tables;
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class Games extends org.jooq.impl.TableImpl<mineplex.database.tables.records.GamesRecord> implements java.io.Serializable, java.lang.Cloneable {
private static final long serialVersionUID = -239513034;
private static final long serialVersionUID = 1977514584;
/**
* The singleton instance of <code>Account.games</code>
@ -36,6 +36,11 @@ public class Games extends org.jooq.impl.TableImpl<mineplex.database.tables.reco
*/
public final org.jooq.TableField<mineplex.database.tables.records.GamesRecord, java.lang.Boolean> tournament = createField("tournament", org.jooq.impl.SQLDataType.BIT.nullable(false).defaulted(true), this, "");
/**
* The column <code>Account.games.server</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.GamesRecord, java.lang.String> server = createField("server", org.jooq.impl.SQLDataType.VARCHAR.length(50).nullable(false), this, "");
/**
* The column <code>Account.games.type</code>.
*/

View File

@ -0,0 +1,169 @@
/**
* 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 Npcs extends org.jooq.impl.TableImpl<mineplex.database.tables.records.NpcsRecord> implements java.io.Serializable, java.lang.Cloneable {
private static final long serialVersionUID = -1072109459;
/**
* The singleton instance of <code>Account.npcs</code>
*/
public static final mineplex.database.tables.Npcs npcs = new mineplex.database.tables.Npcs();
/**
* The class holding records for this type
*/
@Override
public java.lang.Class<mineplex.database.tables.records.NpcsRecord> getRecordType() {
return mineplex.database.tables.records.NpcsRecord.class;
}
/**
* The column <code>Account.npcs.id</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.NpcsRecord, java.lang.Integer> id = createField("id", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, "");
/**
* The column <code>Account.npcs.server</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.NpcsRecord, java.lang.String> server = createField("server", org.jooq.impl.SQLDataType.VARCHAR.length(50).nullable(false), this, "");
/**
* The column <code>Account.npcs.uuid</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.NpcsRecord, java.lang.String> uuid = createField("uuid", org.jooq.impl.SQLDataType.CHAR.length(36).nullable(false), this, "");
/**
* The column <code>Account.npcs.name</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.NpcsRecord, java.lang.String> name = createField("name", org.jooq.impl.SQLDataType.VARCHAR.length(50).nullable(false), this, "");
/**
* The column <code>Account.npcs.world</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.NpcsRecord, java.lang.String> world = createField("world", org.jooq.impl.SQLDataType.VARCHAR.length(50).nullable(false), this, "");
/**
* The column <code>Account.npcs.x</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.NpcsRecord, java.lang.Double> x = createField("x", org.jooq.impl.SQLDataType.FLOAT.nullable(false), this, "");
/**
* The column <code>Account.npcs.y</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.NpcsRecord, java.lang.Double> y = createField("y", org.jooq.impl.SQLDataType.FLOAT.nullable(false), this, "");
/**
* The column <code>Account.npcs.z</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.NpcsRecord, java.lang.Double> z = createField("z", org.jooq.impl.SQLDataType.FLOAT.nullable(false), this, "");
/**
* The column <code>Account.npcs.radius</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.NpcsRecord, java.lang.Double> radius = createField("radius", org.jooq.impl.SQLDataType.FLOAT.nullable(false), this, "");
/**
* The column <code>Account.npcs.entityType</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.NpcsRecord, java.lang.String> entityType = createField("entityType", org.jooq.impl.SQLDataType.VARCHAR.length(50).nullable(false), this, "");
/**
* The column <code>Account.npcs.adult</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.NpcsRecord, java.lang.Boolean> adult = createField("adult", org.jooq.impl.SQLDataType.BIT.nullable(false).defaulted(true), this, "");
/**
* The column <code>Account.npcs.helmet</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.NpcsRecord, java.lang.String> helmet = createField("helmet", org.jooq.impl.SQLDataType.VARCHAR.length(50), this, "");
/**
* The column <code>Account.npcs.chestplate</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.NpcsRecord, java.lang.String> chestplate = createField("chestplate", org.jooq.impl.SQLDataType.VARCHAR.length(50), this, "");
/**
* The column <code>Account.npcs.leggings</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.NpcsRecord, java.lang.String> leggings = createField("leggings", org.jooq.impl.SQLDataType.VARCHAR.length(50), this, "");
/**
* The column <code>Account.npcs.boots</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.NpcsRecord, java.lang.String> boots = createField("boots", org.jooq.impl.SQLDataType.VARCHAR.length(50), this, "");
/**
* The column <code>Account.npcs.inHand</code>.
*/
public final org.jooq.TableField<mineplex.database.tables.records.NpcsRecord, java.lang.String> inHand = createField("inHand", org.jooq.impl.SQLDataType.VARCHAR.length(50), this, "");
/**
* Create a <code>Account.npcs</code> table reference
*/
public Npcs() {
this("npcs", null);
}
/**
* Create an aliased <code>Account.npcs</code> table reference
*/
public Npcs(java.lang.String alias) {
this(alias, mineplex.database.tables.Npcs.npcs);
}
private Npcs(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.NpcsRecord> aliased) {
this(alias, aliased, null);
}
private Npcs(java.lang.String alias, org.jooq.Table<mineplex.database.tables.records.NpcsRecord> aliased, org.jooq.Field<?>[] parameters) {
super(alias, mineplex.database.Account.Account, aliased, parameters, "");
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Identity<mineplex.database.tables.records.NpcsRecord, java.lang.Integer> getIdentity() {
return mineplex.database.Keys.IDENTITY_npcs;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.UniqueKey<mineplex.database.tables.records.NpcsRecord> getPrimaryKey() {
return mineplex.database.Keys.KEY_npcs_PRIMARY;
}
/**
* {@inheritDoc}
*/
@Override
public java.util.List<org.jooq.UniqueKey<mineplex.database.tables.records.NpcsRecord>> getKeys() {
return java.util.Arrays.<org.jooq.UniqueKey<mineplex.database.tables.records.NpcsRecord>>asList(mineplex.database.Keys.KEY_npcs_PRIMARY);
}
/**
* {@inheritDoc}
*/
@Override
public mineplex.database.tables.Npcs as(java.lang.String alias) {
return new mineplex.database.tables.Npcs(alias, this);
}
/**
* Rename this table
*/
public mineplex.database.tables.Npcs rename(java.lang.String name) {
return new mineplex.database.tables.Npcs(name, null);
}
}

View File

@ -9,9 +9,9 @@ package mineplex.database.tables.records;
@javax.annotation.Generated(value = { "http://www.jooq.org", "3.4.2" },
comments = "This class is generated by jOOQ")
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class GamesRecord extends org.jooq.impl.UpdatableRecordImpl<mineplex.database.tables.records.GamesRecord> implements java.io.Serializable, java.lang.Cloneable, org.jooq.Record5<java.lang.Integer, java.lang.Boolean, java.lang.String, java.sql.Timestamp, java.lang.Integer> {
public class GamesRecord extends org.jooq.impl.UpdatableRecordImpl<mineplex.database.tables.records.GamesRecord> implements java.io.Serializable, java.lang.Cloneable, org.jooq.Record6<java.lang.Integer, java.lang.Boolean, java.lang.String, java.lang.String, java.sql.Timestamp, java.lang.Integer> {
private static final long serialVersionUID = -1290368708;
private static final long serialVersionUID = -527436190;
/**
* Setter for <code>Account.games.id</code>.
@ -41,46 +41,60 @@ public class GamesRecord extends org.jooq.impl.UpdatableRecordImpl<mineplex.data
return (java.lang.Boolean) getValue(1);
}
/**
* Setter for <code>Account.games.server</code>.
*/
public void setServer(java.lang.String value) {
setValue(2, value);
}
/**
* Getter for <code>Account.games.server</code>.
*/
public java.lang.String getServer() {
return (java.lang.String) getValue(2);
}
/**
* Setter for <code>Account.games.type</code>.
*/
public void setType(java.lang.String value) {
setValue(2, value);
setValue(3, value);
}
/**
* Getter for <code>Account.games.type</code>.
*/
public java.lang.String getType() {
return (java.lang.String) getValue(2);
return (java.lang.String) getValue(3);
}
/**
* Setter for <code>Account.games.date</code>.
*/
public void setDate(java.sql.Timestamp value) {
setValue(3, value);
setValue(4, value);
}
/**
* Getter for <code>Account.games.date</code>.
*/
public java.sql.Timestamp getDate() {
return (java.sql.Timestamp) getValue(3);
return (java.sql.Timestamp) getValue(4);
}
/**
* Setter for <code>Account.games.duration</code>.
*/
public void setDuration(java.lang.Integer value) {
setValue(4, value);
setValue(5, value);
}
/**
* Getter for <code>Account.games.duration</code>.
*/
public java.lang.Integer getDuration() {
return (java.lang.Integer) getValue(4);
return (java.lang.Integer) getValue(5);
}
// -------------------------------------------------------------------------
@ -96,23 +110,23 @@ public class GamesRecord extends org.jooq.impl.UpdatableRecordImpl<mineplex.data
}
// -------------------------------------------------------------------------
// Record5 type implementation
// Record6 type implementation
// -------------------------------------------------------------------------
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Row5<java.lang.Integer, java.lang.Boolean, java.lang.String, java.sql.Timestamp, java.lang.Integer> fieldsRow() {
return (org.jooq.Row5) super.fieldsRow();
public org.jooq.Row6<java.lang.Integer, java.lang.Boolean, java.lang.String, java.lang.String, java.sql.Timestamp, java.lang.Integer> fieldsRow() {
return (org.jooq.Row6) super.fieldsRow();
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Row5<java.lang.Integer, java.lang.Boolean, java.lang.String, java.sql.Timestamp, java.lang.Integer> valuesRow() {
return (org.jooq.Row5) super.valuesRow();
public org.jooq.Row6<java.lang.Integer, java.lang.Boolean, java.lang.String, java.lang.String, java.sql.Timestamp, java.lang.Integer> valuesRow() {
return (org.jooq.Row6) super.valuesRow();
}
/**
@ -136,6 +150,14 @@ public class GamesRecord extends org.jooq.impl.UpdatableRecordImpl<mineplex.data
*/
@Override
public org.jooq.Field<java.lang.String> field3() {
return mineplex.database.tables.Games.games.server;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.String> field4() {
return mineplex.database.tables.Games.games.type;
}
@ -143,7 +165,7 @@ public class GamesRecord extends org.jooq.impl.UpdatableRecordImpl<mineplex.data
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.sql.Timestamp> field4() {
public org.jooq.Field<java.sql.Timestamp> field5() {
return mineplex.database.tables.Games.games.date;
}
@ -151,7 +173,7 @@ public class GamesRecord extends org.jooq.impl.UpdatableRecordImpl<mineplex.data
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.Integer> field5() {
public org.jooq.Field<java.lang.Integer> field6() {
return mineplex.database.tables.Games.games.duration;
}
@ -176,6 +198,14 @@ public class GamesRecord extends org.jooq.impl.UpdatableRecordImpl<mineplex.data
*/
@Override
public java.lang.String value3() {
return getServer();
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.String value4() {
return getType();
}
@ -183,7 +213,7 @@ public class GamesRecord extends org.jooq.impl.UpdatableRecordImpl<mineplex.data
* {@inheritDoc}
*/
@Override
public java.sql.Timestamp value4() {
public java.sql.Timestamp value5() {
return getDate();
}
@ -191,7 +221,7 @@ public class GamesRecord extends org.jooq.impl.UpdatableRecordImpl<mineplex.data
* {@inheritDoc}
*/
@Override
public java.lang.Integer value5() {
public java.lang.Integer value6() {
return getDuration();
}
@ -218,6 +248,15 @@ public class GamesRecord extends org.jooq.impl.UpdatableRecordImpl<mineplex.data
*/
@Override
public GamesRecord value3(java.lang.String value) {
setServer(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public GamesRecord value4(java.lang.String value) {
setType(value);
return this;
}
@ -226,7 +265,7 @@ public class GamesRecord extends org.jooq.impl.UpdatableRecordImpl<mineplex.data
* {@inheritDoc}
*/
@Override
public GamesRecord value4(java.sql.Timestamp value) {
public GamesRecord value5(java.sql.Timestamp value) {
setDate(value);
return this;
}
@ -235,7 +274,7 @@ public class GamesRecord extends org.jooq.impl.UpdatableRecordImpl<mineplex.data
* {@inheritDoc}
*/
@Override
public GamesRecord value5(java.lang.Integer value) {
public GamesRecord value6(java.lang.Integer value) {
setDuration(value);
return this;
}
@ -244,7 +283,7 @@ public class GamesRecord extends org.jooq.impl.UpdatableRecordImpl<mineplex.data
* {@inheritDoc}
*/
@Override
public GamesRecord values(java.lang.Integer value1, java.lang.Boolean value2, java.lang.String value3, java.sql.Timestamp value4, java.lang.Integer value5) {
public GamesRecord values(java.lang.Integer value1, java.lang.Boolean value2, java.lang.String value3, java.lang.String value4, java.sql.Timestamp value5, java.lang.Integer value6) {
return this;
}
@ -262,13 +301,14 @@ public class GamesRecord extends org.jooq.impl.UpdatableRecordImpl<mineplex.data
/**
* Create a detached, initialised GamesRecord
*/
public GamesRecord(java.lang.Integer id, java.lang.Boolean tournament, java.lang.String type, java.sql.Timestamp date, java.lang.Integer duration) {
public GamesRecord(java.lang.Integer id, java.lang.Boolean tournament, java.lang.String server, java.lang.String type, java.sql.Timestamp date, java.lang.Integer duration) {
super(mineplex.database.tables.Games.games);
setValue(0, id);
setValue(1, tournament);
setValue(2, type);
setValue(3, date);
setValue(4, duration);
setValue(2, server);
setValue(3, type);
setValue(4, date);
setValue(5, duration);
}
}

View File

@ -0,0 +1,714 @@
/**
* 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 NpcsRecord extends org.jooq.impl.UpdatableRecordImpl<mineplex.database.tables.records.NpcsRecord> implements java.io.Serializable, java.lang.Cloneable, org.jooq.Record16<java.lang.Integer, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.Double, java.lang.Double, java.lang.Double, java.lang.Double, java.lang.String, java.lang.Boolean, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String> {
private static final long serialVersionUID = 870408054;
/**
* Setter for <code>Account.npcs.id</code>.
*/
public void setId(java.lang.Integer value) {
setValue(0, value);
}
/**
* Getter for <code>Account.npcs.id</code>.
*/
public java.lang.Integer getId() {
return (java.lang.Integer) getValue(0);
}
/**
* Setter for <code>Account.npcs.server</code>.
*/
public void setServer(java.lang.String value) {
setValue(1, value);
}
/**
* Getter for <code>Account.npcs.server</code>.
*/
public java.lang.String getServer() {
return (java.lang.String) getValue(1);
}
/**
* Setter for <code>Account.npcs.uuid</code>.
*/
public void setUuid(java.lang.String value) {
setValue(2, value);
}
/**
* Getter for <code>Account.npcs.uuid</code>.
*/
public java.lang.String getUuid() {
return (java.lang.String) getValue(2);
}
/**
* Setter for <code>Account.npcs.name</code>.
*/
public void setName(java.lang.String value) {
setValue(3, value);
}
/**
* Getter for <code>Account.npcs.name</code>.
*/
public java.lang.String getName() {
return (java.lang.String) getValue(3);
}
/**
* Setter for <code>Account.npcs.world</code>.
*/
public void setWorld(java.lang.String value) {
setValue(4, value);
}
/**
* Getter for <code>Account.npcs.world</code>.
*/
public java.lang.String getWorld() {
return (java.lang.String) getValue(4);
}
/**
* Setter for <code>Account.npcs.x</code>.
*/
public void setX(java.lang.Double value) {
setValue(5, value);
}
/**
* Getter for <code>Account.npcs.x</code>.
*/
public java.lang.Double getX() {
return (java.lang.Double) getValue(5);
}
/**
* Setter for <code>Account.npcs.y</code>.
*/
public void setY(java.lang.Double value) {
setValue(6, value);
}
/**
* Getter for <code>Account.npcs.y</code>.
*/
public java.lang.Double getY() {
return (java.lang.Double) getValue(6);
}
/**
* Setter for <code>Account.npcs.z</code>.
*/
public void setZ(java.lang.Double value) {
setValue(7, value);
}
/**
* Getter for <code>Account.npcs.z</code>.
*/
public java.lang.Double getZ() {
return (java.lang.Double) getValue(7);
}
/**
* Setter for <code>Account.npcs.radius</code>.
*/
public void setRadius(java.lang.Double value) {
setValue(8, value);
}
/**
* Getter for <code>Account.npcs.radius</code>.
*/
public java.lang.Double getRadius() {
return (java.lang.Double) getValue(8);
}
/**
* Setter for <code>Account.npcs.entityType</code>.
*/
public void setEntityType(java.lang.String value) {
setValue(9, value);
}
/**
* Getter for <code>Account.npcs.entityType</code>.
*/
public java.lang.String getEntityType() {
return (java.lang.String) getValue(9);
}
/**
* Setter for <code>Account.npcs.adult</code>.
*/
public void setAdult(java.lang.Boolean value) {
setValue(10, value);
}
/**
* Getter for <code>Account.npcs.adult</code>.
*/
public java.lang.Boolean getAdult() {
return (java.lang.Boolean) getValue(10);
}
/**
* Setter for <code>Account.npcs.helmet</code>.
*/
public void setHelmet(java.lang.String value) {
setValue(11, value);
}
/**
* Getter for <code>Account.npcs.helmet</code>.
*/
public java.lang.String getHelmet() {
return (java.lang.String) getValue(11);
}
/**
* Setter for <code>Account.npcs.chestplate</code>.
*/
public void setChestplate(java.lang.String value) {
setValue(12, value);
}
/**
* Getter for <code>Account.npcs.chestplate</code>.
*/
public java.lang.String getChestplate() {
return (java.lang.String) getValue(12);
}
/**
* Setter for <code>Account.npcs.leggings</code>.
*/
public void setLeggings(java.lang.String value) {
setValue(13, value);
}
/**
* Getter for <code>Account.npcs.leggings</code>.
*/
public java.lang.String getLeggings() {
return (java.lang.String) getValue(13);
}
/**
* Setter for <code>Account.npcs.boots</code>.
*/
public void setBoots(java.lang.String value) {
setValue(14, value);
}
/**
* Getter for <code>Account.npcs.boots</code>.
*/
public java.lang.String getBoots() {
return (java.lang.String) getValue(14);
}
/**
* Setter for <code>Account.npcs.inHand</code>.
*/
public void setInHand(java.lang.String value) {
setValue(15, value);
}
/**
* Getter for <code>Account.npcs.inHand</code>.
*/
public java.lang.String getInHand() {
return (java.lang.String) getValue(15);
}
// -------------------------------------------------------------------------
// Primary key information
// -------------------------------------------------------------------------
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Record1<java.lang.Integer> key() {
return (org.jooq.Record1) super.key();
}
// -------------------------------------------------------------------------
// Record16 type implementation
// -------------------------------------------------------------------------
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Row16<java.lang.Integer, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.Double, java.lang.Double, java.lang.Double, java.lang.Double, java.lang.String, java.lang.Boolean, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String> fieldsRow() {
return (org.jooq.Row16) super.fieldsRow();
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Row16<java.lang.Integer, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.Double, java.lang.Double, java.lang.Double, java.lang.Double, java.lang.String, java.lang.Boolean, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String> valuesRow() {
return (org.jooq.Row16) super.valuesRow();
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.Integer> field1() {
return mineplex.database.tables.Npcs.npcs.id;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.String> field2() {
return mineplex.database.tables.Npcs.npcs.server;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.String> field3() {
return mineplex.database.tables.Npcs.npcs.uuid;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.String> field4() {
return mineplex.database.tables.Npcs.npcs.name;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.String> field5() {
return mineplex.database.tables.Npcs.npcs.world;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.Double> field6() {
return mineplex.database.tables.Npcs.npcs.x;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.Double> field7() {
return mineplex.database.tables.Npcs.npcs.y;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.Double> field8() {
return mineplex.database.tables.Npcs.npcs.z;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.Double> field9() {
return mineplex.database.tables.Npcs.npcs.radius;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.String> field10() {
return mineplex.database.tables.Npcs.npcs.entityType;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.Boolean> field11() {
return mineplex.database.tables.Npcs.npcs.adult;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.String> field12() {
return mineplex.database.tables.Npcs.npcs.helmet;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.String> field13() {
return mineplex.database.tables.Npcs.npcs.chestplate;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.String> field14() {
return mineplex.database.tables.Npcs.npcs.leggings;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.String> field15() {
return mineplex.database.tables.Npcs.npcs.boots;
}
/**
* {@inheritDoc}
*/
@Override
public org.jooq.Field<java.lang.String> field16() {
return mineplex.database.tables.Npcs.npcs.inHand;
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.Integer value1() {
return getId();
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.String value2() {
return getServer();
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.String value3() {
return getUuid();
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.String value4() {
return getName();
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.String value5() {
return getWorld();
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.Double value6() {
return getX();
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.Double value7() {
return getY();
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.Double value8() {
return getZ();
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.Double value9() {
return getRadius();
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.String value10() {
return getEntityType();
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.Boolean value11() {
return getAdult();
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.String value12() {
return getHelmet();
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.String value13() {
return getChestplate();
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.String value14() {
return getLeggings();
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.String value15() {
return getBoots();
}
/**
* {@inheritDoc}
*/
@Override
public java.lang.String value16() {
return getInHand();
}
/**
* {@inheritDoc}
*/
@Override
public NpcsRecord value1(java.lang.Integer value) {
setId(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public NpcsRecord value2(java.lang.String value) {
setServer(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public NpcsRecord value3(java.lang.String value) {
setUuid(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public NpcsRecord value4(java.lang.String value) {
setName(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public NpcsRecord value5(java.lang.String value) {
setWorld(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public NpcsRecord value6(java.lang.Double value) {
setX(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public NpcsRecord value7(java.lang.Double value) {
setY(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public NpcsRecord value8(java.lang.Double value) {
setZ(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public NpcsRecord value9(java.lang.Double value) {
setRadius(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public NpcsRecord value10(java.lang.String value) {
setEntityType(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public NpcsRecord value11(java.lang.Boolean value) {
setAdult(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public NpcsRecord value12(java.lang.String value) {
setHelmet(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public NpcsRecord value13(java.lang.String value) {
setChestplate(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public NpcsRecord value14(java.lang.String value) {
setLeggings(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public NpcsRecord value15(java.lang.String value) {
setBoots(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public NpcsRecord value16(java.lang.String value) {
setInHand(value);
return this;
}
/**
* {@inheritDoc}
*/
@Override
public NpcsRecord values(java.lang.Integer value1, java.lang.String value2, java.lang.String value3, java.lang.String value4, java.lang.String value5, java.lang.Double value6, java.lang.Double value7, java.lang.Double value8, java.lang.Double value9, java.lang.String value10, java.lang.Boolean value11, java.lang.String value12, java.lang.String value13, java.lang.String value14, java.lang.String value15, java.lang.String value16) {
return this;
}
// -------------------------------------------------------------------------
// Constructors
// -------------------------------------------------------------------------
/**
* Create a detached NpcsRecord
*/
public NpcsRecord() {
super(mineplex.database.tables.Npcs.npcs);
}
/**
* Create a detached, initialised NpcsRecord
*/
public NpcsRecord(java.lang.Integer id, java.lang.String server, java.lang.String uuid, java.lang.String name, java.lang.String world, java.lang.Double x, java.lang.Double y, java.lang.Double z, java.lang.Double radius, java.lang.String entityType, java.lang.Boolean adult, java.lang.String helmet, java.lang.String chestplate, java.lang.String leggings, java.lang.String boots, java.lang.String inHand) {
super(mineplex.database.tables.Npcs.npcs);
setValue(0, id);
setValue(1, server);
setValue(2, uuid);
setValue(3, name);
setValue(4, world);
setValue(5, x);
setValue(6, y);
setValue(7, z);
setValue(8, radius);
setValue(9, entityType);
setValue(10, adult);
setValue(11, helmet);
setValue(12, chestplate);
setValue(13, leggings);
setValue(14, boots);
setValue(15, inHand);
}
}

View File

@ -16,9 +16,13 @@ import org.jooq.impl.DSL;
public class ArcadeRepository extends RepositoryBase
{
private final String serverName;
public ArcadeRepository(JavaPlugin plugin)
{
super(plugin, "jdbc:mysql://db.mineplex.com:3306/Account?autoReconnect=true&failOverReadOnly=false&maxReconnects=10", "root", "tAbechAk3wR7tuTh");
serverName = plugin.getConfig().getString("serverstatus.name");
}
@Override
@ -46,6 +50,7 @@ public class ArcadeRepository extends RepositoryBase
record.setDuration(duration);
record.setTournament(tournament);
record.setType(type.name());
record.setServer(serverName);
record.store();
List<Query> queryList = new ArrayList<>(players.size());