@MavenLibrary(groupId="org.slf4j",
artifactId="slf4j-api",
version="1.7.25")
public class HelperSqlPlugin
extends me.lucko.helper.plugin.ExtendedJavaPlugin
implements SqlProvider
| Constructor and Description |
|---|
HelperSqlPlugin() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
enable() |
DatabaseCredentials |
getGlobalCredentials()
Gets the global database credentials being used for the global datasource.
|
Sql |
getSql()
Gets the global datasource.
|
Sql |
getSql(DatabaseCredentials credentials)
Constructs a new datasource using the given credentials.
|
bind, bindModule, disable, getBundledFile, getClassloader, getPlugin, getService, isPluginPresent, load, loadConfig, loadConfigNode, onDisable, onEnable, onLoad, provideService, provideService, registerCommand, registerListener, setupConfiggetClassLoader, getCommand, getConfig, getDataFolder, getDefaultWorldGenerator, getDescription, getFile, getLogger, getPlugin, getPluginLoader, getProvidingPlugin, getResource, getServer, getTextResource, isEnabled, isNaggable, onCommand, onTabComplete, reloadConfig, saveConfig, saveDefaultConfig, saveResource, setEnabled, setNaggable, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitprotected void enable()
enable in class me.lucko.helper.plugin.ExtendedJavaPlugin@Nonnull public Sql getSql()
SqlProvidergetSql in interface SqlProvider@Nonnull public Sql getSql(@Nonnull DatabaseCredentials credentials)
SqlProviderThese instances are not cached, and a new datasource is created each time this method is called.
getSql in interface SqlProvidercredentials - the credentials for the database@Nonnull public DatabaseCredentials getGlobalCredentials()
SqlProvidergetGlobalCredentials in interface SqlProviderCopyright © 2019. All rights reserved.