Changed the return type of TableGenerator#create to void

This commit is contained in:
mathias 2021-08-24 20:27:25 +02:00
parent 7c4582b043
commit 0605b4fcd9
No known key found for this signature in database
GPG Key ID: 8950DF62139C852A

View File

@ -88,10 +88,8 @@ public class TableGenerator {
/** /**
* Creates the table you wanted * Creates the table you wanted
*
* @return this class
*/ */
public TableGenerator create() { public void create() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
sb.append("CREATE TABLE IF NOT EXISTS ").append(tableName).append(" ( "); sb.append("CREATE TABLE IF NOT EXISTS ").append(tableName).append(" ( ");
@ -105,7 +103,6 @@ public class TableGenerator {
sb.append(" ) ENGINE = InnoDB;"); sb.append(" ) ENGINE = InnoDB;");
connection.update(sb.toString()); connection.update(sb.toString());
return this;
} }
} }