Package me.syncwrld.booter.database
Interface DatabaseHelper
-
public interface DatabaseHelper
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default <T> T
async(java.util.concurrent.Callable<T> callable)
default void
clearValues(java.sql.Connection connection, int tableID)
default boolean
createTable(java.sql.Connection connection, java.lang.String name, TableComponent... components)
default <T> T
get(java.lang.String tableIdentifier, java.sql.Connection connection, java.lang.String getWhat, java.lang.String primaryKeyIdentifier, java.lang.String primaryKeyEquals, java.lang.Class<T> type)
default void
insert(java.lang.String tableId, java.sql.Connection connection, java.lang.String... values)
default java.sql.PreparedStatement
prepare(java.sql.Connection connection, java.lang.String query)
default void
replace(java.lang.String tableId, java.sql.Connection connection, int valuesLength, java.lang.String where, java.lang.String... values)
default java.sql.ResultSet
result(java.sql.PreparedStatement prepared)
default <T> java.util.ArrayList<T>
select(java.lang.String tableId, java.sql.Connection connection, java.lang.String condition, java.lang.Class<T> type)
default java.util.concurrent.Future<?>
sync(java.lang.Runnable runnable)
-
-
-
Method Detail
-
async
default <T> T async(java.util.concurrent.Callable<T> callable)
-
sync
default java.util.concurrent.Future<?> sync(java.lang.Runnable runnable)
-
prepare
default java.sql.PreparedStatement prepare(java.sql.Connection connection, java.lang.String query)
-
result
default java.sql.ResultSet result(java.sql.PreparedStatement prepared)
-
insert
default void insert(java.lang.String tableId, java.sql.Connection connection, java.lang.String... values)
-
get
default <T> T get(java.lang.String tableIdentifier, java.sql.Connection connection, java.lang.String getWhat, java.lang.String primaryKeyIdentifier, java.lang.String primaryKeyEquals, java.lang.Class<T> type)
-
select
default <T> java.util.ArrayList<T> select(java.lang.String tableId, java.sql.Connection connection, java.lang.String condition, java.lang.Class<T> type)
-
replace
default void replace(java.lang.String tableId, java.sql.Connection connection, int valuesLength, java.lang.String where, java.lang.String... values)
-
createTable
default boolean createTable(java.sql.Connection connection, java.lang.String name, TableComponent... components)
-
clearValues
default void clearValues(java.sql.Connection connection, int tableID)
-
-