Index
All Classes and Interfaces|All Packages
A
- add(UUID, Object...) - Method in class net.hectus.sql.AutoCatchingPostgreConnection
- add(UUID, Object...) - Method in class net.hectus.sql.PostgreConnection
-
Inserts a new row with a player and the values into the table.
- AutoCatchingPostgreConnection - Class in net.hectus.sql
-
Modified version of the
PostgreConnection
, but with the key difference of throwing no exceptions and instead handling them automatically inside the methods, using a code snipped provided in the constructor or optionally modified usingAutoCatchingPostgreConnection.changeExceptionHandling(Consumer)
. - AutoCatchingPostgreConnection(String, int, String, String, String, String, Consumer<SQLException>) - Constructor for class net.hectus.sql.AutoCatchingPostgreConnection
- AutoCatchingPostgreConnection(String, String, String, String, Consumer<SQLException>) - Constructor for class net.hectus.sql.AutoCatchingPostgreConnection
C
- changeExceptionHandling(Consumer<SQLException>) - Method in class net.hectus.sql.AutoCatchingPostgreConnection
-
Changes what should be done with the
SQLException
s, when they are caught. - changeTable(String) - Method in class net.hectus.sql.PostgreConnection
-
Changes what table to get data from and execute all queries on.
- closeConnection() - Method in class net.hectus.sql.AutoCatchingPostgreConnection
- closeConnection() - Method in class net.hectus.sql.PostgreConnection
-
Closes the connection to the database.
- component(Locale, String) - Static method in class net.hectus.lang.Translation
-
Gets the translation of a key as a adventure api
Component
(TextComponent
). - component(Locale, String, Object...) - Static method in class net.hectus.lang.Translation
-
Gets the translation of a key as a adventure api
Component
(TextComponent
) where all placeholders are replaced with the specifiedvariables
. - connection() - Method in class net.hectus.sql.PostgreConnection
-
Get the current connection that's being used.
- contains(UUID) - Method in class net.hectus.sql.AutoCatchingPostgreConnection
- contains(UUID) - Method in class net.hectus.sql.PostgreConnection
-
Checks whether the table contains an entry/row for the player or not.
- createNewStatement() - Method in class net.hectus.sql.AutoCatchingPostgreConnection
- createNewStatement() - Method in class net.hectus.sql.PostgreConnection
-
Generates a new statement to use for queries.
E
- executeQuery(String, Object...) - Method in class net.hectus.sql.AutoCatchingPostgreConnection
- executeQuery(String, Object...) - Method in class net.hectus.sql.PostgreConnection
-
Executes a parameterized SQL query and returns the result.
G
- get(UUID, int) - Method in class net.hectus.sql.AutoCatchingPostgreConnection
- get(UUID, int) - Method in class net.hectus.sql.PostgreConnection
-
Get a value from a specific player's data, based on a player
UUID
and the column index. - get(UUID, String) - Method in class net.hectus.sql.AutoCatchingPostgreConnection
- get(UUID, String) - Method in class net.hectus.sql.PostgreConnection
-
Get a value from a specific player's data, based on a player
UUID
and the column name. - getRow(UUID) - Method in class net.hectus.sql.AutoCatchingPostgreConnection
- getRow(UUID) - Method in class net.hectus.sql.PostgreConnection
- getRowArray(UUID) - Method in class net.hectus.sql.AutoCatchingPostgreConnection
- getRowArray(UUID) - Method in class net.hectus.sql.PostgreConnection
-
Get a whole row from the table based on a player
UUID
. - getRowArraysContaining(Object, String...) - Method in class net.hectus.sql.AutoCatchingPostgreConnection
- getRowArraysContaining(Object, String...) - Method in class net.hectus.sql.PostgreConnection
-
Get all rows of the table containing a specific value in any specified column as a List of arrays, where the
list
represents the rows and the arrays are each row's columns. - getRowMap(UUID) - Method in class net.hectus.sql.AutoCatchingPostgreConnection
- getRowMap(UUID) - Method in class net.hectus.sql.PostgreConnection
-
Get a whole row with column names and values from the table based on a player
UUID
. - getRowMapsContaining(Object, String...) - Method in class net.hectus.sql.AutoCatchingPostgreConnection
- getRowMapsContaining(Object, String...) - Method in class net.hectus.sql.PostgreConnection
- getTranslated(Locale) - Method in class net.hectus.lang.Translatable
-
Translates the class based on the user's locale and outputs it as a
String
representation. - getTranslatedComponent(Locale) - Method in class net.hectus.lang.Translatable
-
Translated the class based on the user's locale and outputs it as a adventure api
Component
.
L
- load(File) - Static method in class net.hectus.lang.Translation
-
Goes through all of the files inside plugins/Invade/lang/ and loads them as properties files into the translations.
N
- net.hectus.lang - package net.hectus.lang
- net.hectus.sql - package net.hectus.sql
P
- PostgreConnection - Class in net.hectus.sql
-
Represents a
connection
to a PostgreSQL database with built-in features for accessing the database with proper values like the playerUUID
, etc. - PostgreConnection(String, int, String, String, String, String) - Constructor for class net.hectus.sql.PostgreConnection
-
Creates a connection to a PostgreSQL database.
- PostgreConnection(String, String, String, String) - Constructor for class net.hectus.sql.PostgreConnection
-
Creates a connection to a PostgreSQL database.
R
- remove(UUID) - Method in class net.hectus.sql.AutoCatchingPostgreConnection
- remove(UUID) - Method in class net.hectus.sql.PostgreConnection
-
Removed a player's row based on his
UUID
.
S
- set(UUID, int, Object) - Method in class net.hectus.sql.AutoCatchingPostgreConnection
- set(UUID, int, Object) - Method in class net.hectus.sql.PostgreConnection
-
Set a value from a specific player's data to a new value, based on a player
UUID
and the column index. - set(UUID, String, Object) - Method in class net.hectus.sql.AutoCatchingPostgreConnection
- set(UUID, String, Object) - Method in class net.hectus.sql.PostgreConnection
-
Set a value from a specific player's data to a new value, based on a player
UUID
and the column name. - string(Locale, String) - Static method in class net.hectus.lang.Translation
-
Gets the translation of a key as a string.
- string(Locale, String, Object...) - Static method in class net.hectus.lang.Translation
-
Gets the translation of a key as a string and replaces the placeholders with specified
variables
.
T
- table() - Method in class net.hectus.sql.PostgreConnection
-
Get the current table to get data from.
- Translatable - Class in net.hectus.lang
-
Easy abstract class for making every translatable class organized into the same translation methods.
- Translatable() - Constructor for class net.hectus.lang.Translatable
- Translation - Class in net.hectus.lang
-
Provides easy translations based on simple
.properties
files. - Translation() - Constructor for class net.hectus.lang.Translation
All Classes and Interfaces|All Packages