Tabnine Logo
DataSourceConfig.setPassword
Code IndexAdd Tabnine to your IDE (free)

How to use
setPassword
method
in
com.avaje.ebean.config.DataSourceConfig

Best Java code snippets using com.avaje.ebean.config.DataSourceConfig.setPassword (Showing top 2 results out of 315)

origin: MinecraftWars/Gringotts

public void configureDbConfig(ServerConfig config) {
  Validate.notNull(config, "Config cannot be null");
  DataSourceConfig ds = new DataSourceConfig();
  ds.setDriver("org.sqlite.JDBC");
  ds.setUrl("jdbc:sqlite:{DIR}{NAME}.db");
  ds.setUsername("bukkit");
  ds.setPassword("walrus");
  ds.setIsolationLevel(TransactionIsolation.getLevel("SERIALIZABLE"));
  if (ds.getDriver().contains("sqlite")) {
    config.setDatabasePlatform(new SQLitePlatform());
    config.getDatabasePlatform().getDbDdlSyntax().setIdentity("");
  }
  config.setDataSourceConfig(ds);
}
origin: com.khubla.pragmatach/pragmatach-ebean

dataSourceConfig.setDriver(Application.getConfiguration().getParameter("ebean.driver"));
dataSourceConfig.setUsername(Application.getConfiguration().getParameter("ebean.username"));
dataSourceConfig.setPassword(Application.getConfiguration().getParameter("ebean.password"));
final String url = Application.getConfiguration().getParameter("ebean.url");
if (null != url) {
com.avaje.ebean.configDataSourceConfigsetPassword

Javadoc

Set the database password.

Popular methods of DataSourceConfig

  • <init>
  • getUrl
    Return the connection URL.
  • loadSettings
    Load the settings from ebean.properties.
  • setUrl
    Set the connection URL.
  • getDriver
    Return the database driver.
  • getCustomProperties
    Return a map of custom properties for the jdbc driver connection.
  • getHeartbeatSql
    Return a SQL statement used to test the database is accessible. Note that if this is not set then it
  • getIsolationLevel
    Return the transaction isolation level.
  • getLeakTimeMinutes
    Return the time in minutes after which a connection could be considered to have leaked.
  • getMaxConnections
    Return the maximum number of connections the pool can reach.
  • getMaxInactiveTimeSecs
    Return the time in seconds a connection can be idle after which it can be trimmed from the pool. Thi
  • getMaxStackTraceSize
    Return the max size for reporting stack traces on busy connections.
  • getMaxInactiveTimeSecs,
  • getMaxStackTraceSize,
  • getMinConnections,
  • getPassword,
  • getPoolListener,
  • getPstmtCacheSize,
  • getUsername,
  • getWaitTimeoutMillis,
  • isCaptureStackTrace,
  • isOffline

Popular in Java

  • Start an intent from android
  • setScale (BigDecimal)
  • getContentResolver (Context)
  • requestLocationUpdates (LocationManager)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now