Cleaned up code

This commit is contained in:
mathias 2021-08-19 23:24:16 +02:00
parent a1b8e4f3d9
commit a3766aa490
No known key found for this signature in database
GPG Key ID: 8950DF62139C852A
3 changed files with 5 additions and 4 deletions

View File

@ -80,7 +80,7 @@ public class InsertManager {
/** /**
* Execute the current SQL query * Executes the current SQL query
*/ */
public void execute() { public void execute() {
connection.update(prepareStatement(), values.values().toArray()); connection.update(prepareStatement(), values.values().toArray());

View File

@ -81,8 +81,8 @@ public abstract class SQLTable {
/** /**
* Adds a boolean to the table (without allowNull) * Adds a boolean to the table (without allowNull)
* *
* @param name The name of the boolean you want to add * @param name The name of the boolean you want to add
* @param extras The extras you want to add to the boolean * @param extras The extras you want to add to the boolean
*/ */
protected void bool(String name, String... extras) { protected void bool(String name, String... extras) {
custom(SQLType.BOOLEAN.getValue(), name, 1, false, "", extras); custom(SQLType.BOOLEAN.getValue(), name, 1, false, "", extras);

View File

@ -9,10 +9,11 @@ public enum SQLType {
DATETIME("DATETIME"), DATETIME("DATETIME"),
BOOLEAN("TINYINT"); BOOLEAN("TINYINT");
private String value; private final String value;
/** /**
* Basic constructor of the {@link SQLType} enum * Basic constructor of the {@link SQLType} enum
*
* @param value The value of the type * @param value The value of the type
*/ */
SQLType(String value) { SQLType(String value) {