Codota Logo
PGObjectFactory.loadBaseDataSource
Code IndexAdd Codota to your IDE (free)

How to use
loadBaseDataSource
method
in
org.postgresql.ds.common.PGObjectFactory

Best Java code snippets using org.postgresql.ds.common.PGObjectFactory.loadBaseDataSource (Showing top 12 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
origin: org.postgresql/postgresql

private Object loadSimpleDataSource(Reference ref) {
 PGSimpleDataSource ds = new PGSimpleDataSource();
 return loadBaseDataSource(ds, ref);
}
origin: postgresql/postgresql

private Object loadConnectionPool(Reference ref)
{
  PGConnectionPoolDataSource cp = new PGConnectionPoolDataSource();
  return loadBaseDataSource(cp, ref);
}
origin: postgresql/postgresql

private Object loadSimpleDataSource(Reference ref)
{
  PGSimpleDataSource ds = new PGSimpleDataSource();
  return loadBaseDataSource(ds, ref);
}
origin: org.postgresql/postgresql

private Object loadConnectionPool(Reference ref) {
 PGConnectionPoolDataSource cp = new PGConnectionPoolDataSource();
 return loadBaseDataSource(cp, ref);
}
origin: org.postgresql/postgresql

private Object loadPoolingDataSource(Reference ref) {
 // If DataSource exists, return it
 String name = getProperty(ref, "dataSourceName");
 PGPoolingDataSource pds = PGPoolingDataSource.getDataSource(name);
 if (pds != null) {
  return pds;
 }
 // Otherwise, create a new one
 pds = new PGPoolingDataSource();
 pds.setDataSourceName(name);
 loadBaseDataSource(pds, ref);
 String min = getProperty(ref, "initialConnections");
 if (min != null) {
  pds.setInitialConnections(Integer.parseInt(min));
 }
 String max = getProperty(ref, "maxConnections");
 if (max != null) {
  pds.setMaxConnections(Integer.parseInt(max));
 }
 return pds;
}
origin: postgresql/postgresql

private Object loadPoolingDataSource(Reference ref)
{
  // If DataSource exists, return it
  String name = getProperty(ref, "dataSourceName");
  PGPoolingDataSource pds = PGPoolingDataSource.getDataSource(name);
  if (pds != null)
  {
    return pds;
  }
  // Otherwise, create a new one
  pds = new PGPoolingDataSource();
  pds.setDataSourceName(name);
  loadBaseDataSource(pds, ref);
  String min = getProperty(ref, "initialConnections");
  if (min != null)
  {
    pds.setInitialConnections(Integer.parseInt(min));
  }
  String max = getProperty(ref, "maxConnections");
  if (max != null)
  {
    pds.setMaxConnections(Integer.parseInt(max));
  }
  return pds;
}
origin: org.ancoron.postgresql/org.postgresql

private Object loadConnectionPool(Reference ref)
{
  PGConnectionPoolDataSource cp = new PGConnectionPoolDataSource();
  return loadBaseDataSource(cp, ref);
}
origin: org.ancoron.postgresql/org.postgresql.osgi

private Object loadSimpleDataSource(Reference ref)
{
  PGSimpleDataSource ds = new PGSimpleDataSource();
  return loadBaseDataSource(ds, ref);
}
origin: org.ancoron.postgresql/org.postgresql

private Object loadSimpleDataSource(Reference ref)
{
  PGSimpleDataSource ds = new PGSimpleDataSource();
  return loadBaseDataSource(ds, ref);
}
origin: org.ancoron.postgresql/org.postgresql.osgi

private Object loadConnectionPool(Reference ref)
{
  PGConnectionPoolDataSource cp = new PGConnectionPoolDataSource();
  return loadBaseDataSource(cp, ref);
}
origin: org.ancoron.postgresql/org.postgresql

private Object loadPoolingDataSource(Reference ref)
{
  // If DataSource exists, return it
  String name = getProperty(ref, "dataSourceName");
  PGPoolingDataSource pds = PGPoolingDataSource.getDataSource(name);
  if (pds != null)
  {
    return pds;
  }
  // Otherwise, create a new one
  pds = new PGPoolingDataSource();
  pds.setDataSourceName(name);
  loadBaseDataSource(pds, ref);
  String min = getProperty(ref, "initialConnections");
  if (min != null)
  {
    pds.setInitialConnections(Integer.parseInt(min));
  }
  String max = getProperty(ref, "maxConnections");
  if (max != null)
  {
    pds.setMaxConnections(Integer.parseInt(max));
  }
  return pds;
}
origin: org.ancoron.postgresql/org.postgresql.osgi

private Object loadPoolingDataSource(Reference ref)
{
  // If DataSource exists, return it
  String name = getProperty(ref, "dataSourceName");
  PGPoolingDataSource pds = PGPoolingDataSource.getDataSource(name);
  if (pds != null)
  {
    return pds;
  }
  // Otherwise, create a new one
  pds = new PGPoolingDataSource();
  pds.setDataSourceName(name);
  loadBaseDataSource(pds, ref);
  String min = getProperty(ref, "initialConnections");
  if (min != null)
  {
    pds.setInitialConnections(Integer.parseInt(min));
  }
  String max = getProperty(ref, "maxConnections");
  if (max != null)
  {
    pds.setMaxConnections(Integer.parseInt(max));
  }
  return pds;
}
org.postgresql.ds.commonPGObjectFactoryloadBaseDataSource

Popular methods of PGObjectFactory

  • getProperty
  • loadConnectionPool
  • loadPoolingDataSource
  • loadSimpleDataSource

Popular in Java

  • Running tasks concurrently on multiple threads
  • scheduleAtFixedRate (ScheduledExecutorService)
  • startActivity (Activity)
  • putExtra (Intent)
  • FileOutputStream (java.io)
    A file output stream is an output stream for writing data to aFile or to a FileDescriptor. Whether
  • InputStreamReader (java.io)
    An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • HashSet (java.util)
    This class implements the Set interface, backed by a hash table (actually a HashMap instance). It m
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
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