java.lang.Object
com.ultikits.ultitools.interfaces.impl.data.sqlite.SQLiteDataStore
All Implemented Interfaces:
DataStore

public class SQLiteDataStore extends Object implements DataStore
  • Field Details

  • Constructor Details

    • SQLiteDataStore

      public SQLiteDataStore()
  • Method Details

    • getStoreType

      public String getStoreType()
      Description copied from interface: DataStore
      Get the type of data storage.

      获取此数据存储的类型

      Specified by:
      getStoreType in interface DataStore
      Returns:
      Data storage type
      数据存储类型
    • getOperator

      public <T extends BaseDataEntity<String>> DataOperator<T> getOperator(UltiToolsPlugin plugin, Class<T> dataEntity)
      Description copied from interface: DataStore
      Get data operation entity class.

      获取数据操作实体类

      Specified by:
      getOperator in interface DataStore
      Type Parameters:
      T - Must inherit BaseDataEntity
      Parameters:
      plugin - Plugin
      插件
      dataEntity - Data entity class
      数据实体类
      Returns:
      Data operation entity
      数据操作实体
    • getOperator

      public <T extends BaseDataEntity<String>> DataOperator<T> getOperator(File dataFolder, Class<T> dataEntity)
      Description copied from interface: DataStore
      Get data operator for an external plugin, scoped to the plugin's own data folder.

      获取外部插件的数据操作器,数据范围限定在插件自己的数据文件夹中。

      Specified by:
      getOperator in interface DataStore
      Type Parameters:
      T - entity type
      Parameters:
      dataFolder - the external plugin's data folder (e.g., plugins/MyPlugin/)
      dataEntity - data entity class
      Returns:
      data operator
    • destroyAllOperators

      public void destroyAllOperators()
      Description copied from interface: DataStore
      Save all possible caches and destroy all data operation classes.

      保存所有可能的缓存并销毁所有的数据操作类

      Specified by:
      destroyAllOperators in interface DataStore