diff --git a/database/src/main/java/com/georgev22/library/database/Database.java b/database/src/main/java/com/georgev22/library/database/Database.java index d350d42..8356b5a 100644 --- a/database/src/main/java/com/georgev22/library/database/Database.java +++ b/database/src/main/java/com/georgev22/library/database/Database.java @@ -2,6 +2,7 @@ import com.georgev22.library.database.sql.sqlite.SQLite; import com.georgev22.library.maps.ObjectMap; +import com.georgev22.library.maps.Pair; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; @@ -212,12 +213,12 @@ public boolean renameTable(@NotNull String oldTableName, @NotNull String newTabl * @throws SQLException if a database access error occurs * @throws ClassNotFoundException if the specified database driver class cannot be found */ - public void createTable(@NotNull String tableName, @NotNull ObjectMap> columnsMap) throws SQLException, ClassNotFoundException { + public void createTable(@NotNull String tableName, @NotNull ObjectMap> columnsMap) throws SQLException, ClassNotFoundException { StringBuilder queryBuilder = new StringBuilder("CREATE TABLE IF NOT EXISTS `" + tableName + "` ("); - for (Map.Entry> entry : columnsMap.entrySet()) { + for (Map.Entry> entry : columnsMap.entrySet()) { String columnName = entry.getKey(); - ObjectMap.Pair columnDetails = entry.getValue(); + Pair columnDetails = entry.getValue(); String columnType = columnDetails.key(); String defaultValue = columnDetails.value(); @@ -300,8 +301,8 @@ public String buildUpdateStatement(String tableName, Map columnV /** * Builds an SQL DELETE statement for the specified table name, column values, and condition. * - * @param tableName the name of the table - * @param condition the condition to apply for deleting the rows + * @param tableName the name of the table + * @param condition the condition to apply for deleting the rows * @return the SQL DELETE statement */ public String buildDeleteStatement(String tableName, String condition) { diff --git a/database/src/main/java/com/georgev22/library/database/DatabaseWrapper.java b/database/src/main/java/com/georgev22/library/database/DatabaseWrapper.java index 9a36a7e..82fdcf9 100644 --- a/database/src/main/java/com/georgev22/library/database/DatabaseWrapper.java +++ b/database/src/main/java/com/georgev22/library/database/DatabaseWrapper.java @@ -6,7 +6,7 @@ import com.georgev22.library.database.sql.sqlite.SQLite; import com.georgev22.library.maps.HashObjectMap; import com.georgev22.library.maps.ObjectMap; -import com.georgev22.library.maps.ObjectMap.Pair; +import com.georgev22.library.maps.Pair; import com.georgev22.library.utilities.Utils; import com.mongodb.client.FindIterable; import com.mongodb.client.MongoClient;