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 Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Tprotected com.zaxxer.hikari.HikariDataSourceprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected StringFields inherited from interface com.xzavier0722.mc.plugin.slimefun4.storage.adapter.IDataSourceAdapter
DATABASE_VERSION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecuteQuery(String sql) protected voidexecuteSql(String sql) intprotected Stringvoidpatch()voidvoidshutdown()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
preparein interfaceIDataSourceAdapter<T extends ISqlCommonConfig>
-
executeSql
-
executeQuery
-
mapTable
-
shutdown
public void shutdown()- Specified by:
shutdownin interfaceIDataSourceAdapter<T extends ISqlCommonConfig>
-
getDatabaseVersion
public int getDatabaseVersion() -
patch
public void patch()- Specified by:
patchin interfaceIDataSourceAdapter<T extends ISqlCommonConfig>
-