public interface SqlProvider
HelperDataSource instances.| Modifier and Type | Method and Description |
|---|---|
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.
|
@Nonnull HelperDataSource getDataSource()
@Nonnull HelperDataSource getDataSource(@Nonnull DatabaseCredentials credentials)
These instances are not cached, and a new datasource is created each time this method is called.
credentials - the credentials for the database@Nonnull DatabaseCredentials getGlobalCredentials()
Copyright © 2017. All rights reserved.