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

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

Best Java code snippets using org.postgresql.ds.common.PGObjectFactory.loadPoolingDataSource (Showing top 4 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

/**
 * Dereferences a PostgreSQL DataSource. Other types of references are ignored.
 */
public Object getObjectInstance(Object obj, Name name, Context nameCtx,
  Hashtable<?, ?> environment) throws Exception {
 Reference ref = (Reference) obj;
 String className = ref.getClassName();
 // Old names are here for those who still use them
 if (className.equals("org.postgresql.ds.PGSimpleDataSource")
   || className.equals("org.postgresql.jdbc2.optional.SimpleDataSource")
   || className.equals("org.postgresql.jdbc3.Jdbc3SimpleDataSource")) {
  return loadSimpleDataSource(ref);
 } else if (className.equals("org.postgresql.ds.PGConnectionPoolDataSource")
   || className.equals("org.postgresql.jdbc2.optional.ConnectionPool")
   || className.equals("org.postgresql.jdbc3.Jdbc3ConnectionPool")) {
  return loadConnectionPool(ref);
 } else if (className.equals("org.postgresql.ds.PGPoolingDataSource")
   || className.equals("org.postgresql.jdbc2.optional.PoolingDataSource")
   || className.equals("org.postgresql.jdbc3.Jdbc3PoolingDataSource")) {
  return loadPoolingDataSource(ref);
 } else {
  return null;
 }
}
origin: postgresql/postgresql

   || className.equals("org.postgresql.jdbc3.Jdbc3PoolingDataSource"))
return loadPoolingDataSource(ref);
origin: org.ancoron.postgresql/org.postgresql.osgi

   || className.equals("org.postgresql.jdbc3.Jdbc3PoolingDataSource"))
return loadPoolingDataSource(ref);
origin: org.ancoron.postgresql/org.postgresql

   || className.equals("org.postgresql.jdbc3.Jdbc3PoolingDataSource"))
return loadPoolingDataSource(ref);
org.postgresql.ds.commonPGObjectFactoryloadPoolingDataSource

Popular methods of PGObjectFactory

  • getProperty
  • loadBaseDataSource
  • loadConnectionPool
  • loadSimpleDataSource

Popular in Java

  • Reading from database using SQL prepared statement
  • getExternalFilesDir (Context)
  • getSystemService (Context)
  • putExtra (Intent)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Socket (java.net)
    Provides a client-side TCP socket.
  • SortedSet (java.util)
    A Set that further provides a total ordering on its elements. The elements are ordered using their C
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • JButton (javax.swing)
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
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