Class MySqlStorageSupplier
- java.lang.Object
-
- me.hsgamer.topper.storage.simple.supplier.SqlStorageSupplier
-
- me.hsgamer.topper.storage.simple.supplier.MySqlStorageSupplier
-
- All Implemented Interfaces:
DataStorageSupplier
public class MySqlStorageSupplier extends SqlStorageSupplier
-
-
Field Summary
-
Fields inherited from class me.hsgamer.topper.storage.simple.supplier.SqlStorageSupplier
logger
-
-
Constructor Summary
Constructors Constructor Description MySqlStorageSupplier(Consumer<me.hsgamer.hscore.database.Setting> databaseSettingConsumer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidflushConnection(Connection connection)protected ConnectiongetConnection()protected StringtoSaveStatement(String name, String[] keyColumns, String[] valueColumns)protected Object[]toSaveValues(Object[] keys, Object[] values)-
Methods inherited from class me.hsgamer.topper.storage.simple.supplier.SqlStorageSupplier
getStorage
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface me.hsgamer.topper.storage.simple.supplier.DataStorageSupplier
disable, enable
-
-
-
-
Constructor Detail
-
MySqlStorageSupplier
public MySqlStorageSupplier(Consumer<me.hsgamer.hscore.database.Setting> databaseSettingConsumer)
-
-
Method Detail
-
getConnection
protected Connection getConnection() throws SQLException
- Specified by:
getConnectionin classSqlStorageSupplier- Throws:
SQLException
-
flushConnection
protected void flushConnection(Connection connection)
- Specified by:
flushConnectionin classSqlStorageSupplier
-
toSaveStatement
protected String toSaveStatement(String name, String[] keyColumns, String[] valueColumns)
- Specified by:
toSaveStatementin classSqlStorageSupplier
-
toSaveValues
protected Object[] toSaveValues(Object[] keys, Object[] values)
- Specified by:
toSaveValuesin classSqlStorageSupplier
-
-