congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
DataSourceConfig.loadSettings
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.avaje.ebeanorm/avaje-ebeanorm-server

public DataSourcePool getDataSource(String name, DataSourceConfig dsConfig){
  
  if (name == null){
    throw new IllegalArgumentException("name not defined");
  }
      
  synchronized(monitor){
    DataSourcePool pool = dsMap.get(name);
    if (pool == null){
      if (dsConfig == null){
        dsConfig = new DataSourceConfig();
        dsConfig.loadSettings(name);
      }
      pool = new DataSourcePool(this, name, dsConfig);
      dsMap.put(name, pool); 
    }
    return pool;
  }
}
 
origin: org.avaje/ebean

public DataSourcePool getDataSource(String name, DataSourceConfig dsConfig){
  
  if (name == null){
    throw new IllegalArgumentException("name not defined");
  }
      
  synchronized(monitor){
    DataSourcePool pool = dsMap.get(name);
    if (pool == null){
      if (dsConfig == null){
        dsConfig = new DataSourceConfig();
        dsConfig.loadSettings(name);
      }
      pool = new DataSourcePool(this, name, dsConfig);
      dsMap.put(name, pool); 
    }
    return pool;
  }
}
 
origin: MrNeuronix/IRISv2

ds.loadSettings("iris");
origin: org.avaje/ebean

 dataSourceConfig = new DataSourceConfig();
dataSourceConfig.loadSettings(p.getServerName());
origin: org.avaje.ebeanorm/avaje-ebeanorm-api

 dataSourceConfig = new DataSourceConfig();
dataSourceConfig.loadSettings(p.getServerName());
com.avaje.ebean.configDataSourceConfigloadSettings

Javadoc

Load the settings from ebean.properties.

Popular methods of DataSourceConfig

  • <init>
  • getUrl
    Return the connection URL.
  • 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

  • Making http post requests using okhttp
  • setRequestProperty (URLConnection)
  • startActivity (Activity)
  • getResourceAsStream (ClassLoader)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Collectors (java.util.stream)
  • JTable (javax.swing)
  • Top plugins for Android Studio
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