Class SqlCommonAdapter<T extends ISqlCommonConfig>
java.lang.Object
com.xzavier0722.mc.plugin.slimefun4.storage.adapter.sqlcommon.SqlCommonAdapter<T>
- All Implemented Interfaces:
IDataSourceAdapter<T>
- Direct Known Subclasses:
MysqlAdapter
,PostgreSqlAdapter
,SqliteAdapter
public abstract class SqlCommonAdapter<T extends ISqlCommonConfig>
extends Object
implements IDataSourceAdapter<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
protected String
protected String
protected String
protected String
protected String
protected T
protected com.zaxxer.hikari.HikariDataSource
protected String
protected String
protected String
protected String
protected String
protected String
Fields inherited from interface com.xzavier0722.mc.plugin.slimefun4.storage.adapter.IDataSourceAdapter
DATABASE_VERSION
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecuteQuery
(String sql) protected void
executeSql
(String sql) int
protected String
void
patch()
void
void
shutdown()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.xzavier0722.mc.plugin.slimefun4.storage.adapter.IDataSourceAdapter
deleteData, getData, getData, initStorage, setData
-
Field Details
-
ds
protected com.zaxxer.hikari.HikariDataSource ds -
profileTable
-
researchTable
-
backpackTable
-
bpInvTable
-
blockRecordTable
-
blockDataTable
-
universalRecordTable
-
universalDataTable
-
chunkDataTable
-
blockInvTable
-
universalInvTable
-
tableMetadataTable
-
config
-
-
Constructor Details
-
SqlCommonAdapter
public SqlCommonAdapter()
-
-
Method Details
-
prepare
- Specified by:
prepare
in interfaceIDataSourceAdapter<T extends ISqlCommonConfig>
-
executeSql
-
executeQuery
-
mapTable
-
shutdown
public void shutdown()- Specified by:
shutdown
in interfaceIDataSourceAdapter<T extends ISqlCommonConfig>
-
getDatabaseVersion
public int getDatabaseVersion() -
patch
public void patch()- Specified by:
patch
in interfaceIDataSourceAdapter<T extends ISqlCommonConfig>
-