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

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

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

origin: Bukkit/Bukkit

final void init(PluginLoader loader, Server server, PluginDescriptionFile description, File dataFolder, File file, ClassLoader classLoader) {
  this.loader = loader;
  this.server = server;
  this.file = file;
  this.description = description;
  this.dataFolder = dataFolder;
  this.classLoader = classLoader;
  this.configFile = new File(dataFolder, "config.yml");
  this.logger = new PluginLogger(this);
  if (description.isDatabaseEnabled()) {
    ServerConfig db = new ServerConfig();
    db.setDefaultServer(false);
    db.setRegister(false);
    db.setClasses(getDatabaseClasses());
    db.setName(description.getName());
    server.configureDbConfig(db);
    DataSourceConfig ds = db.getDataSourceConfig();
    ds.setUrl(replaceDatabaseString(ds.getUrl()));
    dataFolder.mkdirs();
    ClassLoader previous = Thread.currentThread().getContextClassLoader();
    Thread.currentThread().setContextClassLoader(classLoader);
    ebean = EbeanServerFactory.create(db);
    Thread.currentThread().setContextClassLoader(previous);
  }
}
origin: MinecraftWars/Gringotts

public Gringotts() {
  ServerConfig dbConfig = new ServerConfig();
  dbConfig.setDefaultServer(false);
  dbConfig.setRegister(false);
  dbConfig.setClasses(getDatabaseClasses());
  dbConfig.setName(getDescription().getName());
  configureDbConfig(dbConfig);
  DataSourceConfig dsConfig = dbConfig.getDataSourceConfig();
  dsConfig.setUrl(replaceDatabaseString(dsConfig.getUrl()));
  getDataFolder().mkdirs();
  ClassLoader previous = Thread.currentThread().getContextClassLoader();
  Thread.currentThread().setContextClassLoader(getClassLoader());
  ebean = EbeanServerFactory.create(dbConfig);
  Thread.currentThread().setContextClassLoader(previous);
}
origin: SpigotMC/Spigot-API

final void init(PluginLoader loader, Server server, PluginDescriptionFile description, File dataFolder, File file, ClassLoader classLoader) {
  this.loader = loader;
  this.server = server;
  this.file = file;
  this.description = description;
  this.dataFolder = dataFolder;
  this.classLoader = classLoader;
  this.configFile = new File(dataFolder, "config.yml");
  this.logger = new PluginLogger(this);
  if (description.isDatabaseEnabled()) {
    ServerConfig db = new ServerConfig();
    db.setDefaultServer(false);
    db.setRegister(false);
    db.setClasses(getDatabaseClasses());
    db.setName(description.getName());
    server.configureDbConfig(db);
    DataSourceConfig ds = db.getDataSourceConfig();
    ds.setUrl(replaceDatabaseString(ds.getUrl()));
    dataFolder.mkdirs();
    ClassLoader previous = Thread.currentThread().getContextClassLoader();
    Thread.currentThread().setContextClassLoader(classLoader);
    ebean = EbeanServerFactory.create(db);
    Thread.currentThread().setContextClassLoader(previous);
  }
}
origin: org.avaje.ebeanorm/avaje-ebeanorm-server

this.maxStackTraceSize = params.getMaxStackTraceSize();
this.databaseDriver = params.getDriver();
this.databaseUrl = params.getUrl();
this.pstmtCacheSize = params.getPstmtCacheSize();
origin: org.avaje/ebean

this.maxStackTraceSize = params.getMaxStackTraceSize();
this.databaseDriver = params.getDriver();
this.databaseUrl = params.getUrl();
this.pstmtCacheSize = params.getPstmtCacheSize();
com.avaje.ebean.configDataSourceConfiggetUrl

Javadoc

Return the connection URL.

Popular methods of DataSourceConfig

  • <init>
  • 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.
  • getMinConnections
    Return the minimum number of connections the pool should maintain.
  • getMaxStackTraceSize,
  • getMinConnections,
  • getPassword,
  • getPoolListener,
  • getPstmtCacheSize,
  • getUsername,
  • getWaitTimeoutMillis,
  • isCaptureStackTrace,
  • isOffline

Popular in Java

  • Updating database using SQL prepared statement
  • getResourceAsStream (ClassLoader)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getSystemService (Context)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Table (org.hibernate.mapping)
    A relational table
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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