@MavenLibrary(groupId="org.slf4j", artifactId="slf4j-api", version="1.7.25") public class SqlPlugin extends ExtendedJavaPlugin implements SqlProvider
| Constructor and Description |
|---|
SqlPlugin() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
enable() |
HelperDataSource |
getDataSource()
Gets the global datasource.
|
HelperDataSource |
getDataSource(DatabaseCredentials credentials)
Constructs a new datasource using the given credentials.
|
DatabaseCredentials |
getGlobalCredentials()
Gets the global database credentials being used for the global datasource.
|
bind, bindModule, disable, getBundledFile, getClassloader, getPlugin, getService, load, loadConfig, loadConfigNode, onDisable, onEnable, onLoad, provideService, provideService, registerCommand, registerListenergetClassLoader, 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 ExtendedJavaPlugin@Nonnull public HelperDataSource getDataSource()
SqlProvidergetDataSource in interface SqlProvider@Nonnull public HelperDataSource getDataSource(@Nonnull DatabaseCredentials credentials)
SqlProviderThese instances are not cached, and a new datasource is created each time this method is called.
getDataSource in interface SqlProvidercredentials - the credentials for the database@Nonnull public DatabaseCredentials getGlobalCredentials()
SqlProvidergetGlobalCredentials in interface SqlProviderCopyright © 2018. All rights reserved.