Codota Logo
JdbcStore.setDataSourceName
Code IndexAdd Codota to your IDE (free)

How to use
setDataSourceName
method
in
leap.core.store.JdbcStore

Best Java code snippets using leap.core.store.JdbcStore.setDataSourceName (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Gson g =
  • Codota Iconnew Gson()
  • Codota IconGsonBuilder gsonBuilder;gsonBuilder.create()
  • Codota Iconnew GsonBuilder().create()
  • Smart code suggestions by Codota
}
origin: org.leapframework/leap-oauth2

@Override
public void postAppInit(App app) throws Throwable {
  checkConfiguration();
  
  if(enabled) {
    if(!sc.config().isEnabled()) {
      sc.enable(true);
    }
  }
  if(accessTokenEnabled) {
    
    if(tokenStore instanceof JdbcStore) {
      ((JdbcStore) tokenStore).setDataSourceName(DataSourceManager.DEFAULT_DATASOURCE_NAME);
    }
    
  }
}

origin: org.leapframework/leap-oauth2

@Override
public void postAppInit(App app) throws Throwable {
  if(enabled) {
    if(!sc.config().isEnabled()) {
      sc.enable(true);
    }
    this.hasDataSources = dsm.hasDataSources();
    if(hasDataSources) {
      String dataSourceName = Strings.firstNotEmpty(jdbcDataSourceName, DataSourceManager.DEFAULT_DATASOURCE_NAME);
      if(getTokenStore() instanceof JdbcStore) {
        ((JdbcStore) getTokenStore()).setDataSourceName(dataSourceName);
      }
      if(getCodeStore() instanceof JdbcStore) {
        ((JdbcStore)getCodeStore()).setDataSourceName(dataSourceName);
      }
      if(getClientStore() instanceof JdbcStore) {
        ((JdbcStore)getClientStore()).setDataSourceName(dataSourceName);
      }
      if(getSSOStore() instanceof  JdbcStore) {
        ((JdbcStore) getSSOStore()).setDataSourceName(dataSourceName);
      }
    }
    if(isCleanupEnabled()) {
      schedulerManager
        .newFixedThreadPoolScheduler("auth-cleanup")
        .scheduleAtFixedRate(() -> cleanup(), getCleanupInterval() * 1000l);
    }
  }
}
origin: org.leapframework/leap-oauth2-server

((JdbcStore) getTokenStore()).setDataSourceName(dataSourceName);
((JdbcStore)getCodeStore()).setDataSourceName(dataSourceName);
((JdbcStore)getClientStore()).setDataSourceName(dataSourceName);
((JdbcStore) getSSOStore()).setDataSourceName(dataSourceName);
leap.core.storeJdbcStoresetDataSourceName

Popular methods of JdbcStore

    Popular in Java

    • Start an intent from android
    • getOriginalFilename (MultipartFile)
      Return the original filename in the client's filesystem.This may contain path information depending
    • compareTo (BigDecimal)
      Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
    • setScale (BigDecimal)
      Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
    • BufferedInputStream (java.io)
      Wraps an existing InputStream and buffers the input. Expensive interaction with the underlying input
    • HashMap (java.util)
      HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
    • Executors (java.util.concurrent)
      Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
    • ThreadPoolExecutor (java.util.concurrent)
      An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
    • ImageIO (javax.imageio)
    • DateTimeFormat (org.joda.time.format)
      Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
    Codota Logo
    • Products

      Search for Java codeSearch for JavaScript codeEnterprise
    • IDE Plugins

      IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Codota for your IDE now