Class StorageConfig.RemoteConnection

java.lang.Object
eu.okaeri.configs.OkaeriConfig
Enclosing class:
StorageConfig

public static class StorageConfig.RemoteConnection extends SubConfig<StorageConfig,StorageConfig>
The remote connection details/properties
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
     
     
    int
     
    Additional custom properties for the remote connection
    The table prefix for the remote database
    Defaults to the plugin name in lowercase with all non-alphanumeric characters removed + an underscore
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static @NotNull String
     

    Methods inherited from class xyz.srnyx.annoyingapi.file.okaeri.SubConfig

    getParent, getRoot, save

    Methods inherited from class xyz.srnyx.annoyingapi.file.okaeri.AnnoyingConfig

    getAs

    Methods inherited from class eu.okaeri.configs.OkaeriConfig

    asMap, asMap, asMap, configure, get, get, get, getBindFile, getBindFileName, getConfigurer, getContext, getDeclaration, getEffectiveConfigurer, getInternalPath, getInternalState, isSubconfig, load, load, load, load, load, load, load, load, load, migrate, migrate, migrateInternalState, migrateInternalState, save, save, save, saveDefaults, saveToBytes, saveToString, set, setBindFile, setConfigurer, setContext, setDeclaration, setInternalPath, setInternalState, update, updateDeclaration, validate, withBindFile, withBindFile, withBindFile, withConfigurer, withConfigurer, withLogger, withRemoveOrphans, withSerdesPack

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • host

      public String host
    • port

      public int port
    • database

      public String database
    • username

      public String username
    • password

      public String password
    • table_prefix

      public String table_prefix
      The table prefix for the remote database
      Defaults to the plugin name in lowercase with all non-alphanumeric characters removed + an underscore
    • properties

      public Map<String,String> properties
      Additional custom properties for the remote connection
  • Constructor Details

    • RemoteConnection

      public RemoteConnection(@NotNull @NotNull StorageConfig root)
  • Method Details

    • getDefaultTablePrefix

      @NotNull public static @NotNull String getDefaultTablePrefix(@NotNull @NotNull AnnoyingPlugin plugin)