Cleaned up code
This commit is contained in:
parent
a1b8e4f3d9
commit
a3766aa490
@ -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());
|
||||||
|
@ -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);
|
||||||
|
@ -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) {
|
||||||
|
Reference in New Issue
Block a user