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

  • Parsing JSON documents to java classes using gson
  • findViewById (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • Menu (java.awt)
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Top 12 Jupyter Notebook extensions
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